Distance Calculator GET

https://api.apiverve.com/v1/distancecalculator

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
  }
}

Code examples — ready to paste, with real parameters

curl "https://api.apiverve.com/v1/distancecalculator?lat1=36.7783&lon1=-119.4179&lat2=34.0522&lon2=-118.2437" \
  -H "x-api-key: YOUR_API_KEY"
Replace YOUR_API_KEY with your key.Full reference in the docs

Call it however you build.

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

Drop it into any site.

Add an interactive form for Distance Calculator with a single snippet — no backend, no keys in your markup.

Live preview Demo
Loading preview…

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 1 credit from your shared pool. The free tier includes 100 credits every month, and paid plans add more headroom.
How fast is the Distance Calculator API?
Typical responses return in around 931 ms (p50), served from 24 regions under a 99.9% uptime SLA.
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 100 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same contract.

Browse all APIs