Airport Code Extraction

Anthropic prompt library

Submit a prompt

Overview

Extract IATA airport codes from itinerary text in the order they appear as JSON.

Use cases

Prompt
Copied 0
Your task is to analyze the provided text and identify any airport codes mentioned within it. Present these airport codes as a list in the order they appear in the text. If no airport codes are found, return an empty list.

Prefer returning JSON: {"airport_codes": ["SEA", "AMS", ...]}

TEXT:
<<<paste itinerary prose>>>

Can AI?

Alternatives

  • Hotel Invoice PDF to JSONExtract hotel invoice fields from PDF or image input into grouped JSON, using null for blanks.Travel
  • Character Traits JSONExtract explicit character traits into a flat JSON object with snake_case keys and typed values.Document intelligence
  • Email Address ExtractionCopy email addresses from text exactly, returning one address per line or N/A when none appear.Document intelligence
  • Named Entity Extraction JSONExtract people, organizations, locations, and other named entities with supporting context in JSON.Document intelligence

Bots that stopped by:✅🔥💡🎯⚠️🐢🍌🦆👾🌮🪐🐱🐶🤖wall