osrmroute-com Natural Language Search API
The Natural Language Search API from osrmroute-com — 1 operation(s) for natural language search.
The Natural Language Search API from osrmroute-com — 1 operation(s) for natural language search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/osrmroute-com:osrmroute-com-natural-language-search-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: OSRMRoute Natural Language Search API
version: 1.1.0
description: 'OSRMRoute — Maps, Routing, Truck Routing, Search, Road Data, Studio and integration APIs. Use `Authorization: Bearer ` unless an operation documents another flow. Legacy APIs also accept the key query parameter; New geospatial APIs, MCP and private map delivery require Bearer authentication. Mobile challenge/token endpoints use device attestation instead. Coordinates and units are documented per operation: GeoJSON uses longitude,latitude; some legacy and background-job inputs use latitude,longitude. Examples are illustrative, not guaranteed current results. Guides · Mobile Access · MCP · Postman collection.'
contact:
name: OSRMRoute Support
url: https://osrmroute.com/contact
email: support@osrmroute.com
termsOfService: https://osrmroute.com/terms
servers:
- url: https://osrmroute.com
security:
- bearerAuth: []
- apiKeyQuery: []
tags:
- name: Natural Language Search
paths:
/api/v1/search/natural:
post:
tags:
- Natural Language Search
operationId: naturalSearch
summary: Natural language place search
description: '2 credits; both geocode and places scopes. ai=true enables AI-assisted interpretation for active Business only: 1,000 shared operations/month, 10 requests/minute/account, 2 concurrent, no rollover or automatic overage. Failed operations refund quota and credits. Prompts up to 1,000 characters in AI mode (200 otherwise). Missing or unsupported requirements return 422. Otherwise constrained English grammar: cafes/restaurants/pharmacies/parking/fuel/charging stations near PLACE [within N km]. Use near me with center. Radius 100–5000 m. Up to ten candidates, straight-line distances, not exhaustive. Unsupported conditions return 422. Search requests share 60/minute/key and a 24 KiB body limit.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
q:
type: string
minLength: 1
maxLength: 1000
ai:
type: boolean
default: false
center:
type: array
minItems: 2
maxItems: 2
items:
type: number
description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
required:
- q
examples:
request:
value:
q: cafes near me within 2 km
center:
- 49.8671
- 40.4093
ai: false
responses:
'200':
description: Success. Examples are illustrative; results vary with input and source data.
content:
application/json:
schema:
type: object
properties:
intent:
type: object
properties:
category:
type: string
center:
type: array
minItems: 2
maxItems: 2
items:
type: number
description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
radius_meters:
type: number
resolved_location:
type:
- object
- 'null'
properties:
id:
type: string
name:
type: string
point:
type: array
minItems: 2
maxItems: 2
items:
type: number
description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
address:
type: object
additionalProperties:
type: string
source:
type: string
enum:
- openstreetmap
details:
type: object
properties:
phone:
type:
- string
- 'null'
website:
type:
- string
- 'null'
format: uri
opening_hours:
type:
- string
- 'null'
wheelchair:
type:
- string
- 'null'
enum:
- 'yes'
- 'no'
- limited
- designated
- null
source:
type: string
enum:
- openstreetmap
license:
type: string
enum:
- ODbL-1.0
observed_at:
type: string
format: date-time
source_updated_at:
type:
- string
- 'null'
format: date-time
open_now:
type:
- boolean
- 'null'
description: Always null; opening hours are not evaluated.
required:
- phone
- website
- opening_hours
- wheelchair
- source
- license
- observed_at
- source_updated_at
- open_now
precision:
type: string
enum:
- house_number
- street
- locality
- unknown
required:
- id
- name
- point
- address
- source
- precision
required:
- category
- center
- radius_meters
- resolved_location
places:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
point:
type: array
minItems: 2
maxItems: 2
items:
type: number
description: '[longitude, latitude] in decimal degrees. Request bounds: longitude ±180, latitude ±85.'
details:
type: object
properties:
phone:
type:
- string
- 'null'
website:
type:
- string
- 'null'
format: uri
opening_hours:
type:
- string
- 'null'
wheelchair:
type:
- string
- 'null'
enum:
- 'yes'
- 'no'
- limited
- designated
- null
source:
type: string
enum:
- openstreetmap
license:
type: string
enum:
- ODbL-1.0
observed_at:
type: string
format: date-time
source_updated_at:
type:
- string
- 'null'
format: date-time
open_now:
type:
- boolean
- 'null'
description: Always null; opening hours are not evaluated.
required:
- phone
- website
- opening_hours
- wheelchair
- source
- license
- observed_at
- source_updated_at
- open_now
distance_meters:
type: integer
minimum: 0
required:
- id
- name
- point
- distance_meters
interpretation:
type: string
enum:
- constrained_english_grammar
- ai_assisted
distance_model:
type: string
enum:
- straight_line
exhaustive:
type: boolean
enum:
- false
candidate_limit:
type: number
enum:
- 10
required:
- intent
- places
- interpretation
- distance_model
- exhaustive
- candidate_limit
example:
intent:
category: cafe
center:
- 49.8671
- 40.4093
radius_meters: 2000
resolved_location: null
places: []
interpretation: constrained_english_grammar
distance_model: straight_line
exhaustive: false
candidate_limit: 10
'400':
description: Invalid input. `invalid_query`, `invalid_coordinate`, `invalid_ai_prompt` Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
example:
error: invalid_query
code: invalid_query
problem_code: invalid_query
type: https://osrmroute.com/docs/platform#invalid_query
title: Request failed
status: 400
detail: invalid_query
instance: urn:uuid:00000000-0000-4000-8000-000000000001
request_id: 00000000-0000-4000-8000-000000000001
retryable: false
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'401':
description: Missing or invalid authentication. See the returned error code. Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'402':
description: Insufficient credits. See the returned error code. Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'403':
description: Scope, account or plan restriction. `ai_business_required`, `ai_billing_period_unavailable` Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
example:
error: ai_business_required
code: ai_business_required
problem_code: ai_business_required
type: https://osrmroute.com/docs/platform#ai_business_required
title: Request failed
status: 403
detail: ai_business_required
instance: urn:uuid:00000000-0000-4000-8000-000000000001
request_id: 00000000-0000-4000-8000-000000000001
retryable: false
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'404':
description: Resource not found. See the returned error code. Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'413':
description: Payload too large. See the returned error code. Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'422':
description: Request cannot be fulfilled. `unsupported_search_query`, `unsupported_search_condition`, `search_center_required`, `search_location_not_found` Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
example:
error: unsupported_search_query
code: unsupported_search_query
problem_code: unsupported_search_query
type: https://osrmroute.com/docs/platform#unsupported_search_query
title: Request failed
status: 422
detail: unsupported_search_query
instance: urn:uuid:00000000-0000-4000-8000-000000000001
request_id: 00000000-0000-4000-8000-000000000001
retryable: false
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'429':
description: Rate, quota or concurrency limit. `ai_quota_exhausted`, `ai_rate_limited`, `ai_concurrency_limited` Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
example:
error: ai_quota_exhausted
code: ai_quota_exhausted
problem_code: ai_quota_exhausted
type: https://osrmroute.com/docs/platform#ai_quota_exhausted
title: Request failed
status: 429
detail: ai_quota_exhausted
instance: urn:uuid:00000000-0000-4000-8000-000000000001
request_id: 00000000-0000-4000-8000-000000000001
retryable: true
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'502':
description: Invalid or unavailable upstream. See the returned error code. Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
'503':
description: Service temporarily unavailable. `ai_not_configured`, `ai_operation_expired` Failed operations are not charged.
content:
application/problem+json:
schema:
type: object
properties:
error:
type: string
code:
type: string
problem_code:
type: string
type:
type: string
format: uri
title:
type: string
status:
type: integer
minimum: 0
detail:
type: string
instance:
type: string
request_id:
type: string
format: uuid
retryable:
type: boolean
required:
- error
- code
- problem_code
- type
- title
- status
- detail
- instance
- request_id
- retryable
example:
error: ai_not_configured
code: ai_not_configured
problem_code: ai_not_configured
type: https://osrmroute.com/docs/platform#ai_not_configured
title: Service unavailable
status: 503
detail: ai_not_configured
instance: urn:uuid:00000000-0000-4000-8000-000000000001
request_id: 00000000-0000-4000-8000-000000000001
retryable: true
application/json:
schema:
type: object
properties:
error:
type: string
required:
- error
components:
securitySchemes:
apiKeyQuery:
type: apiKey
in: query
name: key
bearerAuth:
type: http
scheme: bearer