# Argenprop Locations

Resolves a typed location into the barrio, localidad, partido, provincia and country codes the upstream publishes, which can be passed straight back to the country and partido search filters.

- **Documentation:** [https://scrappa.co/docs/argenprop-api/argenprop_locations](https://scrappa.co/docs/argenprop-api/argenprop_locations)
- **API group:** Argenprop API
- **Endpoint:** `GET https://scrappa.co/api/argenprop/locations/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Location text, for example Palermo. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/argenprop/locations/autocomplete?q=Palermo"
```

## Example response

```json
{
    "success": true,
    "data": {
        "results": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing or agency was not found. This response is not billable. |
| 422 | Validation Error | A public parameter, or a filter value outside the published catalog, is invalid. No upstream request is made and this response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from the upstream. This response is not billable. |

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