decolarjs
Version:
Search airfare prices on Decolar and Despegar
37 lines (28 loc) • 712 B
Markdown
const decolar = require("decolarjs");
let origin = "MIA" // IATA AIRPORT CODE
let destination = "LAX" // IATA AIRPORT CODE
let date = "2020-03-10" // YYYY-MM-DD
let options = {
minResults: 5,
currency: "USD" // Supported Currencies -> BRL ARS USD CLP COP CRC
} // Optional
decolar.fligths.oneWay(origin,destination,date,options).then(console.log);
```
JSON response example [HERE](https://pastebin.com/V6VsR9V4)
```
npm i decolarjs
```
- [x] One way
- [ ] Round trip
- [ ] Multi city
> coming soon
> coming soon
```js