Old Navy API endpoint
Returns a category/browse listing for one storefront category id (cid). cid is an opaque Gap Inc category id assigned by the storefront's own navigation -- neither oldnavy-search nor oldnavy-category currently surface a category-id list, so find one from the storefront's own category page URLs (the cid query parameter on a /browse/... page) for now. Select the storefront with the brand parameter (`on` for Old Navy, `gap` for Gap, `br` for Banana Republic, `at` for Athleta; defaults to `on`) -- it must match the brand the cid was found under. Returns the category's subcategory breakdown, product summaries with per-color inventory data, and available search facets with live counts.
/oldnavy/categoryNotable response behavior:
categories breaks the listing into its subcategory groups (e.g. "Slim Jeans" within a "Jeans" category), each with the specific color-level product ids (items[].cc_id) that belong to it.colors[].id is the value to pass as pid to oldnavy-product for full product-detail data on that color -- the same id space as oldnavy-search's colors[].id.oldnavy-search: inventory_count, inventory_status, back_order_inventory_count, and back_order_inventory_status.facets lists the available filters (price range, department, review score, color, fit, and others) with live per-option result counts.cid returns 404. A page beyond the upstream's own last page returns a 200 with an empty products array (not a 404) -- this differs from oldnavy-search's own overflow behavior.cid returns 400 before any upstream request is made.| Field | Filled in, of 42 checked | Values in the sample |
|---|---|---|
| id | 42 | |
| name | 42 | “Low-Rise Loose Jeans” and 39 other values |
| web_product_type | 42 | womens jeans (37), womens bottoms (5) |
| review_score | 42 | 1 to 5, median 4.5 |
| review_count | 42 | 1 to 42,383, median 1,391 |
| url | 42 | oldnavy.gap.com |
| colors | 42 | median 4 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| cid | string | Yes | Category id, from a storefront category page's own cid query parameter | 85729 | |
| brand | string | No | Storefront to browse Allowed values: on, gap, br, at. | ||
| page | integer | No | One-based page Minimum: 1. Maximum: 500. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/oldnavy/category?cid=85729&brand=on&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"category_id": "85729",
"brand": "on",
"page": 1,
"page_size": 200,
"total_pages": 2,
"total_colors": 392,
"count": 1,
"categories": [
{
"category_id": "85729",
"category_name": "Jeans",
"sub_category_id": "3051473",
"sub_category_name": "Slim Jeans",
"items": [
{
"cc_id": "896223002",
"style_id": "431453"
}
]
}
],
"products": [
{
"id": "734897",
"name": "High-Waisted Wow Super-Skinny Jeans",
"review_score": 4.6,
"review_count": 38414,
"url": "https://oldnavy.gap.com/browse/product.do?pid=886872002",
"colors": [
{
"id": "886872002",
"name": "White",
"short_description": "Calla Lily White",
"price": 22,
"regular_price": 34.99,
"percentage_off": 37,
"image_url": "https://oldnavy.gap.com/webcontent/0061/704/456/cn61704456.jpg",
"inventory_count": 55,
"inventory_status": "In Stock",
"back_order_inventory_count": 0,
"back_order_inventory_status": "Out of Stock"
}
]
}
],
"facets": [
{
"name": "price",
"type": "range",
"range_min": 4.99,
"range_max": 64.99,
"is_range": true
},
{
"name": "department",
"label": "department",
"type": "single-select",
"options": [
{
"label": "Women",
"value": "Women",
"count": 282
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/oldnavy.categoryResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | oldnavy.CategoryResponse | No | ||||
| data.brand | string | No | ||||
| data.categories | array | No | ||||
| data.categories[].category_id | string | No | ||||
| data.categories[].category_name | string | No | ||||
| data.categories[].items | array | No | ||||
| data.categories[].items[].cc_id | string | No | ||||
| data.categories[].items[].style_id | string | No | ||||
| data.categories[].sub_category_id | string | No | ||||
| data.categories[].sub_category_name | string | No | ||||
| data.category_id | string | No | ||||
| data.count | integer | No | ||||
| data.facets | array | No | Facet record, 10 fields: is_range, label, name, options, range_max, range_min, type. Described under Old Navy Product Search API. | |||
| data.fetched_at | string | No | ||||
| data.page | integer | No | ||||
| data.page_size | integer | No | ||||
| data.products | array | No | ||||
| data.products[].colors | array | No | ||||
| data.products[].colors[].back_order_inventory_count | integer | No | ||||
| data.products[].colors[].back_order_inventory_status | string | No | ||||
| data.products[].colors[].id | string | No | ||||
| data.products[].colors[].image_url | string | No | ||||
| data.products[].colors[].inventory_count | integer | No | ||||
| data.products[].colors[].inventory_status | string | No | ||||
| data.products[].colors[].name | string | No | ||||
| data.products[].colors[].percentage_off | integer | No | ||||
| data.products[].colors[].price | number | No | ||||
| data.products[].colors[].regular_price | number | No | ||||
| data.products[].colors[].short_description | string | No | ||||
| data.products[].id | string | No | ||||
| data.products[].name | string | No | ||||
| data.products[].review_count | integer | No | ||||
| data.products[].review_score | number | No | ||||
| data.products[].url | string | No | ||||
| data.products[].web_product_type | string | No | ||||
| data.source_url | string | No | ||||
| data.total_colors | integer | No | ||||
| data.total_pages | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/oldnavy/category?cid=85729&brand=on&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"