# Square Yards Search Filters API Documentation

List the filter values that /search accepts for one category: property types with ids and groups (residential or commercial), bedroom labels, the budget steps in rupees and the size steps in square feet. Locality ids come from /autocomplete.

- **Documentation:** [https://scrappa.co/docs/squareyards-api/squareyards_filters](https://scrappa.co/docs/squareyards-api/squareyards_filters)
- **API group:** Square Yards API
- **Endpoint:** `GET https://scrappa.co/api/squareyards/v1/filters`

## 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 |
| --- | --- | --- | --- |
| `category` | string | No | buy or rent. Defaults to buy. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/squareyards/v1/filters?category=buy"
```

## Example response

```json
{
    "success": true,
    "data": {
        "category": "buy",
        "property_types": [
            {
                "id": 1,
                "name": "Apartment",
                "group": "residential"
            },
            {
                "id": 5,
                "name": "Office Space",
                "group": "commercial"
            }
        ],
        "bedrooms": [
            "1 BHK",
            "2 BHK",
            "3 BHK",
            "Studio"
        ],
        "budget_steps": [
            {
                "label": "\u20b9 5 Lac",
                "value": 500000
            }
        ],
        "size_steps": [
            100,
            200,
            300
        ]
    },
    "meta": {
        "endpoint_family": "filters",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is missing or invalid, or a city, property type, bedroom value or sort cannot be resolved. The response is not billable. |
| 404 | Resource Not Found | The requested Square Yards resource does not exist. The response is not billable. |
| 503 | Unexpected Upstream Response | Square Yards answered with a body that is not the documented shape. The response is not billable. |
| 503 | Upstream Unavailable | Square Yards was temporarily unavailable or blocked the request. The response is not billable and the request never answers 429. |

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