go

module
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT

README

FlightRadarAPI

Unofficial SDK for FlightRadar24 for Go.

This SDK should only be used for your own educational purposes. If you are interested in accessing Flightradar24 data commercially, please contact business@fr24.com. See more information at Flightradar24's terms and conditions.

Official FR24 API: https://fr24api.flightradar24.com/

Go Package License Pypi Python Version Npm Node Version Go Reference Go Version Downloads Frequency

Installing FlightRadarAPI:

$ go get github.com/JeanExtreme002/FlightRadarAPI/go

Basic Usage:

Import the package and create a client. Every method that talks to FlightRadar24 takes a context.Context and returns an error alongside its result.

import "github.com/JeanExtreme002/FlightRadarAPI/go/flightradarapi"

client := flightradarapi.New()

Getting flights list:

flights, err := client.GetFlights(ctx, flightradarapi.FlightSearch{})  // Returns a list of Flight objects

Getting airports list:

// Get airports from specific countries
airports, err := client.GetAirports(ctx, []flightradarapi.Country{
    flightradarapi.CountryBrazil, flightradarapi.CountryUnitedStates,
})

// Pass nil to get every airport
allAirports, err := client.GetAirports(ctx, nil)

Getting airlines list:

airlines, err := client.GetAirlines(ctx)  // Returns detailed airline information with IATA/ICAO codes

Getting zones list:

zones := client.GetZones()

Using the Country constants:

// Available countries, the counterpart of the Countries enum in the other packages
flightradarapi.CountryUnitedStates  // "united-states"
flightradarapi.CountryBrazil        // "brazil"
flightradarapi.CountryGermany       // "germany"
flightradarapi.CountryFrance        // "france"
// ... and many more

// AllCountries() enumerates them all
for _, country := range flightradarapi.AllCountries() { }

Documentation

Explore the documentation of FlightRadarAPI package through this site, or read the Go reference.

Directories

Path Synopsis
Package flightradarapi is an unofficial SDK for FlightRadar24.
Package flightradarapi is an unofficial SDK for FlightRadar24.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL