← 返回
数据分析 Key 中文

Aerobase Travel

Jetlag-aware flight intelligence for AI travel agents
面向AI旅行助手的时差感知航班智能服务
kurosh87
数据分析 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 473
下载
💾 12
安装
1
版本
#latest

概述

Aerobase Travel Intelligence

You have access to the Aerobase travel API for jetlag-scored flight search and analysis.

Setup

Set your API key:

export AEROBASE_API_KEY="ak_..."

All requests use https://aerobase.app/api as the base URL.

Response Envelope

Every response wraps data in a standard envelope:

{
  "data": { ... },
  "meta": {
    "request_id": "req_abc123",
    "tier": "free",
    "calls_remaining": 7,
    "latency_ms": 142
  }
}

Errors return:

{
  "error": { "code": "VALIDATION_ERROR", "message": "..." },
  "meta": { "request_id": "...", "tier": "free", "calls_remaining": 9, "latency_ms": 12 }
}

Rate Limits

Free tier: 10 requests per hour. When calls_remaining reaches 0, wait until the hour resets.


Available Tools

1. Score a Flight

When the user describes a specific flight with departure and arrival times, score it for jetlag impact.

curl -s -X POST "https://aerobase.app/api/v1/flights/score" \
  -H "Authorization: Bearer $AEROBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "LAX",
    "to": "NRT",
    "departure": "2026-04-15T13:25:00-07:00",
    "arrival": "2026-04-16T15:40:00+09:00",
    "cabin": "economy"
  }'

Required fields: from, to (3-letter IATA), departure, arrival (ISO 8601 with timezone offset).

Optional: cabin (economy | business | first | premium_economy).

Response data:

FieldTypeDescription
--------------------------
scorenumber0-100, higher is better for jetlag
tierstringexcellent / good / moderate / poor / severe
recovery_daysnumberEstimated days to fully recover
directionstringeast / west / same
timezone_shift_hoursnumberHours of timezone crossing
breakdownobjectSub-scores (circadian, duration, arrival)
insightstringHuman-readable summary
strategies.departurestringPre-departure advice
strategies.arrivalstringPost-arrival advice
strategies.shiftstringCircadian shift approach
strategies.recoverystringRecovery timeline estimate
tipsstring[]Actionable tips list
originobjectAirport details (code, name, city, timezone)
destinationobjectAirport details (code, name, city, timezone)

Present to user: "This flight scores X/100 for jetlag (tier). You'd need ~Y days to recover. [strategies.arrival summary]"


2. Search Flights

Search for flights on a route and date, ranked by jetlag score.

curl -s -X POST "https://aerobase.app/api/v1/flights/search" \
  -H "Authorization: Bearer $AEROBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "SFO",
    "to": "LHR",
    "date": "2026-05-20",
    "max_stops": 1,
    "sort": "jetlag",
    "limit": 5
  }'

Required: from, to (IATA), date (YYYY-MM-DD).

Optional: return_date, max_stops (default 2), sort (jetlag | price | duration), limit (max 5 on free tier).

Response data is an array of flights:

FieldTypeDescription
--------------------------
idstringFlight identifier
pricenumber/nullPrice in USD (null for database results)
duration_minutesnumberTotal trip duration
stopsnumberNumber of stops
jetlag_scorenumber0-100 composite score
tierstringJetlag tier
recovery_daysnumberRecovery estimate
directionstringeast / west / same
booking_urlstring/nullBooking link when available
segmentsarrayFlight legs with from, to, airline, departure, arrival
sourcestring"live" or "database"

Present to user: Show as a ranked list. Lead with the best jetlag score. Mention price if available. Highlight the score difference between best and worst option.


3. Airport Info

Get airport details including jetlag-relevant facilities, lounges, and transit options.

curl -s "https://aerobase.app/api/v1/airports/NRT" \
  -H "Authorization: Bearer $AEROBASE_API_KEY"

Response data:

FieldTypeDescription
--------------------------
codestringIATA code
namestringAirport name
citystringCity
countrystringCountry
timezonestringIANA timezone
latitudenumberLatitude
longitudenumberLongitude
facilitiesarrayJetlag facilities (sleep pods, showers, etc.)
loungesarrayAvailable lounges with amenities and ratings
transitarrayGround transport options with time and cost

Present to user: Highlight facilities that help with jetlag recovery (sleep pods, showers, daylight rooms). Mention lounge access options for layovers.


4. Route Intelligence

Get comprehensive route analysis between two airports including direct and connecting options.

curl -s "https://aerobase.app/api/v1/routes/LAX/NRT" \
  -H "Authorization: Bearer $AEROBASE_API_KEY"

Response data:

FieldTypeDescription
--------------------------
originobjectAirport info (code, name, city, country, timezone)
destinationobjectAirport info
timezone_shiftobjecthours, direction, actual_shift_hours, UTC offsets
direct_routesarrayNonstop options with jetlag_score, airlines, distance
connecting_routesarray1-2 stop options with connection airports
route_countnumberTotal routes found

Each route includes: jetlag_score (0-100), stops, connections, total_distance_km, total_duration_minutes, recovery_days, segments.

Present to user: Start with timezone shift context ("This route crosses X hours"). Compare direct vs connecting options. Note that connecting flights sometimes score better when the layover breaks the circadian disruption.


5. Travel Deals

Browse jetlag-scored travel deals. Free tier returns up to 3 results.

curl -s "https://aerobase.app/api/v1/deals?departure=LAX&sort=value_score&limit=3" \
  -H "Authorization: Bearer $AEROBASE_API_KEY"

Query parameters:

ParamTypeDescription
--------------------------
departurestringOrigin IATA (optional)
destinationstringDestination IATA (optional)
max_pricenumberMaximum price USD (optional)
sortstringvalue_score / price / jetlag_score / newest
limitnumberMax results (3 on free tier)

Response data.deals array:

FieldTypeDescription
--------------------------
titlestringDeal headline
sourcestringDeal source
price_usdnumberPrice
cabin_classstringCabin
is_error_farebooleanError fare flag
originobject{iata, city}
destinationobject{iata, city}
jetlagobjectscore, recovery_days, direction, recommendation
value_scorenumberCombined value metric
travel_datesobjectstart, end, specificity
booking_deadlinestringExpiration
source_urlstringBooking link

Present to user: Lead with value_score. Mention jetlag impact alongside price. Flag error fares prominently (they disappear fast).


Presentation Guidelines

  1. Always mention jetlag score and recovery days - these are the primary differentiators.
  2. Compare scores when showing multiple options. "Flight A scores 82/100 vs Flight B at 61/100 - that's a full day less recovery."
  3. Highlight departure/arrival strategy - users want actionable advice, not just numbers.
  4. Convert technical data to natural language - say "you'll cross 9 time zones heading east" not "timezone_shift_hours: 9, direction: east".
  5. Context matters - a score of 70 on a 2-hour flight is unremarkable, but 70 on a transpacific route is excellent.
  6. Use tier labels - "excellent", "good", "moderate", "poor", "severe" are immediately understandable.

Score Interpretation

ScoreTierRecoveryMeaning
--------------------------------
80-100Excellent0-1 daysMinimal jetlag, well-timed flight
65-79Good1-2 daysManageable with basic strategies
50-64Moderate2-3 daysNoticeable jetlag, follow recovery plan
35-49Poor3-5 daysSignificant disruption expected
0-34Severe5+ daysConsider alternative flight times

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 22:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,118
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,008
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,456