Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.22.0] - 2026-07-23

### Added

- **Google Flights `sort_by`** — `client.google.flights.search({ ..., sort_by: "price" })` now returns the FULL price-sorted inventory (every carrier, the cheap long-layover fares) plus Google's own price floor, typical range, and price history, instead of only the ~6-8 "best" preview. Default `sort_by: "top"` keeps the fast best-picks behaviour. (SCR-123)

## [0.21.0] - 2026-07-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrapebadger",
"version": "0.21.0",
"version": "0.22.0",
"description": "Official Node.js SDK for ScrapeBadger - Async web scraping APIs for Twitter, Google, Vinted, Reddit, and more",
"type": "module",
"main": "./dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type {
AutocompleteParams,
FinanceQuoteParams,
FlightsSearchParams,
FlightsSortBy,
FlightsStopsFilter,
FlightsTravelClass,
FlightsTripType,
Expand Down
10 changes: 10 additions & 0 deletions src/google/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ export type FlightsTripType = "round_trip" | "one_way" | "multi_city";
export type FlightsTravelClass = "economy" | "premium_economy" | "business" | "first";
export type FlightsStopsFilter = "any" | "nonstop" | "one_stop" | "two_stops";

export type FlightsSortBy = "top" | "price";

export interface FlightsSearchParams {
/** Departure airport IATA code (e.g. "JFK") or location ID. */
departure_id: string;
Expand All @@ -673,4 +675,12 @@ export interface FlightsSearchParams {
stops?: FlightsStopsFilter;
/** Upper price filter. */
max_price?: number;
/**
* `"top"` (default) returns Google's ~6-8 "best" picks (fast). `"price"`
* returns the FULL price-sorted inventory (every carrier, the cheap
* long-layover fares) plus Google's own price floor, typical range, and
* price history — slower, and falls back to the "top" set under load.
* Round-trip initial search only.
*/
sort_by?: FlightsSortBy;
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export type {
AutocompleteParams,
FinanceQuoteParams,
FlightsSearchParams,
FlightsSortBy,
FlightsStopsFilter,
FlightsTravelClass,
FlightsTripType,
Expand Down
2 changes: 1 addition & 1 deletion src/internal/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
*
* @internal
*/
export const SDK_VERSION = "0.16.0";
export const SDK_VERSION = "0.22.0";
Loading