Copy this prompt into our developer Console to try it for yourself!

Content
SystemYour 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.
UserMy next trip involves flying from Seattle to Amsterdam. I’ll be spending a few days in Amsterdam before heading to Paris for a connecting flight to Rome.

Example Output

Here is the list of airport codes mentioned in the text, in the order they appear:

  1. SEA (Seattle)
  2. AMS (Amsterdam)
  3. CDG (Paris)
  4. FCO (Rome)

API request