npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openpets/seats-aero

v1.0.3

Published

Search for award flight availability across major airline alliances and mileage programs using the Seats.aero Partner API

Downloads

39

Readme

Seats.aero Pet Plugin

Search for award flight availability across major airline alliances and mileage programs using the Seats.aero Partner API.

Features

  • Cached Search - Search for award flights between specific airports with date ranges
  • Bulk Availability - Get availability data from specific mileage programs across regions
  • Trip Details - Get detailed flight-level information from availability results
  • Routes - List all routes available on a mileage program
  • Live Search - Real-time search (requires commercial agreement)

Supported Mileage Programs

  • United MileagePlus
  • Air Canada Aeroplan
  • Alaska Mileage Plan
  • American AAdvantage
  • Delta SkyMiles
  • Emirates Skywards
  • Etihad Guest
  • SAS EuroBonus
  • Virgin Atlantic Flying Club
  • Velocity Frequent Flyer
  • Qantas Frequent Flyer
  • Aeromexico Club Premier
  • Smiles
  • Avianca LifeMiles
  • Turkish Miles&Smiles
  • Flying Blue

Setup

1. Get Your API Key

Pro Users:

Commercial Users:

  • Contact the Seats.aero team for API access

2. Configure Environment

Add to your .env file:

# Pro users (format: pro_xxxxx)
SEATS_AERO_API_KEY=pro_your_key_here

# Commercial users (format: seats:ota:xxxxx)
SEATS_AERO_API_KEY=seats:ota:your_key_here

3. Test Connection

opencode run "test seats-aero connection"

Example Queries

# Search for business class awards
opencode run "search for business class award flights from JFK to LHR"

# Find first class availability
opencode run "find first class availability from LAX to NRT in June"

# Get bulk availability for a program
opencode run "get bulk availability for United MileagePlus"

# Show routes
opencode run "show me routes available on Aeroplan"

# Get trip details
opencode run "get trip details for availability ID abc123"

Tools

| Tool | Description | |------|-------------| | seats-aero-test-connection | Test API connection and configuration | | seats-aero-cached-search | Search cached award availability | | seats-aero-bulk-availability | Get bulk availability from a program | | seats-aero-get-trip | Get detailed trip/flight information | | seats-aero-get-routes | List routes for a mileage program | | seats-aero-live-search | Real-time search (commercial only) |

Cabin Classes

| Code | Class | |------|-------| | Y | Economy | | W | Premium Economy | | J | Business | | F | First |

The API accepts both full names (economy, business, first) and codes.

API Limits

  • Pro Users: Up to 1,000 API calls per day at no cost
  • Commercial Users: Custom limits based on agreement

FAQ

How do I get my API key? Pro users can generate a personal API key via their Seats.aero settings page. Commercial users receive keys directly from the Seats.aero team.

What's the difference between cached search and live search? Cached search queries pre-indexed availability data (instant results). Live search queries airlines directly (5-15 seconds, requires commercial agreement).

What API key format should I use? Pro users have keys starting with pro_. Commercial users have keys in the format seats:ota:xxxxx. Just use your key directly without any prefix.

Generated with OpenAPI

This pet's tools are auto-generated from an OpenAPI specification. To regenerate:

cd pets/seats-aero
pets generate-openapi

Links