---
title: "Return flights information, cost and more for a given flight time and date"
method: GET
path: "/api/flightPaths/{fromloc}/{toloc}"
tags: ["flightPaths"]
---

# Return flights information, cost and more for a given flight time and date

`GET /api/flightPaths/{fromloc}/{toloc}`

## Path parameters

- `fromloc` string, required
- `toloc` string, required

## Query parameters

- `leave` string, date, required

## Response `200`

Returns flight data and query context information

- ResultList
  - `context` string[]
  - `data` object[]

---

[API](https://skmtc.dev/couchbase/apis/travel-sample-api.md) · [All operations](https://skmtc.dev/couchbase/apis/travel-sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/couchbase/travel-sample-api/revisions/32d71654e84c/schema)
