Title: reviews() accepts numOfReviews and never sends it, so a capped call bills every review · Issue #62 · brightdata/sdk-python · GitHub
Open Graph Title: reviews() accepts numOfReviews and never sends it, so a capped call bills every review · Issue #62 · brightdata/sdk-python
X Title: reviews() accepts numOfReviews and never sends it, so a capped call bills every review · Issue #62 · brightdata/sdk-python
Description: Summary AmazonScraper.reviews() accepts numOfReviews, pastDays and keyWord, then never sends them. A caller who writes reviews(url, numOfReviews=20) believes they asked for 20 reviews, and is billed for every review the product has. Revi...
Open Graph Description: Summary AmazonScraper.reviews() accepts numOfReviews, pastDays and keyWord, then never sends them. A caller who writes reviews(url, numOfReviews=20) believes they asked for 20 reviews, and is bille...
X Description: Summary AmazonScraper.reviews() accepts numOfReviews, pastDays and keyWord, then never sends them. A caller who writes reviews(url, numOfReviews=20) believes they asked for 20 reviews, and is bille...
Opengraph URL: https://github.com/brightdata/sdk-python/issues/62
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"reviews() accepts numOfReviews and never sends it, so a capped call bills every review","articleBody":"### Summary\n\n`AmazonScraper.reviews()` accepts `numOfReviews`, `pastDays` and `keyWord`, then never sends them. A caller who writes `reviews(url, numOfReviews=20)` believes they asked for 20 reviews, and is billed for every review the product has.\n\nReviews bill one credit each, so a silently ignored cap is a billing bug, not a cosmetic one.\n\n### Environment\n\n- `brightdata-sdk` 2.5.2 (latest on PyPI)\n- Python 3.12.13\n- Verified 21 Sep 2026, by reading the installed source\n\n### The parameters are accepted and never used\n\nSignature:\n\n```\nreviews(self, url, pastDays=None, keyWord=None, numOfReviews=None, timeout=240)\n```\n\nBody, in full up to the request:\n\n```python\n# Build payload - Amazon Reviews dataset only accepts URL\n# Note: pastDays, keyWord, numOfReviews are not supported by the API\nurl_list = [url] if isinstance(url, str) else url\npayload = [{\"url\": u} for u in url_list]\n\nresult = await self.workflow_executor.execute(\n payload=payload,\n dataset_id=self.DATASET_ID_REVIEWS,\n ...\n)\n```\n\nWith comments stripped, each of `numOfReviews`, `pastDays` and `keyWord` appears **0 times** in the executable body. The payload is built from `url` alone.\n\n### The comment is wrong: the API does support a cap\n\n`GET https://api.brightdata.com/datasets/v3/scrapers?domain=amazon.com` lists the reviews scraper's `collect_by_url` inputs as:\n\n```\nurl, reviews_to_not_include, max_reviews, variation_specific\n```\n\nand Bright Data's own `sample_input` for that scraper is:\n\n```json\n[{\"url\": \"https://www.amazon.com/RORSOU-R10-Headphones-Microphone-Lightweight/dp/B094NC89P9/\",\n \"reviews_to_not_include\": [], \"max_reviews\": 20, \"variation_specific\": ...}]\n```\n\nSo the cap exists. The SDK names it `numOfReviews`, does not map it to `max_reviews`, and does not send it.\n\n### What it costs\n\n`B0CRMZHDG8` reports `reviews_count: 205036`. `reviews(\"https://www.amazon.com/dp/B0CRMZHDG8\", numOfReviews=20)` sends `{\"url\": ...}` with no cap.\n\nI have not run that call to demonstrate it, because it would bill for all 205,036 reviews. The source above is enough to show what gets sent.\n\n### Compared with the JavaScript SDK\n\nThe JavaScript SDK has the same gap but fails loudly: its reviews filter rejects `max_reviews` with `Unrecognized key`, so the caller knows the cap did not apply (brightdata/sdk-js#37). Here the parameter is accepted without complaint, so the caller has no signal until the bill arrives.\n\n### Expected\n\nSend `numOfReviews` as `max_reviews`. If `pastDays` and `keyWord` have no API equivalent, raise when they are passed, rather than accepting and dropping them.\n\n### Also in this method\n\nThe list-input branch pairs results with URLs by position (`zip(url_list, result.data)`) and marks every result `success=True`, the same defect as #60.\n","author":{"url":"https://github.com/anil-bd","@type":"Person","name":"anil-bd"},"datePublished":"2026-09-21T04:45:55Z","url":"https://github.com/brightdata/sdk-python/issues/62"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:252bbd08-46d3-dcea-3a0e-5def64f7a6c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE40:1C0F0F:29DB724:3676921:6B040EBB |
| html-safe-nonce | 47924446d3c63369118438d9b6a8d2f725f0b68fff5fa38454b8fa1ce80706e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTQwOjFDMEYwRjoyOURCNzI0OjM2NzY5MjE6NkIwNDBFQkIiLCJ2aXNpdG9yX2lkIjoiNjA1NzI2NzM0MjY4MjM5NTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0387c4071f398fac8aa4aa665308f0a851e3eea911cc21301312558864b91c8a |
| hovercard-subject-tag | issue:5522861957 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/brightdata/sdk-python/62/issue_layout |
| twitter:image | https://opengraph.githubassets.com/619644867de2f0dfd6ad0a00d20723af95b91f7d2a9fdc79301ae60d263268da/brightdata/sdk-python/issues/62 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/619644867de2f0dfd6ad0a00d20723af95b91f7d2a9fdc79301ae60d263268da/brightdata/sdk-python/issues/62 |
| og:image:alt | Summary AmazonScraper.reviews() accepts numOfReviews, pastDays and keyWord, then never sends them. A caller who writes reviews(url, numOfReviews=20) believes they asked for 20 reviews, and is bille... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anil-bd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/brightdata/sdk-python git https://github.com/brightdata/sdk-python.git |
| octolytics-dimension-user_id | 213028976 |
| octolytics-dimension-user_login | brightdata |
| octolytics-dimension-repository_id | 1033685757 |
| octolytics-dimension-repository_nwo | brightdata/sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1033685757 |
| octolytics-dimension-repository_network_root_nwo | brightdata/sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width