# Ouest-France Immo Agencies API Documentation

Find agencies in a place (place_id from /autocomplete) or by name (query). Each agency carries its id, name, address, coordinates, phone, website, logo, opening hours, rating when present and listing counts. Pass the id to /agency or /agency-listings. A page past the last one is an empty list that keeps the requested page number.

- **Documentation:** [https://scrappa.co/docs/ouestfrance-immo-api/ouestfrance_immo_agencies](https://scrappa.co/docs/ouestfrance-immo-api/ouestfrance_immo_agencies)
- **API group:** Ouest-France Immo API
- **Endpoint:** `GET https://scrappa.co/api/ouestfrance-immo/agencies`

## 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 |
| --- | --- | --- | --- |
| `place_id` | string | No | Place id from /autocomplete. Required unless query is set. |
| `query` | string | No | Agency name, 2 to 80 characters. Required unless place_id is set. |
| `page` | integer | No | One-based page number. Defaults to 1. |
| `limit` | integer | No | Agencies per page, 1 to 50. Defaults to 10. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/ouestfrance-immo/agencies?place_id=15818&limit=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "items": [
            {
                "id": 8765,
                "name": "CENTURY 21 RENNES",
                "legal_name": "EXAMPLE IMMOBILIER",
                "siret": "00000000000000",
                "slug": "century-21",
                "address": "27 Boulevard Ren\u00e9 Laennec",
                "postal_code": "35000",
                "city": "Rennes",
                "place_id": 15818,
                "latitude": 48.105855,
                "longitude": -1.665844,
                "phone": "0200000000",
                "website": "https://www.century21-reine-rennes.com/agence/",
                "logo_url": "https://www.ouestfrance-immo.com/photo-century-21/logo.png",
                "opening_hours": {
                    "monday": [
                        {
                            "open": "09:00",
                            "close": "12:00"
                        },
                        {
                            "open": "14:00",
                            "close": "19:00"
                        }
                    ]
                },
                "rating": null,
                "listing_counts": {
                    "sale": 46,
                    "rent": 9,
                    "sold": 0,
                    "exclusive": 25
                },
                "attributes": {
                    "tag": "example"
                }
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 5,
            "total_results": 327,
            "total_pages": 66,
            "has_next": true
        }
    },
    "meta": {
        "endpoint_family": "agencies",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is missing or invalid. No upstream call is made and the response is not billable. |
| 502 | Unexpected Upstream Response | Ouest-France Immo answered with a body that is not the documented shape. The response is not billable. |
| 503 | Upstream Unavailable | Ouest-France Immo 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)
