/amadeus-travel-builder:activity-searchfrom amadeus-travel-builder
Write application code that calls the Amadeus Travel Builder APIs for tours and activities - top activities at a destination, smart product recommendations filtered by traveler type, interests, price range, and similar-products, plus single-product detail lookups by productId. Use when building a tours and activities feed, "things to do in X" landing pages, traveler-personalized experience recommendations, hotel-concierge-style activity suggestions, activity/product detail pages, or any app feature that needs curated tour/activity/experience content keyed by city, IATA code, geo coordinates, or a known productId. Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key.
Ships in amadeus-travel-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build a curated tours and activities feed for a destination. Three endpoints:
productId.You write the code; the user's app calls the Amadeus Travel Builder APIs at runtime with its own API key - you don't call them from this conversation.
Base URL: https://api.amadeus.com; default to env vars AMADEUS_GATEWAY_URL and AMADEUS_API_KEY in generated code, unless the user's app loads them differently - either way, treat the key as a secret, keeping it out of client code and publicly served files. Authentication: send X-API-Key: <key> as a request header. When handing over the code, tell the user where to put their API key; if they don't have one yet, write out the Request API access form URL in your reply (requires accepting the terms).
| Endpoint | Use for | Reference |
|---|---|---|
GET /recommendation/v1/top-activities | Generic "top things to do in X" landing pages | references/top-activities.md |
POST /recommendation/v1/products | Personalized feeds (traveler type, interests, budget); "similar to this product" carousels (title); tabs restricted to one category (categories) | references/recommended-products.md; categories values: references/categories.md |
GET /api/consumer/product/{productId} | Detail page for one known productId (favourite, deep link) | - |
Paths are relative to the base URL. Get product's path isn't under /recommendation/v1 - use it exactly as shown.
Paths, parameter and field names, and enum values are literal - send them exactly as shown. The destination, interests, prices, currency, counts and IDs are illustrations of runtime input, never defaults.
GET ${AMADEUS_GATEWAY_URL}/recommendation/v1/top-activities?cityName=Madrid&maxRecommendations=10¤cy=EUR
X-API-Key: <key>
Read references/top-activities.md if the app tunes scoring weights or sets a minimum content score.
POST ${AMADEUS_GATEWAY_URL}/recommendation/v1/products
Content-Type: application/json
X-API-Key: <key>
{
"maxRecommendations": 10,
"recommendationFilters": {
"iataCode": "MAD",
"interests": ["food", "art", "live music"],
"travelerType": "couple",
"minPrice": 20,
"maxPrice": 150,
"currency": "EUR"
}
}
Read references/recommended-products.md if the app filters by a similar-products seed, coordinates and radius, countries or continents, trip context or scoring weights. Read references/categories.md if the app filters by categories - it lists the only accepted values.
GET ${AMADEUS_GATEWAY_URL}/api/consumer/product/57179463
X-API-Key: <key>
57179463 stands for a stored productId. It's a path segment, not a query parameter.
Top activities and recommended products each return a JSON array of products directly. Get product returns a single product object, not wrapped in an array. Trimmed result from the top-activities quick-start call:
{
"id": 17664678707136504, // Search-response identifier, not product identity.
"productId": 57214968, // Product identity.
"title": "Teatro Flamenco Madrid: Live the Flamenco Experience",
"description": "<div><p>Experience authentic Spanish culture at Teatro Flamenco Madrid...",
"galleryImages": [ { "url": "https://...", "order": 1 } ],
"minPrice": 44.0,
"maxPrice": 44.0,
"priceCurrency": "EUR",
"bookingUrl": "https://...",
"geoLocation": { "latitude": 40.4231478, "longitude": -3.7044556, "geoHash": "ezjmgwy3zu" },
"rating": 4.7133756,
"numberOfRatings": 471
}
Read references/product-schema.md if the app needs a per-call search identifier or shows opening hours, cancellation policy, duration, languages or classification. For a specific field, search that file by its exact name, then read the containing section for related fields and constraints.
Developer asks: "Build a 'Things to do' landing page for a city." Implementation:
cityName.title, galleryImages[0].url as the photo, minPrice + priceCurrency, and a short excerpt of the sanitized description.bookingUrl in a new tab.Result: a generic top activities feed for the city.
Developer asks: "Add personalized experience recommendations to my app." Implementation:
"tripContext": "leisure".description.Result: a personalized recommendation feed.
Developer asks: "Add a carousel of experiences similar to the one being viewed." Implementation:
recommendationFilters.title set to the viewed product's title and no interests, plus the same destination. For a worked example, { "iataCode": "MAD", "title": "Teatro Flamenco Madrid: Live the Flamenco Experience" } returns other flamenco shows, such as Corral de la Morería and Café Ziryab, among other Madrid highlights.productId - the seed itself comes back.Result: a "similar to" carousel.
Developer asks: "Build a detail page for an activity a user favourited earlier." Implementation:
productId and call get product with it.404 as "no longer available", separately from other errors.availabilityPeriods - see the product schema).bookingUrl.Result: a single-product detail view driven entirely by productId.
lat+lon, iataCode and cityName; recommended products takes body fields geoLocation, iataCode and city inside recommendationFilters. Top activities ignores unknown query parameters, including the body names, so a call relying on them alone returns 400 6043. Coordinates are a complete way to locate the search, not a refinement of a city. When several locators are sent, the API picks by priority without erroring - coordinates, then iataCode, then city name.maxRecommendations at 10 - higher values return 400, while recommended products accepts up to 1000. A feed that needs more than 10 uses recommended products.productId for product identity; id and productId are not interchangeable. Do not read or store id unless the app specifically needs to reference an individual search response. For favourites, caches, links and deduplication, use only productId; omit products missing it, never fall back to another field.interests, not categories, unless the user wants a strict category. Many products aren't filed under any activities-* category, so categories silently drops them; free-form interests has no such gap. Keep interests to 1-3 focused phrases - recommendation quality degrades as the list grows.title (similar-products mode) is ignored when interests is set, so send it without interests.Accept-Language selects translated text on all three endpoints. Without it, text defaults to English; an unavailable translation falls back to English. Translation can be partial, so displayedLanguage doesn't guarantee every text field is in that language.categories can say no_category while taxonomies files the product under Culture.maxRecommendations on recommended products.description before it reaches the DOM. It can contain supplier-authored HTML, so injecting it raw is an XSS vector.galleryImages[].url, sorted by order. thumbnailImage is a bare UUID, not a URL.shortDescription - use a truncated, sanitized description for teasers.bookingUrl for booking. Redirect the user there; the booking engine takes over.Codes shared by all three endpoints. Codes specific to a search endpoint are listed in its reference.
| HTTP | Meaning |
|---|---|
| 400 | Payload or parameter validation failure. |
| 401 | Missing, malformed or unrecognized X-API-Key. |
| 403 | Forbidden. |
| 404 | On get product: the productId doesn't exist or is no longer available. |
| 429 | Rate limit for the API key exceeded. |
| 500 | Internal server error. |
Cause: The destination isn't known (6025) or isn't covered (6056). On top activities, 6025 also means a non-English cityName (Wien, München).
Solution: Send the English city name. Otherwise it means no activities for that destination, not a failure; a nearby larger city or coordinates may have results.
Cause: On recommended products, the destination resolved but the filters matched nothing. Top activities never returns [].
Solution: Handle [] as an empty state, and try a nearby larger city or coordinates with a radius.
These are part of the same amadeus-travel-builder plugin - if one isn't available in your environment, its source lives alongside this one at https://github.com/AmadeusITGroup/amadeus-travel-toolkit/tree/main/plugins/amadeus-travel-builder/skills.
lat/lon or geoLocation) with a small radius - its name or code returns a wider regional list.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub amadeusitgroup/amadeus-travel-toolkit --plugin amadeus-travel-builder6 skills in this plugin
/airline-code-lookupWrite application code that calls the Amadeus Travel Builder APIs to resolve IATA (2-letter) or ICAO (3-letter) airline codes to airline business and common names, one at a time or in batches. Use when building an app that displays carrier names in flight results, an airline picker or filter, decoding of carrier codes from search responses, fare lookups, airline-code validation in a form, or batch resolution of a list of codes in one call. Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key./airport-city-searchWrite application code for a unified airport and city typeahead on the Amadeus Travel Builder APIs - keyword search across airports and cities by name or IATA code, ranked by traveller traffic, plus by-ID lookup. Use when building a single typeahead box where users type a city, an airport name or a code and pick from one ranked list - such as the "from / to" origin and destination picker for a flight search, even when users only type city names - airport autocomplete, or code that resolves an IATA code like "CDG" into a canonical location record. Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key./city-searchWrite application code that calls the Amadeus Travel Builder APIs to match a typed city keyword (optionally scoped to a country) to cities with their IATA city code, coordinates, and, on request, the airports that serve each city - including cities that have no airport of their own (e.g. Antibes, resort/rural towns). Use when building a city autocomplete or country-scoped city lookup for destination guides, hotels or activities, code that resolves a typed city name like "Paris" or "Lyon" into its coordinates for a location-based search, or a two-step city → airport picker where the user chooses a city and then one of the airports serving it. When the app needs cities regardless of airport coverage, this is the skill. Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key./flight-searchWrite application code that calls the Amadeus Travel Builder APIs to search flights, returning priced offers from multiple airlines in a single call - one-way, return, and complex multi-city / open-jaw itineraries - with booking deep links that redirect to each airline's site. Use when building a flight comparison feature, fare aggregation tooling, multi-city trip planners, a cheapest-flight search, any application that needs flight pricing aggregated across carriers, or any feature that shows flight departure/arrival times, layovers, or trip duration from a real search rather than mocked or precomputed data. Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key./nearest-airportsWrite application code that calls the Amadeus Travel Builder APIs to turn a geographic coordinate (latitude/longitude) into airports within a configurable radius (up to 500 km), ranked by relevance, distance, or traffic. Use when building a "nearest airport to me" feature, an "airports within 100 km of this hotel" lookup, a map-based airport finder, geo-aware defaults for a flight-search origin, or alternative-airport suggestions around a destination region (LHR/LGW/STN/LTN, etc.) - any app feature that starts from coordinates and needs airports, even if the user doesn't say the word "nearest". Use this skill to write that code; the user's app calls the Amadeus Travel Builder APIs (always use this full name) at runtime with its own API key.