# Bien'ici Agency Listings

Returns the ads published by one agency, keyed on its Bien'ici account id. Only ads whose agency identifier matches the requested account are returned, because an unrecognized account key yields a full unfiltered national page rather than an error. The structured agent contact block is removed and never returned. Each ad's `description` is the seller's own text passed through unchanged, so on this route it is also how the rent is read, and it may contain a phone number or email address the seller wrote there. The price field on this route is not a monetary quantity and is published with unit "unreadable" and no figure: the captured agency ads carry price 0, 1, 1, 5 and 6, matching neither a plausible total nor the rate their own text quotes. The other raw fields are left on each ad — agencyRentalFee, surfaceArea and the seller's own description — so you can read the rent yourself rather than being given a confident wrong number. The upstream total is not published either: it is a global counter, not this agency's listing count, so returnedCount is the number of ads in the response.

- **Documentation:** [https://scrappa.co/docs/bienici-api/bienici_agency_listings](https://scrappa.co/docs/bienici-api/bienici_agency_listings)
- **API group:** Bien'ici API
- **Endpoint:** `GET https://scrappa.co/api/bienici/agency-listings`

## 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 |
| --- | --- | --- | --- |
| `import_account_id` | string | Yes | The agency's Bien\'ici account id, as found in an ad's agency identifier. |
| `transaction_type` | string | No | buy, rent, or new_build. Defaults to buy, which returns only the buy half of the agency's inventory — pass rent to see its rental ads. |
| `page` | integer | No | 1-based page. |
| `size` | integer | No | Ads per page, 1 to 500. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/bienici/agency-listings?import_account_id=558bbfd06fbf04e50075bbce&transaction_type=rent&page=2&size=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "realEstateAds": [
            {
                "id": "ag110162-46244965",
                "transactionType": "rent",
                "propertyType": "office",
                "price": {
                    "min": null,
                    "max": null,
                    "currency": null,
                    "disclosed": false,
                    "unit": "unreadable"
                },
                "agencyRentalFee": 0,
                "city": "Carcassonne",
                "postalCode": "11000"
            },
            {
                "id": "ag692351-57141273",
                "transactionType": "rent",
                "propertyType": "house",
                "price": {
                    "min": null,
                    "max": null,
                    "currency": null,
                    "disclosed": false,
                    "unit": "unreadable"
                },
                "agencyRentalFee": 1550,
                "city": "Charbonni\u00e8res-les-Bains",
                "postalCode": "69260"
            },
            {
                "id": "ag190113-57633015",
                "transactionType": "rent",
                "propertyType": "shop",
                "price": {
                    "min": null,
                    "max": null,
                    "currency": null,
                    "disclosed": false,
                    "unit": "unreadable"
                },
                "agencyRentalFee": 0,
                "city": "Malemort-sur-Corr\u00e8ze",
                "postalCode": "19100"
            },
            {
                "id": "ag131474-55672491",
                "transactionType": "rent",
                "propertyType": "parking",
                "price": {
                    "min": null,
                    "max": null,
                    "currency": null,
                    "disclosed": false,
                    "unit": "unreadable"
                },
                "agencyRentalFee": 350,
                "city": "La Barben",
                "postalCode": "13330"
            },
            {
                "id": "ag260625-267764960",
                "transactionType": "rent",
                "propertyType": "premises",
                "price": {
                    "min": null,
                    "max": null,
                    "currency": null,
                    "disclosed": false,
                    "unit": "unreadable"
                },
                "agencyRentalFee": 9,
                "city": "Orange",
                "postalCode": "84100"
            }
        ],
        "returnedCount": 5,
        "from": 5,
        "perPage": 5,
        "agency": {
            "importAccountId": "558bbfd06fbf04e50075bbce"
        }
    },
    "meta": {
        "endpoint_family": "agency_listings"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested house was not found. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. 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)
