# eBay Autocomplete — Zapi reference > eBay search-box suggestions. The index is English-language. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/autocomplete/ebay - Endpoint catalog: https://zpi.web.id/category/autocomplete - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## eBay Autocomplete **Category:** autocomplete · **Slug:** `ebay` **Detail page:** https://zpi.web.id/api/autocomplete/ebay eBay search-box suggestions. The index is English-language. **Tags:** ebay, ecommerce, shopping, suggest ### Autocomplete Product completions for a seed query. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/autocomplete:ebay/autocomplete` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `q` | string | query | yes | Seed text to complete | | `count` | number | query | no | Cap the list. Default: everything the upstream returns | **cURL:** ```bash curl "https://api.zpi.web.id/v1/autocomplete:ebay/autocomplete?q=cat%20tree&count=10" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/autocomplete:ebay/autocomplete?q=cat%20tree&count=10", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/autocomplete:ebay/autocomplete?q=cat%20tree&count=10", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "count": 10, "items": [ { "text": "cat tree tower" }, { "text": "cat tree for large cats" }, { "text": "cat tree tower for large cats" }, { "text": "cat tree tower condo" }, { "text": "cat tree tower for large cats unique" }, { "text": "cat tree" }, { "text": "cat tree condo for large cats" }, { "text": "cat tree with litter box enclosure" } ], "query": "cat tree", "provider": "ebay" } ``` --- ### Expand Expand one seed into the many real queries people type — the seed with every letter, question word and preposition appended, deduplicated. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/autocomplete:ebay/expand` - **Cache TTL:** 1800s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `q` | string | query | yes | Seed to expand | | `modifiers` | enum(all|alphabet|questions|prepositions|digits) | query | no | Which modifier sets to append. Default all | | `lang` | enum(id|en) | query | no | Language for the question and preposition sets. Default en | | `count` | number | query | no | Cap the returned list. Default: every unique result found | **cURL:** ```bash curl "https://api.zpi.web.id/v1/autocomplete:ebay/expand?q=cat%20tree&modifiers=all&lang=en&count=200" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/autocomplete:ebay/expand?q=cat%20tree&modifiers=all&lang=en&count=200", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/autocomplete:ebay/expand?q=cat%20tree&modifiers=all&lang=en&count=200", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "seed": "cat tree", "count": 117, "items": [ { "via": "alphabet", "text": "cat tree with litter box enclosure" }, { "via": "alphabet", "text": "cat tree with litter box" }, { "via": "alphabet", "text": "cat tree with 2 wicker beds" }, { "via": "alphabet", "text": "big cat tree" }, { "via": "alphabet", "text": "black cat tree" }, { "via": "alphabet", "text": "cat tree for big cats" }, { "via": "alphabet", "text": "heavy duty cat tree" }, { "via": "alphabet", "text": "door hanging cat tree" } ], "locale": "en", "provider": "ebay", "modifiers": "all", "truncated": false, "variantsTried": 44, "variantsFailed": 0 } ``` --- _Generated: 2026-08-02T14:22:06.106Z_