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

Kijiji Location API Documentation

GET https://scrappa.co/api/kijiji/location

Kijiji Location API returns the name and the path from country to city of one Kijiji location id, so you can label location_id values from search and listing results. name_fr is added only when the French name differs. The id 0 is Canada. An unknown location id returns a non-billable 404. Common ids: Canada 0, Alberta 9003, Ontario 9004, Calgary 1700199, Toronto 1700273; Buy & Sell 10, Cars & Vehicles 27, Cars & Trucks 174, Bikes 644, Cell phones 760.

Kijiji Location API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/kijiji/location
Auth header
x-api-key
Cost
1 credit/request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "id": 1700199,
        "name": "Calgary",
        "path": [
            {
                "id": 0,
                "name": "Canada"
            },
            {
                "id": 9003,
                "name": "Alberta"
            },
            {
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

id integer Required

Numeric Kijiji location id, e.g. 1700199. Example: 1700199.

Example value 1234567890

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": {
        "id": 1700199,
        "name": "Calgary",
        "path": [
            {
                "id": 0,
                "name": "Canada"
            },
            {
                "id": 9003,
                "name": "Alberta"
            },
            {
                "id": 1700199,
                "name": "Calgary"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "location"
    },
    "success": true
}

Errors

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

422

Validation Error

The id is missing or not a non-negative integer. This response is not billable.

{
    "errors": {
        "id": [
            "The id is required."
        ]
    },
    "message": "The request validation failed"
}
404

Location Not Found

No Kijiji location exists for the id. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "location"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested Kijiji resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

Kijiji is temporarily unreachable, blocked the request or answered with data that does not match the documented shape (error code PARSER_DRIFT). Retry later; this response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "location"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Kijiji API is temporarily unavailable. Please retry."
    },
    "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.