# Fincaraiz Location Record API Documentation

Scrappa's `GET /api/fincaraiz/location` returns a single location record from the platform's own numbered vocabulary.

This is a **different id set** from the one the search endpoint uses. Search geography is a UUID; this vocabulary numbers departments and neighbourhoods with small integers. The two do not overlap, and feeding a number from here into a search location filter returns zero results.

Use location-vocabulary to enumerate the ids and location-geometry when you need boundaries. To translate a public Fincaraiz URL into either vocabulary, use route-resolver.

- **Documentation:** [https://scrappa.co/docs/fincaraiz-api/fincaraiz_location](https://scrappa.co/docs/fincaraiz-api/fincaraiz_location)
- **API group:** Fincaraiz API
- **Endpoint:** `GET https://scrappa.co/api/fincaraiz/location`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | Yes | Numeric location id from the location vocabulary. |
| `type` | string | No | estate for a department (default) or neighborhood for a neighbourhood. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/fincaraiz/location?id=40&type=estate"
```

## Example response

```json
{
    "success": true,
    "location": {
        "id": 40,
        "name": "Medellin"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "location",
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | The upstream request failed after retries, or returned a response this endpoint cannot read (`upstream_unavailable`, `parser_drift`). Retryable and never billed. |
| 503 | Unreadable Response | The platform answered successfully with a body this endpoint cannot read, so nothing is published and nothing is charged (`parser_drift`). Retryable. |
| 422 | Validation Error | The id is missing or not an integer, or the type is not estate/neighborhood. Non-billable. |
| 404 | Location Not Found | No location exists with that id and type (`not_found`). Non-billable. |

## Frequently asked questions

### Can I use these ids in a search?

No. Search geography uses UUIDs from location-autocomplete; these numeric ids belong to a separate vocabulary and return zero results in search.

## Related endpoints

- [Location Vocabulary](https://scrappa.co/docs/fincaraiz-api/fincaraiz_location_vocabulary)
- [Route Resolver](https://scrappa.co/docs/fincaraiz-api/fincaraiz_route_resolver)

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