Skip to content
Scrappa Get API key
PAP API 1 credit/request

PAP Listing API Documentation

GET https://scrappa.co/api/pap-fr/listing

PAP Listing API returns the full record of one listing: title, description, price, rooms, bedrooms, living area, address, features, all photos, energy classes and the seller name. Pass the id from a search result. Pass the url of the same result as well when you can, because it makes the lookup more reliable.

geo, energy and reference are filled only when the page shows them, otherwise they are null. Phone numbers and other private contact data are never returned. A listing that no longer exists returns 404 and is not billed.

PAP Listing API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/pap-fr/listing
Auth header
x-api-key
Cost
1 credit/request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "id": "458401326",
        "geo": null,
        "url": "https://www.pap.fr/annonces/appartement-paris-17e-r458401326",
        "price": 740000,
        "rooms": 3,
        "title": "Appartement 3 pi\u00e8ces 70 m\u00b2 Paris 17E",
        "energy": {
            "dpe": "D",
            "ges": null
        },
        "images": [
            "https://cdn.pap.fr/photos/pap/d8/e7/d8e7d6645b989afdfa85d3a17129671f/d-p3.jpg"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

id string Required

Numeric listing id from a search result. Example: 458401326.

Example value 1234567890
url string Optional
Open example

The url field of the same search result. Optional.

Example value https://example.com/product

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "id": "458401326",
        "geo": null,
        "url": "https://www.pap.fr/annonces/appartement-paris-17e-r458401326",
        "price": 740000,
        "rooms": 3,
        "title": "Appartement 3 pi\u00e8ces 70 m\u00b2 Paris 17E",
        "energy": {
            "dpe": "D",
            "ges": null
        },
        "images": [
            "https://cdn.pap.fr/photos/pap/d8/e7/d8e7d6645b989afdfa85d3a17129671f/d-p3.jpg"
        ],
        "seller": {
            "name": "Particulier",
            "type": "private"
        },
        "address": {
            "city": "Paris 17E",
            "country": "FR",
            "postal_code": "75017"
        },
        "heading": "Paris 17E 70 m\u00b2 740.000 \u20ac",
        "bedrooms": 2,
        "currency": "EUR",
        "features": {
            "Pi\u00e8ces": "3",
            "Surface": "70 m\u00b2",
            "Chambres": "2"
        },
        "reference": null,
        "surface_m2": 70,
        "description": "Id\u00e9alement situ\u00e9, dans une rue calme, proche de tous commerces.",
        "listing_type": "sale"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "listing"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or outside its allowed values. This response is not billable.

{
    "errors": {
        "location_id": [
            "The location id field is required."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The listing does not exist or was removed. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "listing"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

PAP could not be reached, or the page could not be confirmed as the requested one. Retry shortly. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "listing"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "PAP could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.