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

Hepsiemlak Agency Licence API Documentation

GET https://scrappa.co/api/hepsiemlak/agency/licence

Hepsiemlak Agency Licence API returns the public licence record of an agency: licence number, status and trade name. Tax numbers are never returned. An unknown agency id returns 404, not billed.

Hepsiemlak Agency Licence API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/hepsiemlak/agency/licence
Auth header
x-api-key
Cost
1 credit/request
agency_id = 1234567890
Response preview
200 OK
{
    "data": {
        "number": "3400107",
        "status": "APPROVED",
        "agency_id": 1100,
        "trade_name": "Example Real Estate Ltd."
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency_licence"
    },
    "success": true
}

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.

agency_id integer Required

Agency id such as 1100.

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": {
        "number": "3400107",
        "status": "APPROVED",
        "agency_id": 1100,
        "trade_name": "Example Real Estate Ltd."
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency_licence"
    },
    "success": true
}

Errors

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

422

Validation Error

A parameter is missing or outside its allowed values. This response is not billable.

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

Not Found

The agency does not exist. This response is not billable.

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

Upstream Unavailable

Hepsiemlak could not be reached or capacity is busy. Retry after a short pause. This response is not billable.

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