---
title: Autocomplete
slug: bluecartapi/walmart-product-data-api/results/autocomplete
docTags: 
createdAt: 2024-07-27T17:51:31.976Z
---

# Autocomplete Results

When making a request with the  `type`  [parameter](https://docs.trajectdata.com/bluecartapi/walmart-product-data-api/parameters/autocomplete) set to  `type=autocomplete`  BlueCart API will return autocomplete suggestions for the search term specified in the  `search_term`  parameter.

![](https://apiimages.imgix.net/bluecartapi/images/png/docs/autocomplete.png?auto=format\&ixlib=react-9.5.1-beta.1\&w=600 "Autocomplete Suggestions")

An example of the JSON object returned from an Autocomplete request is shown below:

```json
{
  "request_info": {
    "success": true,
    "credits_used": 1,
    "credits_remaining": 999
  },
  "request_metadata": {
    "id": "48d63ef58b3eb240d5b18115b674c4170faba51f",
    "created_at": "2021-01-01T00:00:00.000Z",
    "processed_at": "2021-01-01T00:00:00.001Z",
    "total_time_taken": 0.1
  },
  "request_parameters": {
    "type": "autocomplete",
    "search_term": "memory"
  },
  "autocomplete_results": [
    {
      "suggestion": "memory foam mattress",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam mattress",
      "category_name": "Home",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam pillow",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam mattress topper",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory card",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam futon",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam mattress queen",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam bath mat",
      "category_name": "All Departments",
      "type": "KEYWORD"
    },
    {
      "suggestion": "memory foam mattress full",
      "category_name": "All Departments",
      "type": "KEYWORD"
    }
  ]
}
```

BlueCart API returns the following properties for Autocomplete requests:

| *`Property`*             | *`Type`*  | *`Description`*                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *`autocomplete_results`* | *`array`* | **Autocomplete Results Array&#xD;**<br />The autocomplete results array contains details of each of the autocomplete suggestions returned from the query.<br />- `suggestion`<br />- `string`<br />- The text of the autocomplete suggestion.<br /><br />- `type`<br />- `string`<br />- The type of the suggestion.<br /><br />- `category_name`<br />- `string`<br />- A category name for the suggestion. |

***

**Next Steps**
     [Autocomplete Parameters](https://docs.trajectdata.com/bluecartapi/walmart-product-data-api/parameters/autocomplete)
