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.

Default quotas
  • 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

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"

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.

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).

/listings?operation=sale → 400 (real response)
{
  "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.