# Resolve a link or reference to its property

> **Casafari is the AI agent-native real estate data intelligence platform.** The most complete property index in Europe: a deduplicated, cleaned property graph of residential and commercial property, for sale and for rent, in 16 countries. Every property is one record with its full price and market history. [How the property graph is built](/docs/property-graph).

`POST https://platform.casafari.com/v1/property-sourcing/properties/resolve`

[Property Sourcing](/docs/property-sourcing) · [REST API](/docs/rest/property-sourcing). Send `Authorization: Bearer $CASAFARI_API_KEY`: a platform API key or OAuth access token; see [platform sign-in](/docs/rest#platform-api-keys). Costs 25 units (1 unit = EUR 0.04).

Over MCP: none; this product is REST only.

## Description

Send exactly one of `url` (a portal or agency link to one home), `reference` (the reference an agency gives the home) or `listing_id`, and get back the property it belongs to, with its `prop_` id. The country comes from `country`, else from the link's domain, else from the account's only country. 25 units.

## Request body

Content type `application/json`. Required. Type: `object`.

- `url` (string, optional): An http(s) link to one listing, on a portal or an agency website. at most 2000 characters.
- `reference` (string, optional): The listing's reference. at most 100 characters.
- `listing_id` (integer, optional): A listing id. ≥ 1.
- `country` (string, optional): ISO 3166-1 alpha-2 code; read from the link's domain when left out.

## Example request

Placeholders only: replace the token and the values with your own.

```bash
curl -X POST "https://platform.casafari.com/v1/property-sourcing/properties/resolve" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://agency.example/listing/123",
  "country": "ES"
}'
```

## Responses

### 200 The matching properties.

Type: `object`.

- `results` (object[], optional)
  - `id` (string, optional): Opaque property id, `prop_...`.
  - `type` (string, optional, nullable): Property type.
  - `operation` (string, optional) Values: `sale`, `rent`.
  - `price` (object, optional)
    - `amount` (number, optional, nullable): Asking price; null when the price is on request.
    - `currency` (string, optional, nullable): ISO 4217 currency code.
    - `per_sqm` (number, optional, nullable): Asking price per m².
  - `bedrooms` (number, optional, nullable)
  - `living_area_sqm` (number, optional, nullable)
  - `location` (object, optional)
    - `id` (integer, optional, nullable): Location id.
    - `name` (string, optional, nullable): Location name.
    - `coordinates` (object, optional, nullable): Latitude and longitude.
      - `lat` (number, optional)
      - `lon` (number, optional)
  - `first_seen` (string, optional, nullable): When the property came on the market for this operation.
  - `listings_count` (integer, optional, nullable): How many listings advertise it; known on a property read with expand=listings, null in search results.
  - `matched_tags` (string[], optional, nullable): The phrases of a plain-language search this property matched; null for structured searches.
- `total` (integer, optional)

Example with sample values (ids and figures are illustrative):

```json
{
  "results": [
    {
      "id": "prop_7Hq2pZk1vY0sW4nB8cR3tL",
      "type": "apartment",
      "operation": "sale",
      "price": {
        "amount": 425000,
        "currency": "EUR",
        "per_sqm": 4474
      },
      "bedrooms": 3,
      "living_area_sqm": 95,
      "location": {
        "id": 12345,
        "name": "Sample district",
        "coordinates": {
          "lat": 39.462,
          "lon": -0.376
        }
      },
      "first_seen": "2026-09-28",
      "listings_count": null,
      "matched_tags": null
    }
  ],
  "total": 1
}
```

### 400 Not exactly one of url, reference or listing_id, or the country cannot be told (`invalid_request`).

Type: `object`.

- `type` (string, optional): The problem's documentation URL.
- `title` (string, optional)
- `status` (integer, optional)
- `detail` (string, optional): What happened and how to fix it.
- `instance` (string, optional)
- `code` (string, optional): e.g. invalid_request, payment_required, not_entitled, not_found, page_depth_exceeded, request_limit_reached.
- `request_id` (string, optional)
- `errors` (object[], optional): One entry per field to fix.
  - `field` (string, optional)
  - `message` (string, optional)

### 401 Missing or unknown API key or token.

Type: `object`.

- `type` (string, optional): The problem's documentation URL.
- `title` (string, optional)
- `status` (integer, optional)
- `detail` (string, optional): What happened and how to fix it.
- `instance` (string, optional)
- `code` (string, optional): e.g. invalid_request, payment_required, not_entitled, not_found, page_depth_exceeded, request_limit_reached.
- `request_id` (string, optional)
- `errors` (object[], optional): One entry per field to fix.
  - `field` (string, optional)
  - `message` (string, optional)

### 402 No units left to fund the call (`payment_required`).

Type: `object`.

- `type` (string, optional): The problem's documentation URL.
- `title` (string, optional)
- `status` (integer, optional)
- `detail` (string, optional): What happened and how to fix it.
- `instance` (string, optional)
- `code` (string, optional): e.g. invalid_request, payment_required, not_entitled, not_found, page_depth_exceeded, request_limit_reached.
- `request_id` (string, optional)
- `errors` (object[], optional): One entry per field to fix.
  - `field` (string, optional)
  - `message` (string, optional)

### 403 The account is not entitled to this country (`not_entitled`).

Type: `object`.

- `type` (string, optional): The problem's documentation URL.
- `title` (string, optional)
- `status` (integer, optional)
- `detail` (string, optional): What happened and how to fix it.
- `instance` (string, optional)
- `code` (string, optional): e.g. invalid_request, payment_required, not_entitled, not_found, page_depth_exceeded, request_limit_reached.
- `request_id` (string, optional)
- `errors` (object[], optional): One entry per field to fix.
  - `field` (string, optional)
  - `message` (string, optional)

### 404 No property matches (`not_found`).

Type: `object`.

- `type` (string, optional): The problem's documentation URL.
- `title` (string, optional)
- `status` (integer, optional)
- `detail` (string, optional): What happened and how to fix it.
- `instance` (string, optional)
- `code` (string, optional): e.g. invalid_request, payment_required, not_entitled, not_found, page_depth_exceeded, request_limit_reached.
- `request_id` (string, optional)
- `errors` (object[], optional): One entry per field to fix.
  - `field` (string, optional)
  - `message` (string, optional)

## Related pages

- [Search properties (POST /v1/property-sourcing/searches)](/docs/rest/property-sourcing/search-properties)
- [Search properties by description (POST /v1/property-sourcing/searches/describe)](/docs/rest/property-sourcing/search-properties-by-description)
- [Next page of a search (GET /v1/property-sourcing/searches/{cursor})](/docs/rest/property-sourcing/next-page-of-a-search)
- [Get a property (GET /v1/property-sourcing/properties/{property_id})](/docs/rest/property-sourcing/get-a-property)
- [Property Sourcing REST API: all operations](/docs/rest/property-sourcing)
- [How to get a bearer token for the Casafari REST API](/docs/rest)
- [MCP vs REST API compared](/docs/parity)
