Distance Calculator API GET

Distance Calculator is a simple tool for calculating the distance between two locations. It returns the distance in miles and kilometers.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/distancecalculator
Verification
Format

No key required to try it. Get a key to use it in your app.

200 OK
{
  "status": "ok",
  "error": null,
  "data": {
    // Distance Calculator response payload
  }
}

About the Distance Calculator API

Distance Calculator works by calculating the distance between two locations based on their latitude and longitude coordinates. It uses advanced algorithms to calculate the distance accurately and returns the distance in miles and kilometers.

What people use it for

Travel App
Use the Distance Calculator API to calculate distance between locations for a travel app. Use the data to plan trips, estimate travel time, and optimize routes
Logistics App
Calculate distance between locations by using the Distance Calculator API for a logistics app. Use the data to optimize deliveries, track shipments, and manage routes
Mapping App
Use the Distance Calculator API to calculate distance between locations for a mapping app. Use the data to display distances, provide directions, and enhance user experience
Geolocation
Calculate distance between locations by using the Distance Calculator API for geolocation. Use the data to measure distances, track movements, and analyze locations

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Distance Calculator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Distance Calculator API.

Read the docs
What does the Distance Calculator API do?
Distance Calculator is a simple tool for calculating the distance between two locations. It returns the distance in miles and kilometers.
How do I authenticate Distance Calculator API requests?
Pass your API key in the x-api-key header over HTTPS. One key works across all 300+ APIVerve APIs — there are no per-endpoint credentials.
How much does the Distance Calculator API cost?
Each call spends 2 credits from your shared pool. The free tier includes 200 credits every month, and paid plans add more headroom.
How fast is the Distance Calculator API?
Response time depends on the endpoint — the p50 through p99 latency for this API is published on this page. Requests are served over HTTPS through a global edge network.
What response formats does the Distance Calculator API support?
JSON by default, plus XML and YAML via the format parameter. GraphQL and an MCP interface for AI agents are available across the catalog.
What HTTP method does the Distance Calculator API use?
GET over HTTPS, following standard REST conventions with a consistent { status, error, data } response envelope.

Ready to build with Distance Calculator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs