# Lamudi Autocomplete API Documentation

<p><strong>Lamudi Autocomplete API</strong> turns text into Lamudi areas and new-development projects. Each result has an <code>id</code>, a <code>text</code>, a <code>kind</code> (area or project) and the parent area. Pass an area <code>id</code> to the search route as <code>location_id</code>. An empty list is a valid answer and is billed.</p>

- **Documentation:** [https://scrappa.co/docs/lamudi-api/lamudi_autocomplete](https://scrappa.co/docs/lamudi-api/lamudi_autocomplete)
- **API group:** Lamudi API
- **Endpoint:** `GET https://scrappa.co/api/lamudi/autocomplete`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Search text, 3 to 100 characters. Example: makati. |

## Example response

```json
{
    "data": {
        "query": "makati",
        "results": [
            {
                "id": "1977",
                "kind": "area",
                "text": "Makati",
                "parent_area": "Metro Manila"
            },
            {
                "id": "124699",
                "kind": "area",
                "text": "Makati Avenue",
                "parent_area": "Makati"
            },
            {
                "id": "1a87166b-1a49-4582-aff6-6a2e847b90a4",
                "kind": "project",
                "text": "Rizal Village - Makati",
                "parent_area": null
            },
            {
                "id": "13edd06c-5da6-4aaf-b93c-f9d26b4ac1d7",
                "kind": "project",
                "text": "Kingswood Makati Condominium",
                "parent_area": null
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | Lamudi could not be reached or returned data that does not match the request. This response is not billable and is retryable. |

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