hanes.com APIhanes.com ↗
Access Hanes.com product data via API: search by keyword, browse men's/women's/sale categories, and retrieve variant-level pricing and stock status.
curl -X GET 'https://api.parse.bot/scraper/fa5b631c-119a-4433-8e9b-41e0f5d848a0/search_products?page=1&sort=relevance&query=socks&page_size=24&sort_direction=DESC' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for products by keyword with optional filters and sorting. Returns paginated results with product details, facets for filtering, and pagination info.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number. |
| sort | string | Sort attribute: relevance, price, position. |
| queryrequired | string | Search keyword. |
| page_size | integer | Number of items per page. |
| sort_direction | string | Sort direction: ASC, DESC. |
{
"type": "object",
"fields": {
"items": "array of product objects with productView containing name, sku, url, images, priceRange, and options",
"facets": "array of filter facets with title, type, attribute, and buckets",
"page_info": "object with current_page, total_pages, and page_size",
"total_count": "integer total number of matching products"
},
"sample": {
"data": {
"items": [
{
"product": {
"id": 1250397
},
"productView": {
"sku": "PBS184",
"url": "https://www.hanes.com/hanes-unisex-plain-black-socks-pack-6-pairs-crew-socks-pbs184.html",
"name": "Hanes Unisex Plain Black Socks Pack, 6 Pairs, Crew Socks",
"images": [
{
"url": "https://cdn.hanes.com/catalog/product/H/N/HNS_PBS184_XBK_ALD1.jpg",
"label": "Y29uZmlndXJhYmxlLzI4MC80Mw==",
"roles": [
"image",
"small_image",
"thumbnail"
]
}
],
"urlKey": "hanes-unisex-plain-black-socks-pack-6-pairs-crew-socks-pbs184",
"options": [
{
"id": "color",
"title": "Color",
"values": [
{
"id": "Y29uZmlndXJhYmxlLzI4MC80Mw==",
"title": "Black",
"inStock": true
}
]
}
],
"priceRange": {
"maximum": {
"final": {
"amount": {
"value": 18,
"currency": "USD"
}
},
"regular": {
"amount": {
"value": 18,
"currency": "USD"
}
}
},
"minimum": {
"final": {
"amount": {
"value": 18,
"currency": "USD"
}
},
"regular": {
"amount": {
"value": 18,
"currency": "USD"
}
}
}
}
}
}
],
"facets": [
{
"type": "PINNED",
"title": "Gender",
"buckets": [
{
"id": "Men",
"count": 255,
"title": "Men",
"__typename": "ScalarBucket"
}
],
"attribute": "gender"
}
],
"page_info": {
"page_size": 24,
"total_pages": 19,
"current_page": 1
},
"total_count": 455
},
"status": "success"
}
}About the hanes.com API
The Hanes.com API exposes 7 endpoints covering product search, category browsing, and per-SKU detail retrieval across Hanes.com's catalog. The get_product_details endpoint returns full variant data including per-variant SKU, stock status, and pricing, while search_products accepts keyword queries with faceted filters and sort controls. Response objects include structured fields for images, priceRange, configurable options, and pagination metadata.
Product Search and Category Browsing
The search_products endpoint accepts a required query string and optional parameters for page, page_size, sort (relevance, price, position), and sort_direction (ASC or DESC). Results include an items array of product objects, a facets array for client-side filter rendering, page_info with current_page, total_pages, and page_size, and a total_count integer. The get_category_products endpoint works the same way but routes by category_path (e.g. socks/socks/crew or sale) instead of a keyword.
Focused Category Endpoints
get_men_products and get_women_products each accept an optional subcategory path — for example men/underwear or women/bras — and return the same paginated shape as the general category endpoint. get_sale_products takes only a page parameter and returns currently discounted items with the same items, facets, and page_info structure. All listing endpoints include priceRange and options fields inside each product's productView object.
Per-SKU Detail and Availability
get_product_details takes a sku string (e.g. PBS184) and returns two top-level objects: basic_details (name, description, attributes, images, options, priceRange) and availability_and_variants (overall stock_status, configurable_options such as size and color, and a variants array where each entry carries its own sku, stock_status, and pricing). get_product_availability accepts the same input and returns the same response shape, making it useful as a dedicated stock-check call without re-fetching full descriptive content.
- Building a price-tracking tool that monitors priceRange changes across SKUs over time using get_product_details
- Aggregating sale inventory by paginating through get_sale_products and extracting per-variant stock_status
- Generating a size/color availability matrix for a product by parsing the variants array from get_product_availability
- Populating a product comparison page using name, attributes, images, and priceRange from get_product_details
- Indexing the full men's or women's catalog by iterating pages of get_men_products or get_women_products with subcategory paths
- Surfacing facet buckets from search_products to drive filter UI in a custom storefront or affiliate site
- Alerting users when a specific SKU moves back in stock by polling get_product_availability for stock_status changes
| 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.