Passport Index API
Passport Index (passportindex.org) has 2 public methods: get passport rank and check visa requirement. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.
Unofficial. Not affiliated with or endorsed by Passport Index.
Methods
2Looks up a country's passport on Passport Index and returns its global rank, mobility score, visa requirement counts and optionally every destination's requirement.
Returns country, global rank, mobility score, visa-free / visa on arrival / eVisa / visa required counts, link, optional destinations
Readpassportindex.org/get_passport_rankChecks a passport holder's visa requirement and permitted stay for a destination on Passport Index. This is guidance; travellers should confirm entry rules with the embassy before travel. Visits to the passport's issuing country are not listed.
Returns requirement, allowed stay, raw requirement, Passport Index link
Readpassportindex.org/check_visa_requirement