# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.searchagora.com/marketplaces/walmart-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
