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

terminal
# 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

PathReturns
/api/v1/dataset.jsonDataset stats and endpoint list
/api/v1/rules.jsonAll 39 rules with status, check date and sources
/api/v1/sources.jsonAll 15 sources with publisher dates
/api/v1/corridors.jsonLive routes
/api/v1/corridors/{slug}.jsonOne route: answer, summary, timeline, rules
/api/v1/airlines.jsonIndian airlines with policy summary
/api/v1/airlines/{slug}.jsonOne airline: summary and rules
/api/v1/openapi.jsonOpenAPI 3.1 description
/llms.txtGuide 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

Rules for using the data

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.

Need commercial use, alerts or history?

Request a licence

Plan a trip Get access