# Daft.ie Geocode

Resolves an Irish address to its eircode, building-level coordinates and the containing area hierarchy.

- **Documentation:** [https://scrappa.co/docs/daft-ie-api/daft_ie_geocode](https://scrappa.co/docs/daft-ie-api/daft_ie_geocode)
- **API group:** Daft.ie API
- **Endpoint:** `GET https://scrappa.co/api/daft-ie/geocode`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Address text, for example 12 Grafton Street, Dublin 2. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/daft-ie/geocode?query=12+Grafton+Street%2C+Dublin+2"
```

## Example response

```json
{
    "success": true,
    "data": [
        {
            "latitude": 53.341949,
            "longitude": -6.25994,
            "eircode": "D02 XY45",
            "matchLevel": "BUILDING",
            "areas": [
                {
                    "areaId": 70,
                    "name": "Dublin 6",
                    "areaType": "AREA"
                }
            ]
        }
    ],
    "meta": {
        "duration_ms": 420,
        "endpoint_family": "geocode"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested Daft.ie resource does not exist. This response is not billable. |
| 422 | Invalid Request | A parameter was missing, out of range, or not one of the accepted values — for example an unknown section, ad state, sort or area id. Nothing was requested from Daft.ie, so retrying unchanged will fail the same way. Not billable. |
| 422 | Rejected As Untrustworthy | Daft.ie returned a response that did not match the request, so no data is returned. This happens instead of silently widening a result set. A request did reach Daft.ie and its answer was discarded. Not billable. |
| 501 | Not Public Data | Daft.ie serves this route as gated, so it carries no public listing data. Not billable. |
| 503 | Service Unavailable | Daft.ie is inspecting or refusing the request, it refused the request shape outright, or no approved upstream route is available. This is not an empty result set. Not billable. A gateway-level 502 is rewritten to 503 before it reaches a client, so this endpoint never answers 502. |

## 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)
