# Leboncoin Immobilier Agency

Look up a seller: whether they are a professional or a private individual, their public seller profile, or their registered business details. Private sellers do not publish a business profile, so requesting one for them returns a 404 that is not billable. Agency listings are also reachable directly through the search endpoint with seller=pro, which returns the company identifier inline on every record.

- **Documentation:** [https://scrappa.co/docs/leboncoin-immo-api/leboncoin_immo_agency](https://scrappa.co/docs/leboncoin-immo-api/leboncoin_immo_agency)
- **API group:** Leboncoin Immobilier API
- **Endpoint:** `GET https://scrappa.co/api/leboncoin-immo/agency`

## 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 |
| --- | --- | --- | --- |
| `user_id` | integer | Yes | Seller id from a listing owner object. |
| `include` | string | Yes | account_type for the professional/private discriminator, profile for the public seller card, store for registered business details. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/leboncoin-immo/agency?user_id=123456&include=account_type"
```

## Example response

```json
{
    "success": true,
    "data": {
        "account_type": "professional"
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested property listing 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)
