scrapebadger 0.72.0 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,6 +104,7 @@ Etsy and AliExpress category navigation is separate from search: their search me
104
104
  | **Vinted** | Search items, get details, user profiles, and reference data across all Vinted markets | [Vinted Guide](docs/vinted.md) |
105
105
  | **Wallapop** | 10 endpoints across 3 markets (es, it, pt) — listing search with Wallapop's own filters (incl. cars: year, km, gearbox, horsepower), listing detail, seller profile/listings/reviews, autocomplete, categories, search filters and filter options, markets | [Wallapop Docs](https://docs.scrapebadger.com/wallapop/overview) |
106
106
  | **Reddit** | Search posts/subreddits/users, subreddit details, post comments, user profiles, wiki pages, trophies | [Reddit Guide](docs/reddit.md) |
107
+ | **GitHub** | 2 endpoints — public user and organization profiles (overview with README and contributions, repositories, and user stars tabs) and public repository detail (identity, fork comparison, latest commit and checks, README, root files, languages, latest release, contributors, dependents, funding, community files). E.g. `client.github.getRepository("octocat", "Hello-World")` | [GitHub Docs](https://docs.scrapebadger.com/github/overview) |
107
108
  | **Instagram** | User profile/about/related/posts/videos/reels/tagged/pinned/followers/following/stories/highlights, media detail/comments/replies/likers/oEmbed, search (users/hashtags/places/top/reels/music/autocomplete), hashtag/location/audio feeds | [Instagram Guide](docs/instagram.md) |
108
109
  | **Amazon** | 14 endpoints — search, autocomplete, product detail, offers, reviews, bestsellers, new releases, deals, category browse, seller profile/products/feedback, markets, categories | [Amazon Guide](docs/amazon.md) |
109
110
  | **Shopee** | 6 endpoints across 11 markets (sg, my, ph, id, vn, th, tw, br, co, cl, mx) — product search, category items, product detail, reviews, category tree, markets | [Shopee Guide](docs/shopee.md) |
@@ -111,6 +112,8 @@ Etsy and AliExpress category navigation is separate from search: their search me
111
112
  | **eBay** | 12 endpoints across 18 markets — search, search by image, completed/sold listings, item detail, item reviews, seller profile/items/feedback, category browse, categories, autocomplete, markets | [eBay Guide](docs/ebay.md) |
112
113
  | **Walmart** | 11 endpoints (walmart.com, US-only) — search, category browse, deals feed, autocomplete, product detail, reviews, seller profile/products, store detail with nearby stores, markets |
113
114
  | **Gumtree** | 9 endpoints across gumtree.com, gumtree.com.au and gumtree.co.za (`market: "uk"` default, `"au"`, `"za"`) — search (category, location/postcode radius, price, seller type, urgent/photos, category-specific filters), search filters with live counts, listing detail (full vehicle spec, seller rating/verification, masked phone), seller listings, keyword and location autocomplete, location and category trees, markets. E.g. `client.gumtree.search({ market: "au", category: "18320", location: "3003435", distance: 10 })` or `client.gumtree.search({ market: "za", category: "p6dnh", location: "dkp8y" })` (za ids are refs) | [Gumtree Docs](https://docs.scrapebadger.com/gumtree/overview) |
115
+ | **AutoScout24** | 4 endpoints — search, listing detail (URL or UUID), filters, markets | [AutoScout24 Docs](https://docs.scrapebadger.com/autoscout24/overview) |
116
+ | **Yelp** | 2 endpoints — business search (location, query, category alias, sort, price, 8 feature refinements, pages 1–11, ads separate) and markets (us, ca). E.g. `client.yelp.searchBusinesses({ location: "San Francisco, CA", query: "pizza" })` | [Yelp Docs](https://docs.scrapebadger.com/yelp/overview) |
114
117
  | **Bing** | 6 endpoints — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets |
115
118
  | **DuckDuckGo** | 7 endpoints — web search (with instant-answer abstract), image search, news vertical, video search, autocomplete, instant answers, regions |
116
119
  | **Yahoo** | 6 endpoints across 35 markets — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets | [Yahoo Docs](https://docs.scrapebadger.com/yahoo/overview) |
package/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.72.0";
12
+ var SDK_VERSION = "0.74.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -4638,6 +4638,10 @@ var Autoscout24Client = class {
4638
4638
  async listSearchFilters(params = {}) {
4639
4639
  return this.client.request("/v1/autoscout24/filters", { params });
4640
4640
  }
4641
+ /** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
4642
+ async getListing(params = {}) {
4643
+ return this.client.request("/v1/autoscout24/listing", { params });
4644
+ }
4641
4645
  /** List markets. Generated from the OpenAPI spec; returns the raw response object. */
4642
4646
  async listMarkets(params = {}) {
4643
4647
  return this.client.request("/v1/autoscout24/markets", { params });
@@ -8598,6 +8602,22 @@ var YandexClient = class {
8598
8602
  }
8599
8603
  };
8600
8604
 
8605
+ // src/yelp/client.ts
8606
+ var YelpClient = class {
8607
+ client;
8608
+ constructor(client) {
8609
+ this.client = client;
8610
+ }
8611
+ /** List markets. Generated from the OpenAPI spec; returns the raw response object. */
8612
+ async listMarkets(params = {}) {
8613
+ return this.client.request("/v1/yelp/markets", { params });
8614
+ }
8615
+ /** Search businesses. Generated from the OpenAPI spec; returns the raw response object. */
8616
+ async searchBusinesses(params = {}) {
8617
+ return this.client.request("/v1/yelp/search", { params });
8618
+ }
8619
+ };
8620
+
8601
8621
  // src/youtube/search.ts
8602
8622
  var SearchClient15 = class {
8603
8623
  client;
@@ -10689,6 +10709,15 @@ var GithubClient = class {
10689
10709
  constructor(client) {
10690
10710
  this.client = client;
10691
10711
  }
10712
+ /** Get public default-branch repository detail without query options. */
10713
+ async getRepository(owner, repo) {
10714
+ if ([owner, repo].some((value) => value === "." || value === "..")) {
10715
+ throw new TypeError("owner and repo must not be dot path segments");
10716
+ }
10717
+ return this.client.request(
10718
+ `/v1/github/repositories/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`
10719
+ );
10720
+ }
10692
10721
  /** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
10693
10722
  async getProfile(username, params = {}) {
10694
10723
  return this.client.request(`/v1/github/profiles/${username}`, { params });
@@ -10698,6 +10727,11 @@ var GithubClient = class {
10698
10727
  // src/client.ts
10699
10728
  var ScrapeBadger = class {
10700
10729
  baseClient;
10730
+ /** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
10731
+ async endpoints() {
10732
+ const result = await this.baseClient.request("/api/public/endpoint-catalog");
10733
+ return result.endpoints;
10734
+ }
10701
10735
  /** Twitter API client */
10702
10736
  twitter;
10703
10737
  /** Web scraping API client */
@@ -10774,6 +10808,8 @@ var ScrapeBadger = class {
10774
10808
  yahoo;
10775
10809
  /** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
10776
10810
  yandex;
10811
+ /** Yelp API client. (Generated from the OpenAPI spec.) */
10812
+ yelp;
10777
10813
  /** YouTube scraper API client — 39 endpoints */
10778
10814
  youtube;
10779
10815
  /** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
@@ -10874,6 +10910,7 @@ var ScrapeBadger = class {
10874
10910
  this.naver = new NaverClient(this.baseClient);
10875
10911
  this.yahoo = new YahooClient(this.baseClient);
10876
10912
  this.yandex = new YandexClient(this.baseClient);
10913
+ this.yelp = new YelpClient(this.baseClient);
10877
10914
  this.youtube = new YoutubeClient(this.baseClient);
10878
10915
  this.realtor = new RealtorClient(this.baseClient);
10879
10916
  this.leboncoin = new LeboncoinClient(this.baseClient);