PNR Converter Logo
PNR Converter
Developer Hub

API Reference & SDK Quickstart

Build high-throughput flight applications with our REST API. Average response latency is under 15ms.

API Key Authentication

Pass your secret token in HTTP headers as x-api-key: pnr_live_.... You can copy or rotate your key anytime in your Dashboard.

Instant Sandbox Mode

Test requests instantly using the public playground or pass x-api-key: DEMO_SANDBOX_KEY for automated staging tests.

Multi-Format Output

Generate enriched JSON payloads with geo-coordinates, high-res airline vector logos, RFC 5545 iCalendar (.ics), and printable PDF itineraries.

Interactive cURL Builder & SDK Quickstart

Comprehensive REST API Reference

Inject your live API key to customize ready-to-execute cURL, Node.js, Python, PHP, and Go snippets in real time.

Available EndpointsREST v2.4
Production Gateway Base URLhttps://pnr-api.appzone.in
POSThttps://pnr-api.appzone.in/api/v1/pnr/convert Auth Required

Converts raw cryptic GDS text (Amadeus, Sabre, Galileo) into enriched JSON itineraries with airport metadata, carrier logos, spherical Haversine distances, and passenger lists in <15ms.

curl -X POST "https://pnr-api.appzone.in/api/v1/pnr/convert" \
  -H "Content-Type: application/json" \
  -H "x-api-key: pnr_live_sandbox_key" \
  -d '{
    "pnr": "1.1DOE/JOHN MR\n1  AI 101 Y 15DEC DELBOM HK1 0700 0915   E*\n2  6E 404 K 16DEC BOMBLR HK1 1430 1615   E*"
  }'
Example Response (HTTP 200 OK)application/json
{
  "status": true,
  "flightData": {
    "names": [
      "DOE/JOHN MR"
    ],
    "flights": [
      {
        "flt": {
          "flightNo": "AI 101",
          "iatacode": "AI",
          "name": "Air India",
          "cabin": "Economy",
          "class": "Y",
          "departure": {
            "string": "2026-12-15 07:00",
            "time12": "07:00 AM",
            "day": "Tue"
          },
          "arrival": {
            "string": "2026-12-15 09:15",
            "time12": "09:15 AM",
            "day": "Tue"
          },
          "duration": {
            "hours": 2,
            "minutes": 15,
            "text": "2h 15m"
          },
          "distance": {
            "km": 1148,
            "miles": 713
          }
        },
        "from": {
          "city": "New Delhi",
          "airport": "Indira Gandhi International Airport",
          "airport_code": "DEL",
          "country": "India"
        },
        "to": {
          "city": "Mumbai",
          "airport": "Chhatrapati Shivaji Maharaj International Airport",
          "airport_code": "BOM",
          "country": "India"
        }
      }
    ],
    "meta": {
      "pnr": "6ABCDE"
    },
    "total": 1
  }
}