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

Encuentra24 Autocomplete API Documentation

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

Encuentra24 Autocomplete API suggests provinces, cantons and districts for a text of at least 3 characters. Each result has a slug that you pass as region to the search route, the full name, level and coordinates.

A text without a match returns an empty list. Failed requests are not billed.

Encuentra24 Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/encuentra24/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "san jo",
        "country": "costa-rica",
        "results": [
            {
                "id": "116",
                "name": "San Jos\u00e9 provincia",
                "slug": "costa-rica-es-san-jose-provincia",
                "zoom": 10,
                "level": 2,
                "latitude": 9.963440335314614,
                "full_name": "San Jos\u00e9 provincia",
                "longitude": -84.1360473632812
...

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, 3 to 100 characters.

Example value coffee shops
country string Optional

costa-rica (default), panama, nicaragua or honduras.

Example value US
limit integer Optional

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

Example value 10

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": "san jo",
        "country": "costa-rica",
        "results": [
            {
                "id": "116",
                "name": "San Jos\u00e9 provincia",
                "slug": "costa-rica-es-san-jose-provincia",
                "zoom": 10,
                "level": 2,
                "latitude": 9.963440335314614,
                "full_name": "San Jos\u00e9 provincia",
                "longitude": -84.1360473632812
            },
            {
                "id": "139",
                "name": "San Jos\u00e9 Capital",
                "slug": "costa-rica-es-san-jose-provincia-san-jose-capital",
                "zoom": 13,
                "level": 3,
                "latitude": 9.95464844992134,
                "full_name": "San Jos\u00e9 Capital, San Jos\u00e9 provincia",
                "longitude": -84.09107208251956
            },
            {
                "id": "38",
                "name": "Santo Domingo",
                "slug": "costa-rica-es-heredia-provincia-santo-domingo",
                "zoom": 14,
                "level": 3,
                "latitude": 9.979670885582053,
                "full_name": "Santo Domingo, Heredia provincia",
                "longitude": -84.0896987915039
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

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

422

Validation Error

A parameter is missing, out of range or not supported. This response is not billable.

{
    "errors": {
        "country": [
            "The selected country is invalid."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Encuentra24 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": "Encuentra24 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.