Target Search
Search Target.com by keyword or search URL. Returns product cards with price, rating and pagination via browser rendering.
Credit cost: 2 credits per call
Autorización
ApiKeyAuth x-api-key<token>
Your API key. Include it in the x-api-key header for every request.
In: header
Parámetros de consulta
query*string
Keyword or Target search URL.
Examples:
shampooroot touch up hair dyehttps://www.target.com/s?searchTerm=shampoopage?string
Page number (1-based).
return_page_source?boolean
When true, return rendered HTML instead of JSON.
Cuerpo de la respuesta
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/target/search?query=string"{ "results": [ { "url": "https://www.target.com/p/l-oreal-paris-magic-root-rescue-10-minute-root-hair-coloring-kit/-/A-54397299", "name": "L'Oreal Paris Magic Root Rescue 10 Minute Root Hair Coloring Kit", "tcin": "54397299", "brand": "L'Oreal Paris", "price": 6.99, "rating": 4, "currency": "USD", "image_url": "https://target.scene7.com/is/image/Target/GUEST_c22ac354-59d7-4187-ab0b-8cd8a4707e07?qlt=65&fmt=webp&hei=350&wid=350", "sponsored": true, "review_count": 1525 } ], "pagination": { "next": "https://www.target.com/s?searchTerm=root+touch+up+hair+dye&Nao=24", "page": 1, "per_page": 24, "total_pages": 9, "total_results": 201 }}{ "error": "Bad Request"}{ "error": "Invalid API Key"}{ "error": "Payment required"}{ "error": "Rate limit exceeded for the API key: quota monthly"}{ "error": "Internal Error"}