Skip to main content gottem  — one API for every scraper.
Travel
Verified

American Airlines Scraper

Extract flight schedules, AAdvantage award pricing, cabin class options, and route details from American Airlines booking. Built on spider-browser .

Get started Docs
target
aa.com
success rate
99.9%
latency
~4ms
Quick start

Extract data in minutes.

american-airlines-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.aa.com/booking/search?locale=en_US&pax=1&type=OneWay&searchType=Revenue&cabin=&carriers=ALL&slices=%5B%7B%22orig%22:%22DFW%22,%22dest%22:%22MIA%22,%22origNearby%22:false,%22destNearby%22:false,%22date%22:%222026-07-10%22%7D%5D");
await page.content(15000);

const data = await page.extractFields({
  flightNumber: "[class*='flight-number'], .flt-number",
  departure: "[class*='departure-time'], .depart-time",
  arrival: "[class*='arrival-time'], .arrive-time",
  duration: "[class*='flight-duration'], .duration",
  price: "[class*='fare-total'], .price-point",
  cabin: "[class*='cabin-class'], .cabin-type",
});

console.log(data);
await spider.close();
ready to run · spider-browser · TypeScript
Fetch API

One endpoint for aa.com.

Structured JSON from aa.com with a single POST. AI-resolved selectors, cached on the first call.

POST /fetch/aa.com/
Flight numberDeparture timeArrival timeDurationFare classPrice
cURL
curl -X POST https://api.spider.cloud/fetch/aa.com/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
Python
import requests

resp = requests.post(
    "https://api.spider.cloud/fetch/aa.com/",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={"return_format": "json"},
)
print(resp.json())
Node.js
const resp = await fetch("https://api.spider.cloud/fetch/aa.com/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data);
Extraction

Fields you can pull.

Flight numberDeparture timeArrival timeDurationFare classPriceAAdvantage milesAircraft
Pricing

Dynamic rate capture

Session-aware scraping captures pricing on aa.com that changes per visitor.

Rendering

Complex SPA handling

Full browser rendering for React/Next.js booking interfaces and search results.

Scale

Destination coverage

Scrape listings across thousands of destinations and date ranges concurrently.

Related

More Travel scrapers.

Start

Start scraping aa.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.