Commit ffaa509
committed
feat(google): 19 product APIs — initial Google SDK + Scrapingdog parity
First commit landing the `src/google` module as a tracked tree. Ships
the full Google Scraper surface plus the 7 Scrapingdog parity items
we added server-side in scrape-badger/scrapebadger#135:
- `client.google.search` — web SERP, with optional `ai_overview: true`
that chases Google's deferred AI Overview page_token.
- `client.google.maps` — search, place, reviews, photos, posts.
- `client.google.news` — search, topics, trending.
- `client.google.hotels` — search, details.
- `client.google.trends` — interest, regions, related, trending, and
**topic `autocomplete`** (categorized Knowledge Graph entities).
- `client.google.jobs`, `shopping` (with merchant URL click
enrichment), `patents`.
- `client.google.scholar` — search, **profiles**, **author**,
**authorCitation**, **cite** (MLA / APA / Chicago / Harvard /
Vancouver formats with BibTeX / RIS / EndNote / RefWorks export
links).
- `client.google.autocomplete`, `images`, `videos`, `finance`,
`aiMode`, `lens`.
- `client.google.local` — **new.** Local Pack business listings for
SERP queries with local intent (`tbm=lcl`), driven by
`q + location/uule` instead of a place_id.
- `client.google.shorts` — **new.** Short-form vertical video results
(YouTube Shorts, TikTok, Reels) via Google's Shorts SERP mode
(`udm=39`).
- `client.google.flights` — **new.** One-way, round-trip, and
multi-city flight search with passenger config, cabin class, stops
filter, and max-price. Returns `best_flights`, `other_flights`,
`price_insights`, and per-offer carbon emissions.
- `client.google.products` — immersive product detail.
**19 Google product APIs in total**, matching the monorepo
`/v1/google/*` routes shipped in e823f1a. Fully typed, ESM+CJS
dual-publish, accessible as `client.google.<product>`.
New exported param types: `LocalSearchParams`, `ShortsSearchParams`,
`FlightsSearchParams`, `FlightsTripType`, `FlightsTravelClass`,
`FlightsStopsFilter`, `ScholarProfilesParams`, `ScholarAuthorParams`,
`ScholarAuthorCitationParams`, `ScholarCiteParams`,
`TrendsAutocompleteParams`.
Version: 0.5.1 -> 0.6.0. README + CHANGELOG updated.
161 vitest tests pass (26 google + 135 other), tsup build clean,
eslint + tsc green.1 parent e49021c commit ffaa509
29 files changed
Lines changed: 2238 additions & 3 deletions
File tree
- docs
- src
- google
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
8 | 28 | | |
9 | 29 | | |
10 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments