Discover/Hanes API
live

Hanes 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.

Endpoint health
verified 4d ago
get_category_products
search_products
get_product_details
get_product_availability
get_men_products
7/7 passing latest checkself-healing
Endpoints
7
Updated
18d ago

What is the Hanes 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.

Try it
Page number.
Sort attribute.
Search keyword.
Number of items per page.
Sort direction.
api.parse.bot/scraper/fa5b631c-119a-4433-8e9b-41e0f5d848a0/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/fa5b631c-119a-4433-8e9b-41e0f5d848a0/search_products?page=1&sort=relevance&query=socks&page_size=12&sort_direction=ASC' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace hanes-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""
Hanes.com Product Search, Category Browsing, and Detail Lookup
"""
from parse_apis.hanes_com_api import Hanes, Sort, SortDirection, CategoryPath, ProductNotFound

hanes = Hanes()

# Search for socks sorted by price ascending, capped at 5 items
for product in hanes.products.search(query="socks", sort=Sort.PRICE, sort_direction=SortDirection.ASC, limit=5):
    print(product.name, product.sku, product.price_range.minimum.final.value)

# Browse the men's category by position
men = hanes.category(CategoryPath.MEN)
for product in men.products(sort=Sort.POSITION, sort_direction=SortDirection.ASC, limit=3):
    print(product.name, product.url_key, product.price_range.maximum.final.value)

# Get full product details by SKU
detail = hanes.productdetails.get(sku="PBS184")
print(detail.sku, detail.basic_details)

# Browse sale items
for item in hanes.products.list_sale(limit=3):
    print(item.name, item.sku, item.price_range.minimum.final.value)

# Typed error handling for a missing product
try:
    hanes.productdetails.get(sku="ZZZZZ_INVALID")
except ProductNotFound as exc:
    print(f"Product not found: sku={exc.sku}")

print("exercised: products.search / category.products / productdetails.get / products.list_sale / typed error")
All endpoints · 7 totalmissing one? ·

Full-text search over all Hanes products by keyword. Results include product name, SKU, URL, images, price range, and configurable options (color/size). Paginates via integer page counter. Facets for gender, size, and color family are returned alongside items for client-side filtering UI. Sort by relevance, price, or position.

Input
ParamTypeDescription
pageintegerPage number.
sortstringSort attribute.
queryrequiredstringSearch keyword.
page_sizeintegerNumber of items per page.
sort_directionstringSort direction.
Response
{
  "type": "object",
  "fields": {
    "items": "array of product summaries with name, sku, url, images, priceRange, and options",
    "facets": "array of filter facets with title, type, attribute, and buckets",
    "page_size": "integer items per page",
    "total_count": "integer total number of matching products",
    "total_pages": "integer total number of pages",
    "current_page": "integer current page number"
  },
  "sample": {
    "data": {
      "items": [
        {
          "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
                }
              ]
            },
            {
              "id": "size",
              "title": "Size",
              "values": [
                {
                  "id": "Y29uZmlndXJhYmxlLzU0Ny8zMjA1",
                  "title": "S",
                  "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"
                }
              }
            }
          },
          "product_id": 1250397
        }
      ],
      "facets": [
        {
          "type": "PINNED",
          "title": "Gender",
          "buckets": [
            {
              "id": "Men",
              "count": 329,
              "title": "Men",
              "__typename": "ScalarBucket"
            }
          ],
          "attribute": "gender"
        }
      ],
      "page_size": 24,
      "total_count": 550,
      "total_pages": 23,
      "current_page": 1
    },
    "status": "success"
  }
}

About the Hanes API

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.

Reliability & maintenanceVerified

The Hanes API is a managed, monitored endpoint for hanes.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when hanes.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official hanes.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • 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
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does Hanes have an official public developer API?+
Hanes does not publish a public developer API or documented developer portal for accessing product catalog data.
What does get_product_details return that listing endpoints do not?+
Listing endpoints return a summary productView with name, sku, url, images, priceRange, and options. get_product_details adds a full description, product attributes, configurable_options, and a variants array where each variant has its own sku, stock_status, and individual pricing — data not present in paginated listing responses.
What facet data is returned and how is it structured?+
Every listing and search endpoint returns a facets array. Each facet object includes a title, type, attribute name, and a buckets array. Buckets represent individual filter values (such as a specific size or color) and their associated counts, which can be used to build dynamic filter UI on top of search or category results.
Does the API cover customer reviews, ratings, or Q&A content for products?+
Not currently. The API covers product catalog data: names, descriptions, attributes, images, pricing, variants, and stock status. Review and rating content is not included in any endpoint response. You can fork this API on Parse and revise it to add an endpoint that retrieves review data for a given SKU.
Is there a way to look up products by color or size directly, rather than by SKU?+
Not directly. The search_products endpoint accepts keyword queries and returns facets that include color and size attributes, but there is no dedicated filter-by-attribute lookup. To find all variants of a specific size or color, you would retrieve product-level results via search_products or get_category_products and then inspect the variants array from get_product_details for each SKU. You can fork this API on Parse and revise it to add a dedicated attribute-filter endpoint.
Page content last updated . Spec covers 7 endpoints from hanes.com.
Related APIs in EcommerceSee all →
hm.com API
Search H&M's US product catalog by keyword and instantly retrieve detailed information like prices, product images, available sizes, and real-time stock availability. Perfect for comparing items, tracking product details, or building shopping applications powered by H&M's current inventory data.
H&M API
Access H&M's product catalog, search, category navigation, sale and new-arrival listings, product details, similar-item recommendations, and US store locations.
abercrombie.com API
Search and browse Abercrombie & Fitch products across categories, new arrivals, and clearance items while retrieving detailed product information like pricing and availability. Access curated collections and find exactly what you're looking for with powerful search capabilities.
asos.com API
Search and browse ASOS's fashion catalog to discover products across women's and men's categories, view real-time pricing and stock information, and find trending or sale items. Get detailed product information, explore similar items, and discover new arrivals and brands all in one place.
hunkemoller.com API
Browse Hunkemöller's product catalog by category, search for items, view detailed product information, and discover new arrivals with filtering options. Find store locations and compare products to shop for lingerie and intimate apparel across their collection.
gap.com API
Search and browse Gap's product catalog by keyword or category, retrieve detailed product information including pricing, available sizes, colors, and customer reviews, get product recommendations, locate nearby Gap retail stores, and explore the full site navigation and category tree.
urbanoutfitters.com API
Search Urban Outfitters' catalog to find products and browse categories, then view detailed information including prices, descriptions, color and size availability for each item. Check current sale counts and discover what's trending across the store's product lineup.
sanmar.com API
Search SanMar's product catalog to browse t-shirts and other apparel by category, view detailed product information including sizes and MSRP pricing. Access wholesale pricing and real-time inventory data with a B2B account.