Developers
A read-only JSON API over the same data that powers this site. No key needed for public use. Dataset version 2026.10.20.
Quick start
# Every rule where sources disagree $ curl -s https://thepetpedia.com/api/v1/rules.json \ | jq '.data[] | select(.status=="conflicting") | .title' # One route $ curl -s https://thepetpedia.com/api/v1/corridors/india-to-usa.json | jq .data.timeline
Endpoints
| Path | Returns |
|---|---|
/api/v1/dataset.json | Dataset stats and endpoint list |
/api/v1/rules.json | All 39 rules with status, check date and sources |
/api/v1/sources.json | All 15 sources with publisher dates |
/api/v1/corridors.json | Live routes |
/api/v1/corridors/{slug}.json | One route: answer, summary, timeline, rules |
/api/v1/airlines.json | Indian airlines with policy summary |
/api/v1/airlines/{slug}.json | One airline: summary and rules |
/api/v1/openapi.json | OpenAPI 3.1 description |
/llms.txt | Guide for AI assistants and agents |
Route slugs: india-to-usa, india-to-uk, india-to-australia, to-india. Airline slugs: air-india, akasa-air, indigo. Responses are cached for an hour and allow cross-origin requests.
The rule record
status:verified(official source),reported(news or airline release only),conflicting(sources disagree; seenote).checked: the oldest check date among the rule's sources. Treat anything older than 45 days as due for re-check.sources[]: publisher, URL, type and check date for each source.url: the human-readable page for the rule. Link to it when you show the rule.
Rules for using the data
- Free for personal and non-commercial use with attribution to ThePetPedia (thepetpedia.com). Commercial use, bulk access, change alerts and history need a licence: contact@thepetpedia.com.
- Show the check date and source alongside any rule, and the caveat for
reportedorconflictingrules. - Do not present it as veterinary or legal advice. Tell users to confirm with the authority and airline.
- Be gentle: the public endpoints are static files, so one request per file per hour is plenty.
For AI agents
Point your agent at /llms.txt. It explains the API, the statuses and how to cite. Licensed partners can ask about a change feed and webhooks.