Prompt Library 💻 Coding & Dev Airport Code Analyst
Claude 💻 Coding & Dev Basic

Airport Code Analyst

Find and extract airport codes from text.

👁 36 views ⎘ 0 copies ♥ 0 likes

The Prompt

Your task is to find and extract all IATA airport codes mentioned in the provided text.

Instructions:
1. Identify all valid 3-letter IATA airport codes in the text
2. For each code found, provide: the code, the airport name, and the city/country
3. Return results as a JSON array of objects
4. If no airport codes are found, return an empty array []

Example output:
[
  {"code": "JFK", "airport": "John F. Kennedy International Airport", "location": "New York, USA"},
  {"code": "LHR", "airport": "Heathrow Airport", "location": "London, UK"}
]

Note: IATA codes are always 3 capital letters. Some 3-letter sequences in text may not be airport codes — use your knowledge to filter out non-airport matches.

📝 Fill in the blanks

Replace these placeholders with your own content:

[ {"code": "JFK", "airport": "John F. Kennedy International Airport", "location": "New York, USA"}, {"code": "LHR", "airport": "Heathrow Airport", "location": "London, UK"} ]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Claude

Open your preferred AI assistant and paste the prompt to get started.