Api Endpoint

StableTravel

Search Google Flights for flight offers. Returns best flights, other flights, price insights, and airport info.

Open interactive test console

Offering

Provider
stabletravel.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Location And Travel
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://stabletravel.dev/api/google-flights/search
MIME type
application/json
First seen
2026-10-16T01:50:06.715Z
Last seen
Tags
Google Flights

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xDd257723b86B4947483905cdAcBbBC70fACF2ec0"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "6u5LMGQC2qk9peNibahmRWxGVXrBypk8nhTCcqtiuqMY"
  }
]

Observed health

Status
Healthy
Latest latency
54 ms
Average latency
80 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "departure_id": {
          "type": "string",
          "description": "Departure airport code (IATA), city, or kgmid. Comma-separated for multi-city."
        },
        "arrival_id": {
          "type": "string",
          "description": "Arrival airport code (IATA), city, or kgmid. Comma-separated for multi-city."
        },
        "outbound_date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Departure date"
        },
        "return_date": {
          "description": "Return date (required for round trip)",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "type": {
          "default": "1",
          "description": "1 = Round trip, 2 = One way, 3 = Multi-city",
          "type": "string",
          "enum": [
            "1",
            "2",
            "3"
          ]
        },
        "travel_class": {
          "description": "1 = Economy, 2 = Premium economy, 3 = Business, 4 = First",
          "type": "string",
          "enum": [
            "1",
            "2",
            "3",
            "4"
          ]
        },
        "adults": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 9
        },
        "children": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "infants_in_seat": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "infants_on_lap": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "stops": {
          "description": "0 = Any, 1 = Nonstop only, 2 = Up to 1 stop, 3 = Up to 2 stops",
          "type": "string",
          "enum": [
            "0",
            "1",
            "2",
            "3"
          ]
        },
        "max_price": {
          "description": "Max price in local currency",
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "exclude_airlines": {
          "description": "Comma-separated airline codes to exclude",
          "type": "string"
        },
        "include_airlines": {
          "description": "Comma-separated airline codes to include",
          "type": "string"
        },
        "currency": {
          "default": "USD",
          "description": "Currency code",
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        },
        "hl": {
          "default": "en",
          "description": "Language code",
          "type": "string"
        },
        "gl": {
          "description": "Country code for localization",
          "type": "string"
        }
      },
      "required": [
        "departure_id",
        "arrival_id",
        "outbound_date",
        "type",
        "adults",
        "children",
        "infants_in_seat",
        "infants_on_lap",
        "currency",
        "hl"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "adults": {
              "default": 1,
              "maximum": 9,
              "minimum": 1,
              "type": "integer"
            },
            "arrival_id": {
              "description": "Arrival airport code (IATA), city, or kgmid. Comma-separated for multi-city.",
              "type": "string"
            },
            "children": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "currency": {
              "default": "USD",
              "description": "Currency code",
              "maxLength": 3,
              "minLength": 3,
              "type": "string"
            },
            "departure_id": {
              "description": "Departure airport code (IATA), city, or kgmid. Comma-separated for multi-city.",
              "type": "string"
            },
            "exclude_airlines": {
              "description": "Comma-separated airline codes to exclude",
              "type": "string"
            },
            "gl": {
              "description": "Country code for localization",
              "type": "string"
            },
            "hl": {
              "default": "en",
              "description": "Language code",
              "type": "string"
            },
            "include_airlines": {
              "description": "Comma-separated airline codes to include",
              "type": "string"
            },
            "infants_in_seat": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "infants_on_lap": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "max_price": {
              "description": "Max price in local currency",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "outbound_date": {
              "description": "Departure date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "return_date": {
              "description": "Return date (required for round trip)",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "stops": {
              "description": "0 = Any, 1 = Nonstop only, 2 = Up to 1 stop, 3 = Up to 2 stops",
              "enum": [
                "0",
                "1",
                "2",
                "3"
              ],
              "type": "string"
            },
            "travel_class": {
              "description": "1 = Economy, 2 = Premium economy, 3 = Business, 4 = First",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "type": "string"
            },
            "type": {
              "default": "1",
              "description": "1 = Round trip, 2 = One way, 3 = Multi-city",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "type": "string"
            }
          },
          "required": [
            "departure_id",
            "arrival_id",
            "outbound_date",
            "type",
            "adults",
            "children",
            "infants_in_seat",
            "infants_on_lap",
            "currency",
            "hl"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "airports": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "arrival": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "city": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "country_code": {
                          "type": "string"
                        },
                        "image": {
                          "type": "string"
                        },
                        "thumbnail": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "departure": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "city": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "country_code": {
                          "type": "string"
                        },
                        "image": {
                          "type": "string"
                        },
                        "thumbnail": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "best_flights": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "airline_logo": {
                    "type": "string"
                  },
                  "carbon_emissions": {
                    "additionalProperties": false,
                    "properties": {
                      "difference_percent": {
                        "type": "number"
                      },
                      "this_flight": {
                        "type": "number"
                      },
                      "typical_for_this_route": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "departure_token": {
                    "type": "string"
                  },
                  "extensions": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "flights": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "airline": {
                          "type": "string"
                        },
                        "airline_logo": {
                          "type": "string"
                        },
                        "airplane": {
                          "type": "string"
                        },
                        "arrival_airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "departure_airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "duration": {
                          "type": "number"
                        },
                        "extensions": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "flight_number": {
                          "type": "string"
                        },
                        "legroom": {
                          "type": "string"
                        },
                        "often_delayed_by_over_30_min": {
                          "type": "boolean"
                        },
                        "overnight": {
                          "type": "boolean"
                        },
                        "travel_class": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "layovers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "duration": {
                          "type": "number"
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "overnight": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "price": {
                    "type": "number"
                  },
                  "total_duration": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "other_flights": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "airline_logo": {
                    "type": "string"
                  },
                  "carbon_emissions": {
                    "additionalProperties": false,
                    "properties": {
                      "difference_percent": {
                        "type": "number"
                      },
                      "this_flight": {
                        "type": "number"
                      },
                      "typical_for_this_route": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "departure_token": {
                    "type": "string"
                  },
                  "extensions": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "flights": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "airline": {
                          "type": "string"
                        },
                        "airline_logo": {
                          "type": "string"
                        },
                        "airplane": {
                          "type": "string"
                        },
                        "arrival_airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "departure_airport": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "time": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "duration": {
                          "type": "number"
                        },
                        "extensions": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "flight_number": {
                          "type": "string"
                        },
                        "legroom": {
                          "type": "string"
                        },
                        "often_delayed_by_over_30_min": {
                          "type": "boolean"
                        },
                        "overnight": {
                          "type": "boolean"
                        },
                        "travel_class": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "layovers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "duration": {
                          "type": "number"
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "overnight": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "price": {
                    "type": "number"
                  },
                  "total_duration": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "price_insights": {
              "additionalProperties": false,
              "properties": {
                "lowest_price": {
                  "type": "number"
                },
                "price_history": {
                  "items": {
                    "items": {
                      "type": "number"
                    },
                    "type": "array"
                  },
                  "type": "array"
                },
                "price_level": {
                  "type": "string"
                },
                "typical_price_range": {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "search_metadata": {
              "additionalProperties": false,
              "properties": {
                "created_at": {
                  "type": "string"
                },
                "google_flights_url": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "json_endpoint": {
                  "type": "string"
                },
                "processed_at": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "total_time_taken": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "search_parameters": {
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}