search_one_way_flights
us.trip.comSearches one-way flights on https://us.trip.com and returns all matching options with segment airlines and flight numbers, schedules, duration, stops, fares, cabin class, baggage details, and booking URLs. Results are sorted by directness by default.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is search_one_way_flights?
Searches one-way flights on https://us.trip.com and returns all matching options with segment airlines and flight numbers, schedules, duration, stops, fares, cabin class, baggage details, and booking URLs. Results are sorted by directness by default. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass departure_city, arrival_city, departure_date, cabin_class, adults, nonstop_only, currency, sort_by and get the result back without maintaining a scraper.
Response
{
"flights": [
{
"score": 0,
"currency": "<string>",
"segments": [
{
"airline_name": "<string>",
"flight_number": "<string>",
"segment_number": 0
}
],
"booking_url": "<string>",
"cabin_class": "<string>",
"airline_name": "<string>",
"average_price": 0,
"flight_number": "<string>",
"transfer_type": "<string>",
"transfer_count": 0,
"flight_duration": 0,
"formatted_price": "<string>",
"arrival_date_time": "<string>",
"departure_date_time": "<string>",
"has_carryon_baggage": true,
"has_checked_baggage": true,
"transfer_count_name": "<string>",
"arrival_airport_code": "<string>",
"arrival_airport_name": "<string>",
"departure_airport_code": "<string>",
"departure_airport_name": "<string>",
"formatted_arr_date_time": "<string>",
"formatted_dep_date_time": "<string>",
"formatted_flight_duration": "<string>"
}
],
"sort_by": "<string>",
"currency": "<string>",
"search_url": "<string>",
"cabin_class": "<string>",
"arrival_city": "<string>",
"flight_count": 0,
"departure_city": "<string>",
"departure_date": "<string>"
}Call it
curl --location 'https://us-prod.notte.cc/functions/8ef5333c-b690-4c8b-903e-46718dee82c5/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "8ef5333c-b690-4c8b-903e-46718dee82c5",
"variables": {
"departure_city": "LAX",
"arrival_city": "NYC",
"departure_date": "",
"cabin_class": "Economy",
"adults": 1,
"nonstop_only": false,
"currency": "USD",
"sort_by": "directness"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="8ef5333c-b690-4c8b-903e-46718dee82c5") — the "search_one_way_flights" function, which searches one-way flights on https://us.trip.com and returns all matching options with segment airlines and flight numbers, schedules, duration, stops, fares, cabin class, baggage details, and booking URLs. Results are sorted by directness by default.. It takes departure_city (str), arrival_city (str), departure_date (str), cabin_class (str), adults (int), nonstop_only (bool), currency (str), sort_by (str). Return the result as structured JSON.