osrmroute-com Autocomplete API

The Autocomplete API API from osrmroute-com — 1 operation(s) for autocomplete api.

Operations 1

GET /api/1/autocomplete Autocomplete API #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/osrmroute-com:osrmroute-com-autocomplete-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

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 Specification

osrmroute-com-autocomplete-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OSRMRoute Autocomplete 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: Autocomplete API
paths:
  /api/1/autocomplete:
    get:
      tags:
      - Autocomplete API
      summary: Autocomplete API
      description: 'The Autocomplete API returns fast, typo-tolerant place suggestions as the user types. Each suggestion includes a ready-to-display label, its category and coordinates, so you can power a search box in a few lines. Bias results toward the user with lat/lon, restrict them with a bounding box, or filter by place type.


        Without country, search is global. country=AZ restricts results to Azerbaijan; country=AZ&city=Bakı restricts them to Baku in Azerbaijan. No match returns HTTP 200 with an empty list, without expanding to another area. A city without a country or an invalid country code returns HTTP 400 InvalidGeocodeFilter. lat/lon only affect proximity ranking and cannot override these filters. Records without confirmed city metadata are excluded from city-filtered results.'
      operationId: get_autocomplete
      parameters:
      - name: q
        in: query
        required: true
        description: Search text — partial input is fine.
        schema:
          type: string
        example: Nizami street, Baku
      - name: limit
        in: query
        required: false
        description: Maximum number of suggestions to return (1–15).
        schema:
          type: integer
        example: 5
      - name: lang
        in: query
        required: false
        description: Language code for result labels.
        schema:
          type: string
        example: en
      - name: lat
        in: query
        required: false
        description: Latitude to bias results toward (optional).
        schema:
          type: number
        example: 40.3755
      - name: lon
        in: query
        required: false
        description: Longitude to bias results toward (optional).
        schema:
          type: number
        example: 49.8516
      - name: country
        in: query
        required: false
        description: ISO 3166-1 alpha-2 country code, for example AZ. Returns results only within that country.
        schema:
          type: string
        example: AZ
      - name: city
        in: query
        required: false
        description: Strict city filter, for example Baku. Requires exactly one country code.
        schema:
          type: string
        example: Bakı
      - name: osm_tag
        in: query
        required: false
        description: Filter suggestions by OSM type, e.g. place:city.
        schema:
          type: string
        example: amenity:restaurant
      responses:
        '200':
          description: Matching results within all supplied filters. No match returns an empty list; scope is never expanded.
          content:
            application/json:
              examples:
                success:
                  summary: Illustrative abbreviated response; values vary with input and map data.
                  value:
                    suggestions:
                    - name: Nizami Street
                      city: Baku
                      country: Azerbaijan
                      countrycode: AZ
                      point:
                        lat: 40.3777
                        lng: 49.8516
                      label: Nizami Street, Baku, Azerbaijan
                    took: 12
                noMatch:
                  value:
                    suggestions: []
                    took: 1
        '400':
          description: 'InvalidGeocodeFilter: invalid country code, or city without exactly one country. Invalid filters do not consume credits.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
              example:
                code: InvalidGeocodeFilter
                error: city requires exactly one country, for example country=AZ&city=Bakı.
        '401':
          description: Error Codes (HTTP 401)
          content:
            application/json:
              examples:
                auth:
                  value:
                    error: Invalid API Key
        '402':
          description: Error Codes (HTTP 402)
          content:
            application/json:
              examples:
                balance:
                  value:
                    error: 'Insufficient balance: this request costs 1 credit and your balance is 0 credits. Top up your account to continue.'
        '403':
          description: Error Codes (HTTP 403)
          content:
            application/json:
              examples:
                plan:
                  value:
                    error: This API Key is disabled
        '429':
          description: Error Codes (HTTP 429)
          content:
            application/json:
              examples:
                rate:
                  value:
                    error: 'Rate limit exceeded: more than 60 requests per minute. Please slow down.'
        '500':
          description: Error Codes (HTTP 500)
          content:
            application/json:
              examples:
                upstream:
                  value:
                    error: Internal Server Error
      x-credit-cost: 1 credit
      x-request-limits:
      - 'limit: 1–15'
      - 'city: exactly 1 country'
components:
  securitySchemes:
    apiKeyQuery:
      type: apiKey
      in: query
      name: key
    bearerAuth:
      type: http
      scheme: bearer