"Flight Availibilities Search API skill. Use when working with Flight Availibilities Search for shopping. Covers 1 endpoint."
Resources
1Install
npx skillscat add lap-platform/claude-marketplace/flight-availibilities-search Install via the SkillsCat registry.
SKILL.md
Flight Availibilities Search
API version: 1.0.2
Auth
No authentication required.
Base URL
https://test.api.amadeus.com/v1
Setup
- No auth setup needed
- POST /shopping/availability/flight-availabilities -- create first flight-availabilities
Endpoints
1 endpoints across 1 groups. See references/api-spec.lap for full details.
shopping
| Method | Path | Description |
|---|---|---|
| POST | /shopping/availability/flight-availabilities | Return list of Flight Availabilities based on posted searching criteria. |
Enhanced Skill Content
Question Mapping
- "How do I search for available flights?" -> POST /shopping/availability/flight-availabilities
- "Are there seats available on flights from Paris to New York?" -> POST /shopping/availability/flight-availabilities
- "How do I check flight availability for a specific date?" -> POST /shopping/availability/flight-availabilities
- "Can I search for round-trip flight availability?" -> POST /shopping/availability/flight-availabilities
- "How do I find available cabin classes on a route?" -> POST /shopping/availability/flight-availabilities
- "What flights have open seats between two cities?" -> POST /shopping/availability/flight-availabilities
- "How do I search availability for multi-segment itineraries?" -> POST /shopping/availability/flight-availabilities
- "Can I filter flight availability by airline?" -> POST /shopping/availability/flight-availabilities
- "How do I check seat availability across multiple fare classes?" -> POST /shopping/availability/flight-availabilities
- "What is the X-HTTP-Method-Override header used for?" -> POST /shopping/availability/flight-availabilities
- "How do I search for one-way flight availability?" -> POST /shopping/availability/flight-availabilities
- "Can I request availability for a specific number of passengers?" -> POST /shopping/availability/flight-availabilities
Response Tips
- Shopping/Availability: Responses return nested
data[]arrays with flight segments, cabin availability, and booking class details. Checkdictionariesfor carrier/aircraft code lookups. 400 errors include anerrors[]array withdetailandsource.pointerfields pointing to the invalid request parameter.
Anomaly Flags
- 400 validation errors: Surface the
source.pointerfield to pinpoint exactly which part of the request body is malformed - Missing X-HTTP-Method-Override header: This header is required -- flag immediately if omitted, as the request will fail
- Empty availability results: Alert when
data[]returns empty, suggesting the route, date, or cabin class has no availability - Rate limiting (429): Amadeus test environment has strict rate limits -- surface approaching thresholds and suggest backoff
- Token expiration: Amadeus uses OAuth2; flag 401 responses and prompt re-authentication before retrying
- Deprecated API version: Flag if response headers indicate a newer API version is available
Playbook
1. Search One-Way Flight Availability
- Authenticate via
POST /v1/security/oauth2/tokento obtain a Bearer token - Build the request body with
originDestinationsspecifying departure city, arrival city, and date - Set
travelersarray with passenger count and type - Include header
X-HTTP-Method-Override: GET - Send
POST /shopping/availability/flight-availabilitieswith the body - Parse
data[]for available segments and cabin class availability
2. Search Round-Trip Availability
- Obtain a valid access token
- Build request body with two entries in
originDestinations: outbound and return legs - Set
travelerswith passenger details - Add
X-HTTP-Method-Override: GETheader - Send
POST /shopping/availability/flight-availabilities - Match outbound and return segments in the response by
originDestinationId
3. Handle Validation Errors
- Send the availability search request
- If a 400 response is returned, read the
errors[]array - Check
errors[].source.pointerto identify the invalid field - Check
errors[].detailfor a human-readable explanation - Correct the request body and retry
4. Filter by Cabin Class
- Authenticate and prepare the base request body
- Add
sourcesarray to specify data providers (e.g.,GDS) - Include
searchCriteria.flightFilters.cabinRestrictionswith desired cabin (ECONOMY, BUSINESS, FIRST) - Set coverage and origDestination scope for the cabin filter
- Send
POST /shopping/availability/flight-availabilities - Review returned
availabilityClasseswithin each segment for matching cabin inventory
5. Paginate Large Result Sets
- Send the initial availability search request
- Check response
metaobject forcountand pagination links - If more results exist, use the
nextlink or adjustsearchCriteria.maxFlightOffers - Repeat until all relevant availability data is collected
- Deduplicate results by segment identifiers if combining across requests
Response Tips
- Check response schemas in references/api-spec.lap for field details
- Create/update endpoints typically return the created/updated object
References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas
Generated from the official API spec by LAP