{
  "openapi": "3.1.0",
  "info": {
    "title": "ThePetPedia pet travel rules API",
    "version": "2026.10.20",
    "description": "Checked, dated rules for moving and flying with dogs and cats to, from and within India. 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.",
    "contact": {
      "email": "contact@thepetpedia.com"
    }
  },
  "servers": [
    {
      "url": "https://thepetpedia.com/api/v1"
    }
  ],
  "paths": {
    "/dataset.json": {
      "get": {
        "summary": "Dataset stats and endpoint list",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/rules.json": {
      "get": {
        "summary": "Every published rule with sources and check dates",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "scope",
                          "subject",
                          "title",
                          "detail",
                          "species",
                          "status",
                          "checked",
                          "sources"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "corridor",
                              "airline"
                            ]
                          },
                          "subject": {
                            "type": "string",
                            "description": "Corridor or airline slug"
                          },
                          "subjectName": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "detail": {
                            "type": "string"
                          },
                          "species": {
                            "type": "string",
                            "enum": [
                              "dog",
                              "cat",
                              "both"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "verified",
                              "reported",
                              "conflicting"
                            ]
                          },
                          "note": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "checked": {
                            "type": "string",
                            "format": "date",
                            "description": "Oldest check date among sources"
                          },
                          "sources": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "url": {
                            "type": "string",
                            "description": "Path of the human-readable page"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/sources.json": {
      "get": {
        "summary": "Every source cited",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/corridors.json": {
      "get": {
        "summary": "Live routes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/corridors/{slug}.json": {
      "get": {
        "summary": "One route with its rules and timeline",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "name": "slug",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "india-to-usa",
              "india-to-uk",
              "india-to-australia",
              "to-india"
            ]
          }
        }
      ]
    },
    "/airlines.json": {
      "get": {
        "summary": "Indian airlines and their pet policy summary",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/airlines/{slug}.json": {
      "get": {
        "summary": "One airline with its rules",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "name": "slug",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "air-india",
              "akasa-air",
              "indigo"
            ]
          }
        }
      ]
    }
  }
}