Docs / API reference

POST/v1/data/amazon/autocomplete

Amazon Autocomplete

Return Amazon marketplace search suggestions for a partial term. Supports marketplace domain, language, cursor prefix/suffix inputs, marketplace ID override, and result limits.

Execution model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Parameters

NameTypeRequirementDescription
prefix / query / qstringRequiredPartial search term. Required unless suffix is supplied.
last_prefix / lastPrefixstringOptionalPreviously typed search prefix.
suffixstringOptionalOptional text after the cursor.
domainstringOptionalAmazon TLD or domain, e.g. in, com, co.uk, de, amazon.in.
languagestringOptionalSuggestion language code.
midstringOptionalAmazon marketplace ID override.
limitnumberOptionalMaximum suggestions to return (1-20).
timeout_msnumberOptionalProvider timeout in milliseconds (3000-30000).

Response fields

FieldTypeDescription
successbooleanWhether autocomplete completed successfully.
suggestionsarraySuggestion rows with position, keyword, and suggestion type.
domainstringNormalized Amazon marketplace domain key.
time_takennumberAPI response time in seconds.

Request and response

curl -X POST "https://api.datablue.dev/v1/data/amazon/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prefix": "running sh",
  "domain": "in",
  "language": "en",
  "limit": 10
}'
Example response
{
  "success": true,
  "source": "amazon",
  "operation": "autocomplete",
  "prefix": "running sh",
  "domain": "in",
  "count": 3,
  "time_taken": 0.42,
  "suggestions": [
    {
      "position": 1,
      "keyword": "running shoes",
      "type": "KEYWORD"
    },
    {
      "position": 2,
      "keyword": "running shoes for men",
      "type": "KEYWORD"
    },
    {
      "position": 3,
      "keyword": "running shorts",
      "type": "KEYWORD"
    }
  ]
}