# Fincaraiz Agency Profile API Documentation

Scrappa's `GET /api/fincaraiz/agency` returns one agency profile: name, branding, description, public profile link, listing count, and masked contact details.

Ids come from the agency directory. To fetch the agency's listings instead of its profile, use `/api/fincaraiz/agency-properties?owner_id=...`.

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

## 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` | string | Yes | Numeric agency id from the agency directory. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/fincaraiz/agency?id=176827195"
```

## Example response

```json
{
    "success": true,
    "agency": {
        "id": "176827195",
        "name": "Karpador inmobiliaria",
        "description": "Inmobiliaria con mas de 10 anos de experiencia...",
        "profile_url": "/inmobiliarias/perfil/176827195-karpador-inmobiliaria",
        "masked_phone": "(604) *** *** 45",
        "has_whatsapp": true,
        "property_count": 6
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency",
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The required `id` parameter is missing or invalid. Non-billable. |
| 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. |
| 404 | Agency Not Found | No agency exists with that id (`not_found`). Non-billable. |

## Related endpoints

- [Agency Directory](https://scrappa.co/docs/fincaraiz-api/fincaraiz_agencies)

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