Move from the /v1-* paths
The previous lookup paths still work; here is how they map to the current ones.
Last updated
Integrations built on the previous paths keep working with the same API keys, so nothing breaks. New code should use the current paths, which are the ones the API reference (opens another site) documents.
What changes when you switch#
- The lookup and the credits are the same.
- The previous paths answer with their old body, which can carry an
errorstring beside the fields. The current paths answer the documented fields only and report failures as an HTTP error status with{ "error", "message" }. See Errors, credits and rate limits.
Switch safely#
- Change the base path in one place in your code.
- Compare a few answers from both paths for numbers you know, field by field.
- Remove any check of the old
errorfield and handle HTTP error statuses instead.
