scrapebadger 0.13.1 → 0.14.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/dist/index.mjs CHANGED
@@ -2525,6 +2525,19 @@ var SearchClient = class {
2525
2525
  * });
2526
2526
  * console.log(`Found ${results.pagination.total_entries} items`);
2527
2527
  * ```
2528
+ *
2529
+ * @example
2530
+ * ```typescript
2531
+ * // Filter results to sellers physically located in France or Belgium.
2532
+ * // Billing: 1 base credit + 1 credit per uncached seller looked up.
2533
+ * const local = await client.vinted.search.search({
2534
+ * query: "vintage jacket",
2535
+ * seller_country: "fr,be",
2536
+ * });
2537
+ * for (const item of local.items) {
2538
+ * console.log(`${item.title} — seller in ${item.seller_country_code}`);
2539
+ * }
2540
+ * ```
2528
2541
  */
2529
2542
  async search(params) {
2530
2543
  return this.client.request("/v1/vinted/search", {
@@ -2538,7 +2551,8 @@ var SearchClient = class {
2538
2551
  brand_ids: params.brand_ids,
2539
2552
  color_ids: params.color_ids,
2540
2553
  status_ids: params.status_ids,
2541
- order: params.order
2554
+ order: params.order,
2555
+ seller_country: params.seller_country
2542
2556
  }
2543
2557
  });
2544
2558
  }