anker.com APIwww.anker.com ↗
Search and retrieve Anker product data including prices, variants, images, inventory, and SEO info via two REST endpoints.
curl -X GET 'https://api.parse.bot/scraper/cbd520fd-535d-46f5-9349-d3e3163b3784/search_products?sort=PRICE_ASC&limit=5&query=charger' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for Anker products by keyword with pagination and sorting support. Returns product listings with price, images, variants, and availability.
| Param | Type | Description |
|---|---|---|
| sort | string | Sort order: RELEVANCE, PRICE_ASC, PRICE_DESC |
| after | string | Cursor for next page pagination (from pagination.end_cursor in previous response) |
| limit | integer | Number of results per page (1-50) |
| query | string | Search keyword |
{
"type": "object",
"fields": {
"query": "string - search query used",
"products": "array of product objects with id, handle, title, available, price, images, variants, etc.",
"pagination": "object with has_next_page, has_previous_page, end_cursor, start_cursor",
"total_count": "integer - total matching products"
},
"sample": {
"data": {
"query": "charger",
"products": [
{
"id": "gid://shopify/Product/8328379531414",
"url": "https://www.anker.com/products/a2656",
"tags": [
"2B-Charger",
"AnkerChargers",
"Charger"
],
"price": {
"max": "11.99",
"min": "11.99",
"currency": "USD"
},
"title": "Anker Charger (25W, Compact)",
"handle": "a2656",
"images": [
"https://cdn.shopify.com/s/files/1/0493/9834/9974/files/A2656111_Rich-image_TD01_US_V1.png?v=1744639046"
],
"rating": null,
"vendor": "Anker",
"options": [
{
"name": "Color",
"values": [
"Black",
"White",
"Misty Blue"
]
}
],
"variants": [
{
"id": "gid://shopify/ProductVariant/44338371002518",
"sku": "A2656111",
"image": "https://cdn.shopify.com/s/files/1/0493/9834/9974/files/A2656111_Rich-image_TD01_US_V1.png?v=1744639046",
"price": "11.99",
"title": "Black",
"available": true,
"compare_at_price": null,
"selected_options": [
{
"name": "Color",
"value": "Black"
}
]
}
],
"available": true,
"description": "Charge Samsung Devices Rapidly...",
"product_type": "",
"published_at": "2025-01-20T03:48:58Z",
"featured_image": "https://cdn.shopify.com/s/files/1/0493/9834/9974/files/A2656111_Rich-image_TD01_US_V1.png?v=1744639046"
}
],
"pagination": {
"end_cursor": "eyJwYWdlIjoyLCJs...",
"start_cursor": "eyJwYWdlIjoxLCJs...",
"has_next_page": true,
"has_previous_page": false
},
"total_count": 186
},
"status": "success"
}
}About the anker.com API
The Anker.com API covers 2 endpoints that return product listings and detailed product records from Anker's online store. Use search_products to query the catalog by keyword with sorting and cursor-based pagination, or get_product to pull a full record by product handle — including all variants, SKUs, inventory counts, price ranges, and SEO metadata.
Endpoints and What They Return
The search_products endpoint accepts a query string and returns an array of product objects, each containing an id, handle, title, available flag, price, images, and variants. You can control sort order with the sort parameter (RELEVANCE, PRICE_ASC, or PRICE_DESC), limit results per page (1–50), and page through large result sets using the after cursor returned in the pagination object. The total_count field tells you how many products matched your query.
Product Detail Fields
The get_product endpoint takes a handle — the URL slug such as a2656 from anker.com/products/a2656 — and returns the full product record. This includes a seo object (title and description), the canonical url, product tags, a price range with min, max, and currency, an options array describing selectable attributes (e.g. color, capacity), and a variants array. Each variant exposes its own id, title, sku, price, availability, and inventory count.
Pagination and Handles
Pagination in search_products is cursor-based: pass the end_cursor from one response as the after parameter in the next request to advance pages. The handle values needed for get_product are surfaced directly in search results, so a typical workflow is to search first, collect handles, and then fetch full records individually.
- Track price changes for Anker charging accessories by polling
get_producton specific handles - Build a product comparison tool by fetching variant-level SKUs and prices across charger lines
- Sync Anker catalog data — titles, images, and availability — into an affiliate or review site
- Monitor inventory status across all variants of a given product using the
inventoryfield inget_product - Search for products by keyword and sort by price to surface the cheapest available options
- Extract product tags and SEO metadata to classify and index Anker products in a third-party catalog
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Anker have an official public developer API?+
What does the `variants` array in `get_product` include?+
id, human-readable title, sku, price, availability boolean, and an inventory count. This lets you distinguish between, say, a 65W and a 120W version of the same charger and know which are currently in stock.How does pagination work in `search_products`?+
pagination object with has_next_page, has_previous_page, end_cursor, and start_cursor. To fetch the next page, pass the end_cursor value as the after parameter in your next request. There is no offset-based paging.Does the API return customer reviews or ratings for Anker products?+
Is product availability data real-time?+
available flag in search results and the per-variant availability and inventory fields in get_product reflect the state of the Anker store at the time of each API call. There is no push or webhook mechanism, so freshness depends on how frequently you poll.