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

Spitogatos Autocomplete API Documentation

GET https://scrappa.co/api/spitogatos/autocomplete

Spitogatos Autocomplete API resolves a place name in Greek or Latin letters to area ids. Pass the id of a result as area_ids to the search, count and map routes. Each result has its name, full name, level in the area tree, parent area and coordinates. A query with no match returns an empty list. Failed requests are not billed.

Spitogatos Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/spitogatos/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9",
        "results": [
            {
                "id": 6009,
                "name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2",
                "slug": "kolonaki-lykavittos",
                "level": 4,
                "full_name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2 (\u0391\u03b8\u03ae\u03bd\u03b1 - \u039a\u03ad\u03bd\u03c4\u03c1\u03bf)",
                "parent_id": 100,
                "coordinates": null,
                "parent_name": "\u0391\u03b8\u03ae\u03bd\u03b1 - \u039a\u03ad\u03bd\u03c4\u03c1\u03bf"
            },
...

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.

2 optional filters available.

query string Required

Search text, 2 to 100 characters. Example: Κολωνάκι.

Example value coffee shops
limit integer Optional

Number of results, 1 to 25 (default 10).

Example value 10
locale string Optional

Language of area names: el (default) or en.

Example value en-US

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": {
        "query": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9",
        "results": [
            {
                "id": 6009,
                "name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2",
                "slug": "kolonaki-lykavittos",
                "level": 4,
                "full_name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2 (\u0391\u03b8\u03ae\u03bd\u03b1 - \u039a\u03ad\u03bd\u03c4\u03c1\u03bf)",
                "parent_id": 100,
                "coordinates": null,
                "parent_name": "\u0391\u03b8\u03ae\u03bd\u03b1 - \u039a\u03ad\u03bd\u03c4\u03c1\u03bf"
            },
            {
                "id": 2019,
                "name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9",
                "slug": "kolonaki-kolonaki-lykavittos",
                "level": 5,
                "full_name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 (\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2)",
                "parent_id": 6009,
                "coordinates": null,
                "parent_name": "\u039a\u03bf\u03bb\u03c9\u03bd\u03ac\u03ba\u03b9 - \u039b\u03c5\u03ba\u03b1\u03b2\u03b7\u03c4\u03c4\u03cc\u03c2"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

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

422

Validation Error

A required parameter or a range is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "The query field is required."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Spitogatos could not be reached or returned data that does not match the request. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Spitogatos 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.