# GraphHopper API

> A-to-B routing with turn-by-turn instructions.

GraphHopper is a transportation API from graphhopper.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.

## At a glance

- Category: [Transportation](https://www.openparable.com/apis/category/transportation)
- Provider: graphhopper.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://graphhopper.com/api/1
- Documentation: https://docs.graphhopper.com/
- OpenAPI description: https://api.apis.guru/v2/specs/graphhopper.com/1.0.0/openapi.json
- Version: 1.0.0
- Specification updated: 2021-07-19

## Example request

```bash
curl -X GET "https://graphhopper.com/api/1/geocode" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `POST /cluster` — POST Cluster Endpoint
- `POST /cluster/calculate` — Batch Cluster Endpoint
- `GET /cluster/solution/{jobId}` — GET Batch Solution Endpoint
- `GET /geocode` — Geocoding Endpoint
- `GET /isochrone` — Isochrone Endpoint
- `POST /match` — Map-match a GPX file
- `GET /matrix` — GET Matrix Endpoint
- `POST /matrix` — POST Matrix Endpoint
- `POST /matrix/calculate` — Batch Matrix Endpoint
- `GET /matrix/solution/{jobId}` — GET Batch Matrix Endpoint
- `GET /route` — GET Route Endpoint
- `POST /route` — POST Route Endpoint
- `GET /route/info` — Coverage information
- `POST /vrp` — POST route optimization problem
- `POST /vrp/optimize` — POST route optimization problem (batch mode)
- `GET /vrp/solution/{jobId}` — GET the solution (batch mode)

## Questions

### Does the GraphHopper API need an API key?

Yes. The GraphHopper API uses API key authentication; the documentation explains how to get credentials.

### Does the GraphHopper API support HTTPS?

Yes, the GraphHopper API is served over HTTPS.

### How many endpoints does the GraphHopper API have?

Its OpenAPI description lists 16 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the GraphHopper API?

Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.

## Similar transportation APIs

- [airportsapi](https://www.openparable.com/apis/airportsapi): Get name and website-URL for airports by ICAO code
- [Transport for London, England](https://www.openparable.com/apis/transport-for-london-england): Discover TFL APIs
- [Uber](https://www.openparable.com/apis/uber): Uber ride requests and price estimation
- [Transport for Spain](https://www.openparable.com/apis/transport-for-spain): Public trains of Spain
- [Amadeus for Developers](https://www.openparable.com/apis/amadeus-for-developers): Travel Search - Limited usage
- [Boston MBTA Transit](https://www.openparable.com/apis/boston-mbta-transit): Stations and predicted arrivals for MBTA
- [ADS-B Exchange](https://www.openparable.com/apis/ads-b-exchange): Access real-time and historical data of any and all airborne aircraft
- [Sabre for Developers](https://www.openparable.com/apis/sabre-for-developers): Travel Search - Limited usage
- [GoToTraining](https://www.openparable.com/apis/gototraining): The GoToTraining API enables developers to use the stable and robust GoToTraining functionality as the basis for online trainings in a proprietary learning management system. The GoToTraining APIs provide the ability to access the scheduling, registration, management, and reporting functions of GoToTraining from external applications. With the ability to tightly integrate GoToTraining into your learning infrastructure, you can offer your learners a seamless user experience and provide them with a market leading virtual classroom environment.
- [Transport for The Netherlands](https://www.openparable.com/apis/transport-for-the-netherlands): Discover APIs, learn how to use them, try them out interactively, and sign up to acquire keys.
- [Transport for Hessen, Germany](https://www.openparable.com/apis/transport-for-hessen-germany): RMV API (Public Transport in Hessen)
- [Transport for Auckland, New Zealand](https://www.openparable.com/apis/transport-for-auckland-new-zealand): The Auckland Transport developer portal allows you to explore the diverse range of APIs and transport data from Auckland Transport and NZTA.

Listed from: public-apis (MIT), public-apis database (MIT), APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/graphhopper (OpenParable). Cite the canonical URL above.
