Shopify API endpoint
Lists the child sitemaps in a Shopify storefront's sitemap index, for the required `url`. Each has a `loc` and a `type` (`products`, `collections`, `pages`, `blogs`, `agentic_discovery` or `other`) inferred from its URL. Localhost, private-network and credentialed URLs are rejected.
/shopify/sitemapsReturns child sitemap URLs from a public Shopify /sitemap.xml index.
url: required. Full Shopify storefront URL, using http or https. Localhost, private network, link-local, and credentialed URLs are rejected.type is inferred from the child sitemap URL.products, collections, pages, blogs, agentic_discovery, and other.| Field | Filled in, of 174 checked | Values in the sample |
|---|---|---|
| loc | 174 | allbirds.com |
| type | 174 | other (168), collections (2), agentic_discovery (1) and 3 more |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Shopify storefront URL | https://www.allbirds.com | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/shopify/sitemaps?url=https%3A%2F%2Fwww.allbirds.com" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"store_url": "https://www.allbirds.com",
"source_url": "https://www.allbirds.com",
"sitemaps": [
{
"loc": "https://www.allbirds.com/sitemap_products_1.xml",
"type": "products"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/shopify.sitemapIndexResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | shopify.SitemapIndexResponse | No | ||||
| data.sitemaps | array | No | Child sitemaps listed by the store's main sitemap. | |||
| data.sitemaps[].loc | string | No | https://www.allbirds.com/sitemap_products_1.xml | URL of the child sitemap file. | ||
| data.sitemaps[].type | string | No | products | Section the sitemap covers: `products`, `collections`, `pages`, `blogs`, `agentic_discovery` or `other`. | ||
| data.source_url | string | No | https://www.allbirds.com | URL the data was read from. | ||
| data.store_url | string | No | https://www.allbirds.com | Base URL of the Shopify storefront that was queried. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/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/shopify/sitemaps?url=https%3A%2F%2Fwww.allbirds.com" \
-H "x-api-key: $CRAWLORA_API_KEY"