Skip to content
Scrappa Get API key
imot.bg API 1 credit/request

imot.bg Agencies API Documentation

GET https://scrappa.co/api/imot-bg/agencies

imot.bg Agencies API without query returns the agency directory with name, address, phones, logo, years on imot.bg and the agency name to use with the agency route. With query it searches agencies by keyword and returns the agency id, name and number of ads. A keyword result carries no sub-site name, so the agency route needs the id from the directory. Failed requests are not billed.

imot.bg Agencies API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/imot-bg/agencies
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "query": null,
        "source": "directory",
        "agencies": [
            {
                "id": "xnvd_burgas",
                "url": "https://xnvd_burgas.imot.bg",
                "logo": "https://www.imot.bg/images/logos/med/xnvd_burgas.pic",
                "name": "\u0415\u041a\u0421 \u041d\u0412\u0414 \u0411\u0423\u0420\u0413\u0410\u0421 \u041e\u041e\u0414",
                "phones": [
                    "0887779990"
                ],
                "address": "\u043e\u0431\u043b\u0430\u0441\u0442 \u0411\u0443\u0440\u0433\u0430\u0441, \u0433\u0440. \u0411\u0443\u0440\u0433\u0430\u0441, \u0443\u043b. \u0421\u0435\u0440\u0434\u0438\u043a\u0430 2, \u0435\u0442. 4, \u043e\u0444\u0438\u0441 3",
...

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.

query string Optional

Keyword in the agency name, for example imoti. Leave empty for the directory.

Example value coffee shops
sort string Optional

Directory only: listings (default, by number of ads) or alphabetical.

Example value relevance

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": null,
        "source": "directory",
        "agencies": [
            {
                "id": "xnvd_burgas",
                "url": "https://xnvd_burgas.imot.bg",
                "logo": "https://www.imot.bg/images/logos/med/xnvd_burgas.pic",
                "name": "\u0415\u041a\u0421 \u041d\u0412\u0414 \u0411\u0423\u0420\u0413\u0410\u0421 \u041e\u041e\u0414",
                "phones": [
                    "0887779990"
                ],
                "address": "\u043e\u0431\u043b\u0430\u0441\u0442 \u0411\u0443\u0440\u0433\u0430\u0441, \u0433\u0440. \u0411\u0443\u0440\u0433\u0430\u0441, \u0443\u043b. \u0421\u0435\u0440\u0434\u0438\u043a\u0430 2, \u0435\u0442. 4, \u043e\u0444\u0438\u0441 3",
                "is_top_agency": false,
                "years_on_site": 3
            },
            {
                "id": "address",
                "url": "https://address.imot.bg",
                "logo": "https://www.imot.bg/images/logos/med/address.pic",
                "name": "\u0410\u0414\u0420\u0415\u0421 \u041d\u0415\u0414\u0412\u0418\u0416\u0418\u041c\u0418 \u0418\u041c\u041e\u0422\u0418",
                "phones": [
                    "088 21 21 450"
                ],
                "address": "\u043e\u0431\u043b\u0430\u0441\u0442 \u0421\u043e\u0444\u0438\u044f, \u0433\u0440. \u0421\u043e\u0444\u0438\u044f, \u043f\u043b. \u0421\u0432\u0435\u0442\u0430 \u041d\u0435\u0434\u0435\u043b\u044f No 4, \u0435\u0442. 6",
                "is_top_agency": true,
                "years_on_site": 22
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agencies"
    },
    "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": {
        "page": [
            "imot.bg shows at most 1,000 results per search (25 pages). The page must be 26 or lower."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

imot.bg 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": "agencies"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "imot.bg 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.