---
title: Autocomplete
slug: rainforestapi/product-data-api/results/autocomplete
docTags: 
createdAt: 2024-07-30T12:48:41.130Z
---

# Autocomplete Results

When making a request with the  `type`  [parameter](https://docs.trajectdata.com/rainforestapi/product-data-api/parameters/autocomplete) set to  `type=autocomplete`  Rainforest API will return autocomplete suggestions for the search term specified in the  `search_term`  parameter, on the Amazon domain specified in the  `amazon_domain`  parameter.

![](https://apiimages.imgix.net/rainforestapi/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",
    "amazon_domain": "amazon.com",
    "search_term": "animal",
    "autocomplete_alias": "stripbooks"
  },
  "autocomplete_results": [
    {
      "suggestion": "animal farm",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal farm by george orwell",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal vegetable junk",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal coloring book",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "the human animal",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animals",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "if animals kissed goodnight board book",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal books",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal lisa taddeo",
      "spelling_corrected": false,
      "type": "KEYWORD"
    },
    {
      "suggestion": "animal",
      "spelling_corrected": false,
      "type": "KEYWORD"
    }
  ]
}
```

Rainforest 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`
* `string`
* The text of the autocomplete suggestion.<br /><br />* `type`
* `string`
* The type of the suggestion.<br /><br />* `spelling_corrected`
* `boolean`
* True/false depending on whether the suggestion is a result of correcting the spelling of the original `search_term` . |

***

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