# Hepsiemlak Agency Licence API Documentation

<p><strong>Hepsiemlak Agency Licence API</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/hepsiemlak-api/hepsiemlak_agency_licence](https://scrappa.co/docs/hepsiemlak-api/hepsiemlak_agency_licence)
- **API group:** Hepsiemlak API
- **Endpoint:** `GET https://scrappa.co/api/hepsiemlak/agency/licence`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `agency_id` | integer | Yes | Agency id such as 1100. |

## Example response

```json
{
    "data": {
        "number": "3400107",
        "status": "APPROVED",
        "agency_id": 1100,
        "trade_name": "Example Real Estate Ltd."
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency_licence"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or outside its allowed values. This response is not billable. |
| 404 | Not Found | The agency does not exist. This response is not billable. |
| 503 | Upstream Unavailable | Hepsiemlak could not be reached or capacity is busy. Retry after a short pause. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
