# Metrocuadrado Types API Documentation

Scrappa's `GET /api/metrocuadrado/types` endpoint returns the source's selector vocabularies. One request reads one vocabulary, so the two are alternatives rather than a chain.

`type=property` (default) returns the property types to pass as `property_type` on the search endpoint — numeric codes, comma-joined for several. Note that a plot is the composite code `4,15`; the bare code `4` matches the whole inventory and returns nothing, which is why the search endpoint rejects it.

`type=deal` returns the deal types to pass as `business_type`: `venta` and `arriendo`.

An empty taxonomy returns a non-billable error rather than an empty success.

- **Documentation:** [https://scrappa.co/docs/metrocuadrado-api/metrocuadrado_types](https://scrappa.co/docs/metrocuadrado-api/metrocuadrado_types)
- **API group:** Metrocuadrado API
- **Endpoint:** `GET https://scrappa.co/api/metrocuadrado/types`

## 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 |
| --- | --- | --- | --- |
| `type` | string | No | property (default) or deal. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/metrocuadrado/types?type=property"
```

## Example response

```json
{
    "success": true,
    "type": "property",
    "count": 1,
    "options": [
        {
            "value": "1",
            "label": "Apartamento",
            "attributes": {
                "value": "1",
                "label": "Apartamento",
                "icon": "Se"
            }
        }
    ],
    "meta": {
        "endpoint_family": "types",
        "note": "Pass these values to the property_type parameter of /search. The lote entry is the composite code 4,15; the bare code 4 returns nothing."
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Error | Unknown type, or an unknown parameter was sent. Nothing is charged. |
| 404 | Error | The source returned an empty taxonomy. Not charged. |
| 503 | Error | The source was unreachable. Not charged, safe to retry. |

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