/v2/* → version retirement
Deprecated, no date
The provider deprecated the v2 API without a shutdown date. This deprecation affects all /v2/* requests, which will eventually fail. The provider stated that earlier versions were public iterations and have been deprecated in favor of v5.
Calls it hits
/v2/*
What to use instead of these calls
Migrate your calls to api.restcountries.com/countries/v5, such as /countries/v5/names.common/{name}. The move requires more than changing an address, as field names changed in v5 and you must choose an account plan to obtain an API key for the Authorization Bearer header.
v5 needs an account and an API key (free tier, paid plans above it).
In restcountries.com's words
The Countries API is currently at v5 , the first version we consider long-term stable ; versions v1 – v4 were public iterations and have been deprecated.
Facts
- API
- restcountries.com
restcountries.com - Kind
- Version retirement
- Takes effect
- No date given yet
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against restcountries.com's own pages
Questions
When does this change take effect?
restcountries.com deprecated /v2/* without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: restcountries.com has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from restcountries.com 1
-
No date
/v3*Version retirement Deprecated, no date
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.