# Graana Area Breadcrumbs API Documentation

Scrappa's `GET /api/graana/area-breadcrumbs` returns the parent chain of one Graana area.

## What you get

`path` lists the area and its parents, each with `area_id`, `name` and `level`, together with the `city_id` and `city`. Take the `area_id` from the autocomplete endpoint. An area id that Graana does not know returns `404`, which is never billed.

- **Documentation:** [https://scrappa.co/docs/graana-api/graana_area_breadcrumbs](https://scrappa.co/docs/graana-api/graana_area_breadcrumbs)
- **API group:** Graana API
- **Endpoint:** `GET https://scrappa.co/api/graana/area-breadcrumbs`

## 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 |
| --- | --- | --- | --- |
| `area_id` | integer | Yes | Area id from the autocomplete endpoint, for example 810. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/graana/area-breadcrumbs?area_id=810"
```

## Example response

```json
{
    "success": true,
    "area_id": 810,
    "city_id": 1,
    "city": "Islamabad",
    "path": [
        {
            "area_id": 810,
            "name": "Jinnah Garden Phase 1",
            "level": 1
        },
        {
            "area_id": 196,
            "name": "Jinnah Garden",
            "level": 2
        }
    ],
    "meta": {
        "endpoint_family": "area_breadcrumbs",
        "billable": true,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Nothing exists with that identifier on Graana (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters and unknown values are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Graana could not be reached after retries, answered with an error or changed its format (`upstream_unavailable`, `upstream_blocked`, `parser_drift`). Retryable and never billed. Clients are never rate limited. |

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