The playground
Try any of 919 endpoints — live.
Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.
Playground demo key · api.reefapi.com
post/geo-postal/v1/postal_distance1 credit
Great-circle distance between two postal codes (same or different countries).
Working example
Parameters
Origin postal code (in `country`).
Destination postal code (in `to_country`, default same country).
ISO-3166 alpha-2 country code (e.g. DE, FR, TR, IN, US). Greece accepts GR or EL.
Destination ISO-3166 alpha-2 country if different.
Distance unit (km default, mi).
request preview
curl -X POST https://api.reefapi.com/geo-postal/v1/postal_distance \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"country":"US","from":"10001","to":"90210"}'Hit Send to run this endpoint live.