{
  "id": "d10c017b-e05f-4a38-8d7c-4dd17b7cf647",
  "slug": "onemap-search",
  "name": "OneMap Search (Geocoding)",
  "provider": "Singapore Land Authority (SLA)",
  "category_slug": "geo",
  "description": "Authoritative Singapore address and place search: postal codes, building names and roads to coordinates in both WGS84 and SVY21. The standard way to geocode SG addresses.",
  "base_url": "https://www.onemap.gov.sg/api/common/elastic/search",
  "docs_url": "https://www.onemap.gov.sg/apidocs/",
  "openapi_url": null,
  "auth_type": "token",
  "auth_guide": [
    "Register a free account at onemap.gov.sg (email verification).",
    "POST your email and password to https://www.onemap.gov.sg/api/auth/post/getToken.",
    "Use the returned access_token as Authorization header; it expires after 3 days.",
    "Renew by calling getToken again (automate this in your client)."
  ],
  "pricing": "free",
  "rate_limit": null,
  "example_request": "curl -H 'Authorization: YOUR_TOKEN' 'https://www.onemap.gov.sg/api/common/elastic/search?searchVal=Raffles+Place&returnGeom=Y&getAddrDetails=Y&pageNum=1'",
  "example_response_snippet": "{\"found\":21,\"results\":[{\"SEARCHVAL\":\"ASCOTT SINGAPORE RAFFLES PLACE\",\"ADDRESS\":\"2 FINLAYSON GREEN ... SINGAPORE 049247\",\"POSTAL\":\"049247\",\"LATITUDE\":\"1.2820837651092\",\"LONGITUDE\":\"103.851559731294\"}]}",
  "agent_notes": "Quirk verified 2026-07-05: without a token the search endpoint still returns results but includes an error field asking for a token; do not rely on that, docs state a token is required. Postal code as searchVal is the most reliable lookup.",
  "status": "live",
  "tags": [
    "geocoding",
    "address",
    "postal-code",
    "onemap",
    "maps"
  ],
  "sg_official": true,
  "created_at": "2026-07-05T08:32:43.944Z",
  "updated_at": "2026-07-05T09:15:26.617Z",
  "page_url": "https://singaporeapi.com/apis/onemap-search"
}