API Documentation

Programmatic access to EGPK.info movement data, aircraft info, weather, and photos.

Authentication

All API requests require a Bearer token. You can generate or rotate your API key from the API dashboard.

curl -H "Authorization: Bearer egpk_your_key_here" \
  https://egpk.info/api/v1/movements

API access is available on Pro (1,000 requests/day) and Enterprise (100,000 requests/day) plans. See pricing for details.

Base URL

https://egpk.info/api/v1

Rate Limits

Requests are counted daily (UTC midnight reset). When you exceed your quota, the API returns 429 Too Many Requests.

PlanDaily QuotaMax per request
Free / SpotterNo API access
Pro1,000 requests500 records
Enterprise100,000 requests500 records

Endpoints

Movements

GET/api/v1/movementsPro+

Retrieve recent aircraft movements at Prestwick. Returns arrivals, departures, and overflights logged from ADS-B data.

Parameters
sinceISO 8601Start time (default: 1 hour ago)
limitintegerMax records to return (default: 100, max: 500)
Response
{
  "movements": [
    {
      "id": 12345,
      "icao24": "406A3C",
      "callsign": "RYR1234",
      "registration": "EI-ABC",
      "type": "B738",
      "operator": "Ryanair",
      "occurredAt": "2026-04-05T14:32:00Z",
      "kind": "arrival",
      "altitude": 1250,
      "groundSpeed": 145
    }
  ],
  "count": 1
}

Aircraft Lookup

GET/api/v1/aircraft/:icao24Pro+

Look up a specific aircraft by its ICAO 24-bit hex address. Returns registration, type, operator, and recent movement history at EGPK.

Parameters
icao24stringrequired6-character ICAO hex address (e.g. 406A3C)
Response
{
  "icao24": "406A3C",
  "registration": "EI-ABC",
  "type": "B738",
  "typeName": "Boeing 737-800",
  "operator": "Ryanair",
  "recentMovements": 12,
  "lastSeen": "2026-04-05T14:32:00Z"
}

Weather

GET/api/v1/weatherPro+

Current METAR and TAF for Glasgow Prestwick (EGPK). Decoded fields included alongside raw strings.

Response
{
  "metar": {
    "raw": "EGPK 051420Z 25012KT ...",
    "temperature": 11,
    "dewpoint": 7,
    "windDirection": 250,
    "windSpeed": 12,
    "visibility": 9999,
    "clouds": [{ "cover": "FEW", "base": 3500 }],
    "updatedAt": "2026-04-05T14:20:00Z"
  },
  "taf": {
    "raw": "TAF EGPK 051100Z ...",
    "validFrom": "2026-04-05T11:00:00Z",
    "validTo": "2026-04-06T11:00:00Z"
  }
}

Photos

GET/api/v1/photosPro+

Search community-uploaded aircraft photos. Filter by aircraft registration.

Parameters
regstringAircraft registration to filter by (e.g. EI-ABC)
limitintegerMax results (default: 20, max: 100)
Response
{
  "photos": [
    {
      "id": "ph_abc123",
      "url": "https://egpk.info/photos/ph_abc123.jpg",
      "registration": "EI-ABC",
      "type": "B738",
      "photographer": "SpotterJohn",
      "uploadedAt": "2026-04-04T09:15:00Z",
      "impressions": 342
    }
  ],
  "count": 1
}

Error Codes

StatusMeaning
401Missing or invalid API key
403API access not available on your tier
404Resource not found
429Daily quota exceeded — resets at midnight UTC
500Internal server error

All error responses include a JSON body: { "error": "description" }

Support

Having trouble? Reach out at hello@egpk.info or check the contact page. Enterprise customers receive priority support.