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

Realitica Locations API Documentation

GET https://scrappa.co/api/realitica/v1/locations

Realitica Locations API lists the municipalities and regions of a country with their current number of sale listings, optionally filtered by a text. Realitica has no autocomplete endpoint, so the list comes from the facets of a result page and is cached for one hour. Pass a name as the region filter of the search route.

Realitica Locations API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/realitica/v1/locations
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "query": "bud",
        "total": 2,
        "country": "montenegro",
        "locations": [
            {
                "name": "Budva",
                "count": 6749
            },
            {
                "name": "Budva Okolina",
                "count": 5865
            }
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

2 optional filters available.

country string Optional

montenegro (default), croatia, serbia or bosnia. Example: montenegro.

Example value US
q string Optional

Optional text to match in the location name. Example: bud.

Example value coffee shops

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": "bud",
        "total": 2,
        "country": "montenegro",
        "locations": [
            {
                "name": "Budva",
                "count": 6749
            },
            {
                "name": "Budva Okolina",
                "count": 5865
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "locations"
    },
    "success": true
}

Errors

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

422

Validation Error

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

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

Upstream Unavailable

Realitica could not be reached. This response is not billable and is retryable.

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

Unexpected Upstream Data

Realitica returned data in an unexpected shape. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "locations"
    },
    "error": {
        "code": "INVALID_UPSTREAM_SHAPE",
        "message": "Realitica returned data in an unexpected shape. 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.