mirror of
https://github.com/macsencasaus/jetapi.git
synced 2026-06-13 16:45:48 +02:00
web scraping API to gather info about aircraft from JetPhotos and FlightRadar
https://www.jetapi.dev
- Go 56.3%
- HTML 18.4%
- CSS 13.4%
- JavaScript 11.2%
- Makefile 0.7%
| cmd/jetapi | ||
| internal | ||
| ui | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
jetapi
An API to gather information from JetPhotos and FlightRadar24.
Documentation
See the documentation for more information regarding the usage of the API.
Getting Started On Your Own
After cloning the project, one can simply run
make run
to build and run the program.
If you do not have make,
go run ./cmd/jetapi
suffices.
Then one can visit localhost:8080 to view the documentation and build a query for your local instance.
More
The API works best with commercial airliners. GA aircraft may cause JSON encoding errors due to the variability in FlightRadar's page. Registrations not found also return JSON encoding errors.
You may also specify the port and host by setting the PORT and HOST environment variables respectively:
HOST=0.0.0.0 PORT=4000 make run
will serve to 0.0.0.0:4000.