oslew docs
Console
Menu

Try it without a key

https://api.oslew.com/demo/v1/… answers a subset of the API for one city, with no key and no account. It is the same service and the same answers as /v1, so you can see what a geocode, a route or a weather reading looks like before you sign up. The map on oslew.com/demo runs on it.

curl
curl -G "https://api.oslew.com/demo/v1/geocode" \
  --data-urlencode 'q=Museo Soumaya' \
  --data-urlencode 'limit=2'
Response
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 4
ratelimit-remaining: 3
ratelimit-reset: 2
x-oslew-demo: 1

{
  "query": "Museo Soumaya",
  "name": "Museo Soumaya",
  "context": null,
  "parse": {
    "name": "Museo Soumaya",
    "method": "passthrough"
  },
  "context_resolution": null,
  "near": null,
  "results": [
    {
      "doc": 348329,
      "name": "Museo Soumaya",
      "lat": 19.44062110346353,
      "lon": -99.20465953606559,
      "bbox": [
        19.440487037931074,
        19.440755168997644,
        -99.20478863854248,
        -99.20453043361198
      ],
      "precision": "poi",
      "precision_m": 6.756173533775122,
      "hierarchy": {
        "locality": "Miguel Hidalgo",
        "region": "CMX",
        "country": "MX",
        "category": "museum",
        "postcode": null,
        "street": null
      },
      "normalized": {
        "locality": "Miguel Hidalgo",
        "region": "CMX",
        "country": "MX",
        "formatted": "Museo Soumaya, Miguel Hidalgo, CMX, MX"
      },
      "components": {
        "name": "exact",
        "house_number": "missing",
        "street": "missing",
        "locality": "missing",
        "region": "missing",
        "postcode": "missing",
        "country": "missing"
      },
      "confidence": 0.5,
      "why": {
        "tokens": [
          "museo",
          "soumaya"
        ],
        "matched": 2,
        "extra": 0,
        "mode": "all",
        "tied": false,
        "prominence": 5,
        "rerank": 87
      },
      "provenance": {
        "name": "overture-places",
        "release": "2026-08-19.0",
        "license": "CDLA-Permissive-2.0"
      },
      "attributes": {
        "rating": null,
        "reviews": 0,
        "price": null,
        "hours": [
          [
            0,
            0
          ],
          [
            0,
            0
          ],
          [
            0,
            0
          ],
          [
            0,
            0
          ],
          [
            0,
            0
          ],
          [
            0,
            0
          ],
          [
            0,
            0
          ]
        ],
        "photo": "https://commons.wikimedia.org/wiki/Special:FilePath/Museo_Soumaya%2C_Ciudad_de_M%C3%A9xico%2C_M%C3%A9xico%2C_2015-07-18%2C_DD_12.JPG",
        "provenance": {
          "name": "wikidata",
          "release": "2026-11-23",
          "license": "CC0; images under their Commons licences"
        }
      }
    },
    {
      "doc": 318314,
      "name": "Museo Soumaya",
      "lat": 19.33886538628843,
      "lon": -99.19254435060174,
      "bbox": [
        19.338731342470982,
        19.33899943010779,
        -99.19267344656319,
        -99.19241525466357
      ],
      "precision": "poi",
      "precision_m": 6.756173533775122,
      "hierarchy": {
        "locality": "Álvaro Obregón",
        "region": "CMX",
        "country": "MX",
        "category": "museum",
        "postcode": null,
        "street": null
      },
      "normalized": {
        "locality": "Álvaro Obregón",
        "region": "CMX",
        "country": "MX",
        "formatted": "Museo Soumaya, Álvaro Obregón, CMX, MX"
      },
      "components": {
        "name": "exact",
        "house_number": "missing",
        "street": "missing",
        "locality": "missing",
        "region": "missing",
        "postcode": "missing",
        "country": "missing"
      },
      "confidence": 0.5,
      "why": {
        "tokens": [
          "museo",
          "soumaya"
        ],
        "matched": 2,
        "extra": 0,
        "mode": "all",
        "tied": false,
        "prominence": 0,
        "rerank": 85
      },
      "provenance": {
        "name": "overture-places",
        "release": "2026-08-19.0",
        "license": "CDLA-Permissive-2.0"
      },
      "attributes": null
    }
  ],
  "mode": "all",
  "tied_at_top": 1,
  "tie_probe": 32,
  "interpolated": false,
  "decision": {
    "action": "refuse",
    "margin": 0.03733337
  },
  "epoch": 30,
  "release": "2026-08-19.0",
  "examined": 420,
  "postings": 424,
  "segments": 2,
  "store_requests": 0,
  "store_bytes": 0,
  "took_us": 10668
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

What is different from /v1

  • No key. Send no Authorization header. Every answer carries x-oslew-demo: 1.
  • One city. Every point you send, and both corners of a box, must be inside19.2° to 19.6° N and 99.35° to 98.95° W: Mexico City. Anything outside is refused with 422 and says so.
  • Paced per visitor, and in total. Each visitor's address gets about one every 2 seconds with a burst of 4; all visitors together get 10 a second with a burst of 30. Heavier operations take more than one token, as the table shows. A 429 carriesRetry-After, and the RateLimit-* headers mean what they mean on /v1.
  • Sizes are clamped, not refused. Asking for 20 results where the demo allows 5 gets you 5, so a request copied from the reference still works. The one exception is a list of points: a route or a path with more points than the table allows is refused with 422.
  • No paid fallbacks. Geolocation on the demo answers from the loaded cell towers only.
curl
curl -G "https://api.oslew.com/demo/v1/reverse" \
  --data-urlencode 'at=20.6767,-103.3475'
Response
HTTP/1.1 422
content-type: application/json
x-oslew-demo: 1

{
  "error": "the demo covers one city; that point is outside it. With a key, /v1 covers the whole store."
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

What it answers

The demo's own GET /demo/limits, as it answered when these pages were built. Call it yourself to see your remaining tokens.

OperationTokensLimits
/demo/v1/autocomplete1limit ≤ 6
/demo/v1/conditions1none beyond the city
/demo/v1/elevation1samples ≤ 60, path: at most 60 points
/demo/v1/events1limit ≤ 20, radius_m ≤ 50000
/demo/v1/geocode1limit ≤ 5
/demo/v1/here2limit ≤ 3
/demo/v1/isochrone3seconds ≤ 900
/demo/v1/locate2none beyond the city
/demo/v1/nearby1limit ≤ 10
/demo/v1/observations1stations ≤ 3
/demo/v1/optimize3points: at most 12 points
/demo/v1/raster0.5samples ≤ 60, path: at most 60 points
/demo/v1/reverse1limit ≤ 5
/demo/v1/route2points: at most 5 points
/demo/v1/scenes1limit ≤ 20
/demo/v1/timezone1none beyond the city

Each one takes the same parameters as its /v1 route, documented in the reference.locate is a POST with a body of at most 4 KB; the rest are GET.

Calling it from a page

The demo answers cross-origin requests only from oslew's own site. From a terminal, curl works as shown above; from your own web page it will not, which is deliberate. Put your key on your backend and call /v1 from there.