Target
Target Category API
List the products in a Target.com category: the same product rows as search, plus the category breadcrumb from the site root down to the category you asked for. Take the category id from the segment after N- in any target.com /c/ URL. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsoncategory_idstringrequiredTarget category id: the segment after N- in a target.com /c/ URL. target.com/c/apple/-/N-5xtg6 becomes 5xtg6. Every product row also carries category_id and parent_category_id, so you can walk the tree from a search result.
Example: paw82
pageintegerResults page, 1-based. Minimum 1. Use it with total_pages from the response.
countintegerdefault:24Results per page, 1-28. Target rejects anything above 28 outright.
Example: 28
sortenum<string>default:relevanceResult sort order. The response echoes the applied sort back as sort_by, in Target's own casing.
relevance— Default ordering.featured— Target's merchandised order.price_low— Price, lowest first.price_high— Price, highest first.rating_high— Guest rating, highest first.best_seller— Best selling first.newest— Newest arrivals first.
store_idstringdefault:3991Numeric Target store id whose prices and availability the response reflects. 3991 is the store target.com itself uses with no store context.
Example: 3991
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
page = client.target.category("paw82", sort="price_low", count=28)
print(page)Response