Amazon Autocomplete Scraper
The Amazon Autocomplete Scraper API retrieves keyword suggestions from Amazon's autocomplete feature based on partial search terms. Useful for keyword research and building search-driven features. Each successful request costs 5 API credits.
Endpoint:
https://api.scrapingdog.com/amazon/autocompleteAPI Parameters
π
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
π
Search
prefixOptionalThe partial search term that Amazon uses to generate keyword suggestions (e.g.,spoon,iph).
Type: Stringlast_prefixOptionalIndicates previously typed characters. For example, if user typed "i" then "phone", setlast_prefix=i.
Type: StringsuffixOptionalAssists with search query completion and predictions.
Type: StringmidOptionalMerchant ID for identifying a specific seller to scope suggestions.
Type: String
π
Localization
domainOptionalThe TLD extension of the Amazon domain. Examples:com,in,de,fr. For a complete list of supported TLDs, refer to Amazon Supported TLDs.
Type: StringlanguageOptionalLanguage code for suggestions (e.g.,en,es,fr,de). Default:en
Type: String
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/amazon/autocomplete?api_key=APIKEY&domain=com&prefix=spoon"
import requests params = { "api_key": "APIKEY", "domain": "com", "prefix": "spoon" } response = requests.get("https://api.scrapingdog.com/amazon/autocomplete", params=params) suggestions = response.json() for s in suggestions: print(s["keyword"])
const axios = require('axios'); axios.get('https://api.scrapingdog.com/amazon/autocomplete', { params: { api_key: 'APIKEY', domain: 'com', prefix: 'spoon' } }).then(response => response.data.forEach(s => console.log(s.keyword))) .catch(error => console.error(error.message));
<?php $url = 'https://api.scrapingdog.com/amazon/autocomplete?' . http_build_query([ 'api_key' => 'APIKEY', 'domain' => 'com', 'prefix' => 'spoon', ]); echo file_get_contents($url);
require 'net/http' require 'uri' url = URI.parse("https://api.scrapingdog.com/amazon/autocomplete") url.query = URI.encode_www_form( 'api_key' => 'APIKEY', 'domain' => 'com', 'prefix' => 'spoon' ) http = Net::HTTP.new(url.host, url.port) http.use_ssl = true puts http.request(Net::HTTP::Get.new(url)).body
import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { String apiUrl = "https://api.scrapingdog.com/amazon/autocomplete?api_key=APIKEY&domain=com&prefix=spoon"; URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = reader.readLine()) != null) System.out.println(line); conn.disconnect(); } }
API Response
[
{
"type": "KEYWORD",
"keyword": "spoon rest for stove top"
},
{
"type": "KEYWORD",
"keyword": "spoon set"
},
{
"type": "KEYWORD",
"keyword": "spoon ring"
},
{
"type": "KEYWORD",
"keyword": "spoon spatula"
},
{
"type": "KEYWORD",
"keyword": "spoon holder"
},
{
"type": "KEYWORD",
"keyword": "spoon and fork set"
},
{
"type": "KEYWORD",
"keyword": "spoon lure"
},
{
"type": "KEYWORD",
"keyword": "spoon necklace"
},
{
"type": "KEYWORD",
"keyword": "spoon bait"
},
{
"type": "KEYWORD",
"keyword": "spoon carving tools"
}
]