{"id":13414056,"url":"https://github.com/navidys/gopensky","last_synced_at":"2026-02-17T21:02:00.765Z","repository":{"id":205557171,"uuid":"713796115","full_name":"navidys/gopensky","owner":"navidys","description":"Go implementation of OpenSKY Network API","archived":false,"fork":false,"pushed_at":"2026-01-30T10:05:14.000Z","size":5732,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T21:53:26.305Z","etag":null,"topics":["go","golang","golang-library","opensky-api","opensky-network"],"latest_commit_sha":null,"homepage":"https://navidys.github.io/gopensky/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/navidys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS.md","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-03T08:55:15.000Z","updated_at":"2026-01-30T06:06:06.000Z","dependencies_parsed_at":"2024-01-27T11:58:03.166Z","dependency_job_id":"3dbebf80-ef8d-4799-871a-6cddba24c6eb","html_url":"https://github.com/navidys/gopensky","commit_stats":null,"previous_names":["navidys/gopensky"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/navidys/gopensky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Fgopensky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Fgopensky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Fgopensky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Fgopensky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navidys","download_url":"https://codeload.github.com/navidys/gopensky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navidys%2Fgopensky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29558100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T20:52:40.164Z","status":"ssl_error","status_checked_at":"2026-02-17T20:48:10.325Z","response_time":100,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","opensky-api","opensky-network"],"created_at":"2024-07-30T20:01:56.471Z","updated_at":"2026-02-17T21:02:00.748Z","avatar_url":"https://github.com/navidys.png","language":"Go","funding_links":[],"categories":["Third-party APIs","第三方api"],"sub_categories":["Utility/Miscellaneous","实用程序/Miscellaneous"],"readme":"# Go OpenSKY Network API\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/navidys/gopensky)](https://pkg.go.dev/github.com/navidys/gopensky)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n![Go](https://github.com/navidys/gopensky/workflows/Go/badge.svg)\n[![codecov](https://codecov.io/gh/navidys/gopensky/branch/main/graph/badge.svg)](https://codecov.io/gh/navidys/gopensky)\n[![Go Report](https://goreportcard.com/badge/github.com/navidys/gopensky)](https://goreportcard.com/report/github.com/navidys/gopensky)\n\nThis is the golang implementation of the OpenSky network's live API.\nThe API lets you retrieve live airspace information (ADS-B and Mode S data) for research and non-commerical purposes.\n\nFor documentation and examples visit [Golang OpenSky Network API](https://navidys.github.io/gopensky/).\n\n`NOTE:` there are some limitation sets for anonymous and OpenSky users, visit following links for more information:\n* [OpenSky Network Rest API documentation](https://openskynetwork.github.io/opensky-api/)\n* [OpenSky Network Website](https://opensky-network.org/).\n\n## Getting Started\n\nInstall the latest version of the library:\n\n```\n$ go get github.com/navidys/gopensky\n```\n\nNext, include gopensky in you application:\n\n```\nimport \"github.com/navidys/gopensky\"\n```\n\n## Features\n\n* [GetStates](https://navidys.github.io/gopensky/goapi_functions.html#func-getstates) - retrieve state vectors for a given time.\n* [GetArrivalsByAirport](https://navidys.github.io/gopensky/goapi_functions.html#func-get-arrivals-by-airport) - retrieves flights for a certain airport which arrived within a given time interval.\n* [GetDeparturesByAirport](https://navidys.github.io/gopensky/goapi_functions.html#func-get-departures-by-airport) - retrieves flights for a certain airport which departed within a given time interval.\n* [GetFlightsByInterval](https://navidys.github.io/gopensky/goapi_functions.html#func-getflightsbyinterval) - retrieves flights for a certain time interval.\n* [GetFlightsByAircraft](https://navidys.github.io/gopensky/goapi_functions.html#func-getflightsbyaircraft) - retrieves flights for a particular aircraft within a certain time interval.\n* [GetTrackByAircraft](https://navidys.github.io/gopensky/goapi_functions.html#func-gettrackbyaircraft) - retrieves the trajectory for a certain aircraft at a given time.\n\n## Examples\n\nHere is an example program of retrieving Elon Musk's primary private jet (he has many and one of them has the ICAO24 transponder address `a835af`) flights between Thu Aug 31 2023 23:11:04 and Fri Sep 29 2023 23:11:04.\n\nVisit [Golang OpenSky Network API](https://navidys.github.io/gopensky/) for more examples.\n\n```\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/navidys/gopensky\"\n)\n\nfunc main() {\n\tconn, err := gopensky.NewConnection(context.Background(), \"\", \"\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\n\t// Retrieve Elon Musk's primary private jet flight data, he has many and one of\n\t// them has the ICAO24 transponder address a835af\n\t// begin time: 1693523464 (Thu Aug 31 2023 23:11:04)\n\t// end time: 1696029064 (Fri Sep 29 2023 23:11:04)\n\n\tflightsData, err := gopensky.GetFlightsByAircraft(conn, \"a835af\", 1693523464, 1696029064)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(2)\n\t}\n\n\tfor _, flightData := range flightsData {\n\t\tvar (\n\t\t\tdepartedAirport string\n\t\t\tarrivalAriport  string\n\t\t)\n\n\t\tif flightData.EstDepartureAirport != nil {\n\t\t\tdepartedAirport = *flightData.EstDepartureAirport\n\t\t}\n\n\t\tif flightData.EstArrivalAirport != nil {\n\t\t\tarrivalAriport = *flightData.EstArrivalAirport\n\t\t}\n\n\t\tfmt.Printf(\"ICAO24: %s, Departed: %4s, Arrival: %4s, LastSeen: %s\\n\",\n\t\t\tflightData.Icao24,\n\t\t\tdepartedAirport,\n\t\t\tarrivalAriport,\n\t\t\ttime.Unix(flightData.LastSeen, 0),\n\t\t)\n\t}\n}\n```\n\noutput:\n\n```\nICAO24: a835af, Departed: KAUS, Arrival: KUVA, LastSeen: 2023-09-29 07:46:02 +1000 AEST\nICAO24: a835af, Departed:     , Arrival: 02XS, LastSeen: 2023-09-19 10:59:04 +1000 AEST\nICAO24: a835af, Departed:     , Arrival: KSLC, LastSeen: 2023-09-16 12:56:20 +1000 AEST\nICAO24: a835af, Departed: KAUS, Arrival: KIAD, LastSeen: 2023-09-13 14:35:18 +1000 AEST\nICAO24: a835af, Departed: KSJC, Arrival: 2TS2, LastSeen: 2023-09-09 18:40:39 +1000 AEST\nICAO24: a835af, Departed: KAUS, Arrival: KSJC, LastSeen: 2023-09-08 08:20:02 +1000 AEST\n```\n\n## License\n\nLicensed under the [Apache 2.0](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavidys%2Fgopensky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavidys%2Fgopensky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavidys%2Fgopensky/lists"}