Skip to content
Scrappa Get API key
Knuspr API 1 credit / request

Knuspr Sitemap Ids API Documentation

GET https://scrappa.co/api/knuspr/sitemap

Knuspr Sitemap Ids API lists public product ids from the sitemap as a source for the product route. The answer is cached only on success and capped at 2000 ids.

Costs 1 credit per request; failed requests are free.

Knuspr Sitemap Ids API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/knuspr/sitemap
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "ids": [
            "1470",
            "2192"
        ],
        "count": 2
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "sitemap"
    },
    "success": true
...

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "ids": [
            "1470",
            "2192"
        ],
        "count": 2
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "sitemap"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

503

Upstream Unavailable

The source could not be reached. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "sitemap"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Knuspr could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.