AuthenticationDocumentation
Authentication and rate limits
Updated on · API 1.0.0 · Español · Markdown
No account is needed to try it: every endpoint works without a key, with a per-IP quota. For a real app, create a free key (it needs a free account): the quota is much larger and only yours.
API without key
- Per day
- 100
- Per minute
- 10
- Counted by
- IP
API with key
- Per day
- 5,000
- Per minute
- 60
- Counted by
- key
MCP without key
- Per day
- 3,000
- Per minute
- 60
- Counted by
- IP (tool calls only)
MCP with key
- Per day
- 5,000
- Per minute
- 60
- Counted by
- key
MCP with your account (OAuth connector)
- Per day
- 5,000
- Per minute
- 60
- Counted by
- account
| How you call | Per day | Per minute | Counted by |
|---|---|---|---|
| API without key | 100 | 10 | IP |
| API with key | 5,000 | 60 | key |
| MCP without key | 3,000 | 60 | IP (tool calls only) |
| MCP with key | 5,000 | 60 | key |
| MCP with your account (OAuth connector) | 5,000 | 60 | account |
Days are Colombian days: quotas reset at midnight UTC−5.
Getting a key
Sign in at https://lonjaradar.com/desarrolladores (the page is in Spanish: «Tus llaves» means your keys), name the key and create it. Copy it right away: it starts with lr_ and is shown only once. Up to 5 active keys per account.
Sending the key
Use a header: Authorization: Bearer lr_… or X-API-Key: lr_…. Never in the query string, and never in browser code.
curl -G "https://lonjaradar.com/api/v1/prices" \
--data-urlencode "city=Medellín" \
--data-urlencode "operation=rent" \
--data-urlencode "type=apartment" \
--data-urlencode "neighborhood=El Poblado" \
-H "Authorization: Bearer $LONJA_RADAR_KEY"const url = new URL("https://lonjaradar.com/api/v1/prices");
url.search = new URLSearchParams({
city: "Medellín",
operation: "rent",
type: "apartment",
neighborhood: "El Poblado",
});
const r = await fetch(url, { headers: { "X-API-Key": process.env.LONJA_RADAR_KEY } });
if (!r.ok) throw new Error((await r.json()).error.message);
const datos = await r.json();
console.log(datos);import os, requests
r = requests.get(
"https://lonjaradar.com/api/v1/prices",
params={
"city": "Medellín",
"operation": "rent",
"type": "apartment",
"neighborhood": "El Poblado",
},
headers={"X-API-Key": os.environ["LONJA_RADAR_KEY"]},
timeout=20,
)
r.raise_for_status()
print(r.json())Rate-limit headers and 429
X-RateLimit-Limit- Meaning
- Requests per day in your quota.
X-RateLimit-Remaining- Meaning
- Requests left today.
X-RateLimit-Reset- Meaning
- When it resets (Unix seconds; Colombian midnight).
Retry-After- Meaning
- On 429 or 503: seconds to wait before retrying.
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests per day in your quota. |
X-RateLimit-Remaining | Requests left today. |
X-RateLimit-Reset | When it resets (Unix seconds; Colombian midnight). |
Retry-After | On 429 or 503: seconds to wait before retrying. |
When you exceed the per-minute or daily quota, the response is 429 with Retry-After. Wait that long; do not retry in a loop.
Errors
All errors share one shape: { "error": { "code", "message" } }. code is stable and machine-readable; message is human-readable. Codes: invalid_parameter and missing_parameter (400), invalid_key (401), not_found (404), method_not_allowed (405), gone (410, an old Spanish route after its sunset date), rate_limited (429), service_unavailable (503).
{
"error": {
"code": "missing_parameter",
"message": "give a city (city=Bogotá) or a rectangle (bbox=west,south,east,north)"
},
"documentation": "https://lonjaradar.com/developers/docs"
}CORS is open (Access-Control-Allow-Origin: *), so you can call it from a web page without a key.