# Ordently public API

Read only access to everything already published on the website:
checked North Cyprus property listings, the areas we cover, buyer
journal articles and the questions buyers ask most often.

- Base URL: `https://ordently.com/api/v1`
- Authentication: none
- Rate limit: 120 requests per minute per address, then `429` with `Retry-After`
- Format: JSON, UTF-8. Prices are integers in euros.
- CORS: open to any origin
- OpenAPI: [https://ordently.com/api/v1/openapi.json](https://ordently.com/api/v1/openapi.json)

## Language

Listing and article text is translated. Add `?lang=en`, `de`, `tr` or
`ru` to any endpoint to choose the language. Without it you get the
site default. Slugs, prices, dates and URLs are identical in every
language, so a record fetched in one language matches the same record
fetched in another.

## Endpoints

### `GET /properties`

Filtered, paged listings.

| Parameter | Type | Notes |
| --- | --- | --- |
| `area` | string | Area slug, for example `kyrenia`. See `/areas`. |
| `type` | string | `Villa`, `Apartment`, `Penthouse`, `Townhouse`, `Land`, `Commercial`. |
| `min_price`, `max_price` | integer | Euros. |
| `beds`, `baths` | integer | Minimums, so `beds=3` includes four bedroom homes. |
| `status` | string | `Ready` or `Off Plan`. |
| `features` | string | Comma separated: `sea_view`, `pool`, `mountain_view`. |
| `sort` | string | `price_asc`, `price_desc`, `beds_desc`, `newest`. Default is the site order, featured first. |
| `limit` | integer | 1 to 50, default 20. |
| `page` | integer | Default 1. |

```
GET https://ordently.com/api/v1/properties?area=kyrenia&max_price=500000&features=sea_view,pool
```

### `GET /properties/{slug}`

One property in full: `description`, `amenities` (the written
specification, as opposed to the filterable `features` flags),
`payment_plan`, `nearby`, `images` and the `faq` for that property.

### `GET /areas`

Every area covered, with a short summary and the current listing count.

### `GET /posts` and `GET /posts/{slug}`

Journal articles. Add `?q=title+deeds` to search titles and summaries.

### `GET /faqs`

Buyer questions grouped by topic.

### `GET /health`

`{"status":"pass"}` while the API and its database are answering.

## Using the data well

- Link readers to the `url` on each record. The photographs, floor
  plans and enquiry form live there.
- `status: "Off Plan"` means the property is not built yet. Say so, and
  quote `completion`.
- `projected_gross_yield` is the agency's projection. It is not a
  guaranteed return, and it should never be presented as one.
- Residency, purchase permits and title transfer timescales depend on
  nationality and on the individual plot. Point people to an
  independent local lawyer rather than answering definitively.

## Writing data

There are no write endpoints. Send buyers to
[https://ordently.com/contact](https://ordently.com/contact) instead.

## Content use

Content signals are published in [robots.txt](https://ordently.com/robots.txt).
Answering a person's question with this data and a link back is welcome.
Training a model on it is not.
