Layzate api to provide the real time flight list and flight details information for each airport The API is REST API and currently, return format for all endpoints is JSON.
Base URL : http://layzate.herokuapp.com
[GET] /api/v1/{:IATACODE}/{:DEP_ARV}/{POT}?limit={limit}&page={page}
Eg http://layzate.herokuapp.com/api/v1/MDL/0/5?limit=100&page=1
Name | param type | DataType | Format |
---|---|---|---|
IATACODE |
path parameter | CHAR(3) |
RGN |
DEP_ARV (Departure or Arrival) |
path parameter | INTEGER(1) |
0(or)1 |
POT (Period Of Time of the day) |
path parameter | INTEGER(1) |
range from 1 to 8 |
limit |
query parameter | INTEGER(3) |
less than equal 100 |
page |
query parameter |
[GET] /api/v1/track/{FLIGHT_CODE}/{FLIGHT_NUMBER}
Eg. http://layzate.herokuapp.com/api/v1/track/WE/310
Name | param type | DataType | Format |
---|---|---|---|
FLIGHT_CODE |
path parameter | CHAR(2) |
RGN |
FLIGHT_NUMBER |
path parameter | INTEGER(4) |
`` |
- mysql
- python 3.7
DB_URL_FORMAT=mysql+pymysql://{}:{}@{}:{}/{}
DB_PASSWORD=123456
git st=localhost
PORT=3000
DB_HOST=your host
DB_PORT=32768
DB_USER_NAME=win
DB_NAME=db_layzate
FLIGHT_BASE_URL=https://www.flightstats.com/go/weblet?guid=34b64945a69b9cac:a51bccf:12d54dfa33f:-5bfe&weblet=status&action=AirportFlightStatus&airportCode={}
TRACK_URL=https://www.flightstats.com/v2/api-next/flight-tracker/{0}/{1}/{2}/{3}/{4}
Install all the requirements
pip install -r requirements.txt
Run the app
python3 server.py
and open your app at http://localhost:3000
Here is the list of IATA codes from datahub.
Got any language on your skills? No worries. Here are the docs you might need to get started:
- HTTPS protocol
- REST software pattern
- Data serialization with JSON (or see a quick tutorial)
Layzate API currently returns data in JSON format.
N.A
CORS enabled ?
Yes
All the flight data and tracking information were extracted by flightstats.com
- Fork it ( https://github.com/winhtaikaung/lay-zate-api )
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create a new Pull Request
MIT