{"id":17951232,"url":"https://github.com/kupolak/flight_radar","last_synced_at":"2025-09-20T03:27:24.373Z","repository":{"id":56846751,"uuid":"454124996","full_name":"kupolak/flight_radar","owner":"kupolak","description":"Ruby gem for FlightRadar24.","archived":false,"fork":false,"pushed_at":"2024-05-06T01:07:14.000Z","size":103,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T22:49:00.208Z","etag":null,"topics":["aeronautics","api","flightradar24","flights","plane","planes","planes-tracker","planespotting","radar","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kupolak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2022-01-31T18:35:41.000Z","updated_at":"2024-12-26T08:12:16.000Z","dependencies_parsed_at":"2023-02-12T09:46:02.311Z","dependency_job_id":"87a3871f-ba5e-4e77-bc10-5477aa3a2ac9","html_url":"https://github.com/kupolak/flight_radar","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.17647058823529416","last_synced_commit":"b3f62222c8d959bc32e2bcf84d7dca7f90af20b9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kupolak/flight_radar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fflight_radar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fflight_radar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fflight_radar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fflight_radar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kupolak","download_url":"https://codeload.github.com/kupolak/flight_radar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fflight_radar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276039884,"owners_count":25574680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aeronautics","api","flightradar24","flights","plane","planes","planes-tracker","planespotting","radar","ruby-gem"],"created_at":"2024-10-29T09:44:51.089Z","updated_at":"2025-09-20T03:27:24.323Z","avatar_url":"https://github.com/kupolak.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://www.flightradar24.com/blog/wp-content/uploads/2020/04/Hi_Res_Transparent-2.jpg\" width=\"200\"/\u003e\n\n\n**Fetch aircraft data from Flightradar24.**\n\n# Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Airlines](#airlines)\n    - [Airport](#airport)\n    - [Zones](#zones)\n    - [Flights](#flights)\n    - [Flight Details](#flight-details)\n    - [Flights by Airline](#flights-by-airline)\n    - [Flights by Bounds](#flights-by-bounds)\n    - [Airline Logo](#airline-logo)\n    - [Country Flag](#country-flag)\n- [Documentation](#documentation)\n- [Development](#development)\n- [Contributing](#contributing)\n- [License](#license)\n- [Code of Conduct](#code-of-conduct)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'flight_radar'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install flight_radar\n\n## Usage\n\n### Airlines\n\n```ruby\nFlightRadar.airlines\n```\n\n**Sample response:**\n\n```ruby\n[\n  {\"Name\"=\u003e\"21 Air\", \"Code\"=\u003e\"2I\", \"ICAO\"=\u003e\"CSB\"},\n  {\"Name\"=\u003e\"25Only Aviation\", \"Code\"=\u003e\"\", \"ICAO\"=\u003e\"ONY\"},\n  {\"Name\"=\u003e\"40-Mile Air\", \"Code\"=\u003e\"Q5\", \"ICAO\"=\u003e\"MLA\"},\n# ...\n]\n```\n\n### Airport\n\n```ruby\nairport = \"LAX\"\nFlightRadar.airport(airport)\n```\n\n**Sample response:**\n\n```ruby\n{\n  \"details\" =\u003e {\n    \"name\" =\u003e \"Lodz Wladyslaw Reymont Airport\",\n    \"code\" =\u003e {\n      \"iata\" =\u003e \"LCJ\",\n      \"icao\" =\u003e \"EPLL\"\n    },\n    \"position\" =\u003e {\n      \"latitude\" =\u003e 51.721882,\n      \"longitude\" =\u003e 19.39813,\n      \"altitude\" =\u003e 604,\n      \"country\" =\u003e {\n        \"id\" =\u003e nil,\n        \"name\" =\u003e \"Poland\",\n        \"code\" =\u003e \"POL\"\n      },\n      \"region\" =\u003e {\n        \"city\" =\u003e \"Lodz\"\n      }\n    },\n    # ...\n  }\n}\n```\n\n### Zones\n\n```ruby\nFlightRadar.zones\n```\n\n**Sample response:**\n```ruby\n{\n  \"europe\" =\u003e {\n    \"tl_y\" =\u003e 72.57,\n    \"tl_x\" =\u003e -16.96,\n    \"br_y\" =\u003e 33.57,\n    \"br_x\" =\u003e 53.05,\n    \"subzones\" =\u003e {\n      \"poland\" =\u003e {\n        \"tl_y\" =\u003e 56.86,\n        \"tl_x\" =\u003e 11.06,\n        \"br_y\" =\u003e 48.22,\n        \"br_x\" =\u003e 28.26\n      },\n      \"germany\" =\u003e {\n        \"tl_y\" =\u003e 57.92,\n        \"tl_x\" =\u003e 1.81,\n        \"br_y\" =\u003e 45.81,\n        \"br_x\" =\u003e 16.83\n      },\n      # ...\n    }\n  }\n}\n```\n\n### Flights\n\n```ruby\nFlightRadar.flights\n```\n\n**Sample response:**\n\n```ruby\n[\n  \"\u003c(GRND) - Altitude: 0 - Ground Speed: 146 - Heading: 146\u003e\",\n  \"\u003c(DRON) TEST4A - Altitude: 374 - Ground Speed: 1 - Heading: 1\u003e\",\n  \"\u003c(GLID) STM32 - Altitude: 2290 - Ground Speed: 1 - Heading: 1\u003e\",\n  \"\u003c() - Altitude: 508 - Ground Speed: 7 - Heading: 7\u003e\",\n  \"\u003c(B763) N142FE - Altitude: 0 - Ground Speed: 0 - Heading: 0\u003e\",\n  \"\u003c(GRND) - Altitude: 0 - Ground Speed: 278 - Heading: 278\u003e\",\n  \"\u003c(GLID) OM-2709 - Altitude: 1236 - Ground Speed: 1 - Heading: 1\u003e\",\n  \"\u003c(B763) N196FE - Altitude: 0 - Ground Speed: 0 - Heading: 0\u003e\",\n  \"\u003c(B77L) N869FD - Altitude: 0 - Ground Speed: 0 - Heading: 0\u003e\",\n  \"\u003c(B763) N111FE - Altitude: 0 - Ground Speed: 0 - Heading: 0\u003e\",\n  \"\u003c(B763) N193FE - Altitude: 0 - Ground Speed: 0 - Heading: 0\u003e\",\n# ...\n]\n```\n\n### Flight Details\n\n```ruby\nflight_id = FlightRadar.flights.sample.id\nFlightRadar.flight_details(flight_id)\n```\n\n**Sample response:**\n\n```ruby\n{\n  \"identification\" =\u003e {\n    \"id\" =\u003e \"2aaadc48\",\n    \"row\" =\u003e 5175915984,\n    \"number\" =\u003e {\n      \"default\" =\u003e \"F980\",\n      \"alternative\" =\u003e nil\n    },\n    \"callsign\" =\u003e \"FFT80\"\n  },\n  \"status\" =\u003e {\n    \"live\" =\u003e true,\n    \"text\" =\u003e \"Estimated- 14:01\",\n    \"icon\" =\u003e \"green\",\n    \"estimated\" =\u003e nil,\n    \"ambiguous\" =\u003e false,\n    \"generic\" =\u003e {\n      \"status\" =\u003e {\n        \"text\" =\u003e \"estimated\",\n        \"color\" =\u003e \"green\",\n        \"type\" =\u003e \"arrival\"\n      },\n      \"eventTime\" =\u003e {\n        \"utc\" =\u003e 1643652087,\n        \"local\" =\u003e 1643637687\n      }\n    }\n  },\n  # ...\n}\n```\n\n### Flights by airline\n\n```ruby\nairline = \"LOT\"\nFlightRadar.flights(airline: airline)\n```\n\n**Sample response:**\n\n```ruby\n[\n  \"\u003c(B789) SP-LSG - Altitude: 39992 - Ground Speed: 451 - Heading: 451\u003e\",\n  \"\u003c(B788) SP-LRA - Altitude: 38975 - Ground Speed: 537 - Heading: 537\u003e\",\n  \"\u003c(B788) SP-LRB - Altitude: 38000 - Ground Speed: 463 - Heading: 463\u003e\",\n  \"\u003c(E195) SP-LNF - Altitude: 31675 - Ground Speed: 420 - Heading: 420\u003e\",\n  \"\u003c(B38M) SP-LVF - Altitude: 38000 - Ground Speed: 460 - Heading: 460\u003e\",\n  \"\u003c(E195) SP-LNB - Altitude: 22475 - Ground Speed: 366 - Heading: 366\u003e\",\n  \"\u003c(B789) SP-LSF - Altitude: 36000 - Ground Speed: 440 - Heading: 440\u003e\",\n# ...\n]\n```\n\n### Flights by bounds\n\n```ruby\nzone = FlightRadar.zones[\"oceania\"]\nbounds = FlightRadar.bounds(zone)\nFlightRadar.flights(bounds: bounds)\n```\n\n**Sample response:**\n\n```ruby\n[\n  \"\u003c(B788) VT-ANP - Altitude: 41000 - Ground Speed: 494 - Heading: 494\u003e\",\n  \"\u003c(B738) VT-AXZ - Altitude: 37000 - Ground Speed: 436 - Heading: 436\u003e\",\n  \"\u003c(B772) PH-BQA - Altitude: 32000 - Ground Speed: 496 - Heading: 496\u003e\",\n  \"\u003c(A388) 9V-SKS - Altitude: 33996 - Ground Speed: 498 - Heading: 498\u003e\",\n  \"\u003c(B77L) A7-BFY - Altitude: 32000 - Ground Speed: 478 - Heading: 478\u003e\",\n  \"\u003c(B78X) 9V-SCA - Altitude: 38996 - Ground Speed: 514 - Heading: 514\u003e\",\n  \"\u003c(B77W) A6-ENU - Altitude: 34000 - Ground Speed: 504 - Heading: 504\u003e\",\n  \"\u003c(A359) OH-LWF - Altitude: 40004 - Ground Speed: 476 - Heading: 476\u003e\",\n# ...\n]\n```\n\n\n### Airline logo\n\n```ruby\niata = \"TK\"\nicao = \"THY\"\nFlightRadar.airline_logo(iata, icao)\n```\n\n**Sample response:**\n\n```ruby\n%w[https://cdn.flightradar24.com/assets/airlines/logotypes/TK_THY.png https://www.flightradar24.com/static/images/data/operators/THY_logo0.png]\n```\n\n\n### Country flag\n\n```ruby\nFlightRadar.country_flag(\"Poland\")\n```\n\n**Sample response:**\n\n```ruby\n\"https://www.flightradar24.com/static/images/data/flags-small/poland.gif\"\n```\n\n## Documentation\n\nLive documentation of the gem is available [at this GitHub page](https://kupolak.github.io/flight_radar/).\n\n## Development\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kupolak/flight_radar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/flight_radar/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the FlightRadar project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kupolak/flight_radar/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupolak%2Fflight_radar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkupolak%2Fflight_radar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupolak%2Fflight_radar/lists"}