Why Migrate
- Standard response envelope — consistent structure for every response
- camelCase fields — follows modern JSON conventions
- ISO 8601 dates —
YYYY-MM-DD instead of DD-MMM-YY
- Machine-readable error codes — branch on
errorCode instead of parsing messages
- New coordinates endpoint — generate charts from lat/lng without a geocoding key
Breaking Changes
The authentication header changed between v1 and v2. This is the most common migration issue.
Renamed Fields
Renamed Endpoints
Step-by-Step Migration
1. Update the base URL
The HD-Geocode-Key header remains the same for location-based endpoints.
4. Update response parsing
v2 wraps the chart data in a data field:
Always check result.success before accessing result.data.
5. Update field names to camelCase
Complete Before and After
FAQ
Do I need a new API key?
No. The same API key works for both v1 and v2 — only the header name changes.
Is v1 being deprecated?
v1 remains available with no planned sunset. However, new features (like the coordinates endpoint) are v2 only.
Can I use v1 and v2 simultaneously?
Yes. Both versions share the same API key and credit pool. You can migrate endpoints incrementally.