# Walmart search

GET `/search/amazon`

This endpoint lets you to search for products on Walmart.

**Headers**

| Header          | Type   | Description   |
| --------------- | ------ | ------------- |
| `Authorization` | string | Bearer token. |

**Query parameters**

| Parameter | Type    | Description                                                                   |
| --------- | ------- | ----------------------------------------------------------------------------- |
| `count`   | integer | Number of products to return per page. The default is 20. The maximum is 250. |
| `page`    | integer | Page number of pagination. The default is 1.                                  |
| `q`       | string  | Search query.                                                                 |

**Example request**

`GET https://zues.searchagora.com/api/v1/search/walmart?q=red%20shoes`

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "status": "success",
  "Products": [
    {
      "_id": "walmart_123456789",
      "name": "HP 15.6\" Laptop, Intel Core i5, 8GB RAM, 256GB SSD",
      "price": 499.99,
      "images": [
        "https://i5.walmartimages.com/asr/example.jpg"
      ],
      "url": "https://www.walmart.com/ip/123456789",
      "slug": "123456789",
      "brand": "HP",
      "storeName": "Walmart",
      "source": "walmart",
      "averageRating": 4.3,
      "reviewCount": 245,
      "description": "Experience powerful performance with this HP laptop...",
      "availability": "In Stock",
      "position": 1
    }
    // ... more products
  ],
  "hasMore": true,
  "count": 500,
  "storeBrandMatch": [],
  "source": "walmart",
  "secondhand": false,
  "page": 1,
  "limit": 20
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "status": "error",
  "message": "Search query (q) is required"
}
```

{% endtab %}

{% tab title="500" %}

```json
{
  "status": "error",
  "message": "Walmart search failed",
  "Products": [],
  "hasMore": false,
  "count": 0,
  "storeBrandMatch": [],
  "source": "walmart",
  "secondhand": false,
  "page": 1,
  "limit": 20
}
```

{% endtab %}
{% endtabs %}
