Call it
curl https://api.peume.com/v1/call/china-southern-fare-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"origin": "your origin",
"dest": "your dest",
"adult": 10,
"child": 10,
"infant": 10,
"dptDate": "your dptDate"
}
}'const res = await fetch("https://api.peume.com/v1/call/china-southern-fare-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"origin": "your origin",
"dest": "your dest",
"adult": 10,
"child": 10,
"infant": 10,
"dptDate": "your dptDate"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/china-southern-fare-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"origin": "your origin",
"dest": "your dest",
"adult": 10,
"child": 10,
"infant": 10,
"dptDate": "your dptDate"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: china-southern-fare-search.
Parameters
originRequiredstringDeparture airport IATA code, e.g. 'BKK'.
destRequiredstringDestination airport IATA code, e.g. 'CGK'.
adultRequiredintegerNumber of adult passengers.
childRequiredintegerNumber of child passengers.
infantRequiredintegerNumber of infant passengers.
dptDateRequiredstringDeparture date in YYYY-MM-DD format.
fareClassRequiredstringTravel class.
economy · business
localeRequiredstringLocale for returned content, e.g. 'en-US'.
currencyRequiredstringThree-letter currency code for returned prices, e.g. 'USD'.
