# Fotocasa Listing

Returns the listing detail record for one listing, addressed by its full path. Take the uris entry that comes back from /search and pass it as path, so no URL is ever guessed. There is deliberately no id-only form: the path carries a transaction segment and a property segment that change per listing and per language, so an assembled URL 404s for listings that exist, and an id is refused with a 422 rather than forwarded. The agency publisher record is returned without its phone number, and no contact or messaging field is exposed.

- **Documentation:** [https://scrappa.co/docs/fotocasa-api/fotocasa_listing](https://scrappa.co/docs/fotocasa-api/fotocasa_listing)
- **API group:** Fotocasa API
- **Endpoint:** `GET https://scrappa.co/api/fotocasa/listing`

## 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 |
| --- | --- | --- | --- |
| `path` | string | Yes | The uris value from a search item, for example /es/comprar/vivienda/madrid-capital/slug/190783970/d. Required; pass the entry whose language you want. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/fotocasa/listing?path=%2Fes%2Fcomprar%2Fvivienda%2Fmadrid-capital%2Faire-acondicionado-calefaccion-terraza-trastero-ascensor-amueblado%2F190783970%2Fd"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 1,
        "property_id": 190783970,
        "property_type_label": "home",
        "description": "Piso en Madrid"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing or location was not found. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid, including an unknown property_type or transaction_type. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from Fotocasa. 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)
