A previous release had provenance metadata, but this release does not. View details.
ScrapeBadger CLI
Google Light Search uses the dedicated /v1/google/light/search endpoint:
scrapebadger google light-search "vinted api" --gl us --hl en
Light returns organic results and related searches for 10 credits per successful
uncached request. Regular scrapebadger google search costs 20 credits and
returns the full SERP. Cache hits and failed requests are free.
Command-line access to ScrapeBadger APIs, including Etsy, AliExpress, Target, ASOS, Best Buy, search engines, social media and general web scraping.
Install
pip install scrapebadger-cli
# or: uv tool install scrapebadger-cli
The installed command is scrapebadger. To run without installing:
uvx --from scrapebadger-cli scrapebadger --help
Quick Start
scrapebadger login # approve in the browser; or: scrapebadger login --api-key sb_live_...
scrapebadger twitter user elonmusk
scrapebadger twitter search "AI agents" --output table
scrapebadger vinted search "nike shoes" --market de
scrapebadger web scrape https://example.com --js
Getting a key and setting up agents (0.24.0+)
scrapebadger init # detect Claude Code / Codex / Cursor; install skill + MCP
scrapebadger init --yes --all # same, without prompts
scrapebadger login # device flow: open the link, approve, key is saved
scrapebadger trial # 50 free credits without an account (one per network, 7 days)
scrapebadger connect # print the link that attaches a trial key to an account
init installs the ScrapeBadger skill (SKILL.md and references/endpoints.md)
into ~/.claude/skills/scrapebadger and ~/.codex/skills/scrapebadger, registers
the hosted MCP server (claude mcp add --scope user ..., codex mcp add ..., or a
merge into ~/.cursor/mcp.json that keeps your other servers), and offers login
or trial when no key is configured. Cursor has no on-disk global rules location,
so it gets the MCP server only.
trial solves a short proof of work, saves the key and prints a notice to pass on
to your human. A trial key works only from the IP that created it, on read APIs,
at 10 requests/min, and not through the hosted MCP server. It refuses to replace an
account key unless you pass --force.
Saved results and free re-reads
Every API command also writes its full JSON response to
~/.cache/scrapebadger/results/<api>-<command>-<UTC timestamp>.json (honours
XDG_CACHE_HOME; the newest 200 are kept) and prints one line to stderr:
saved: ~/.cache/scrapebadger/results/google-search-20261023T101500123456Z.json · credits: 20 · result_id: 6f1c...
stdout is unchanged. Disable with scrapebadger --no-save ... or SCRAPEBADGER_SAVE=0.
Re-slice a saved result locally, for free:
scrapebadger view --summary # newest result: types, list lengths, byte sizes
scrapebadger view --last google --max-items 5 --fields title,link
scrapebadger view path/to/result.json --jq '.organic_results[].link' # needs jq on PATH
--fields (dotted paths) and --max-items apply to the main item list (the
top-level array, else the largest top-level list); truncation adds
"_truncated": {"path", "kept", "total"}.
Re-read a result from the server within ~15 minutes, free, sliced server-side:
scrapebadger results get <result_id> --max-items 3 --fields id,text
Quotes, bug reports and feedback (all free)
scrapebadger quote /v1/google/search -p q="coffee" -p gl=us # cost, validation, latency
scrapebadger quote /v1/web/scrape --method POST --body '{"url": "https://example.com"}'
scrapebadger report-bug "Empty results for a public profile" --request-id <X-Request-ID> --endpoint /v1/instagram/users/x
scrapebadger feedback "Please add Pinterest" --details "..."
Error messages include the request_id to quote in a bug report, and the
upgrade or claim link when you are out of credits.
Environment
| Variable | Default | Purpose |
|---|---|---|
SCRAPEBADGER_API_KEY |
API key (wins over .env and ~/.config/scrapebadger/config.json) |
|
SCRAPEBADGER_API_URL |
https://scrapebadger.com |
API base URL, e.g. a local stack |
SCRAPEBADGER_SITE_URL |
https://scrapebadger.com |
Where init downloads the skill from |
SCRAPEBADGER_MCP_URL |
https://mcp.scrapebadger.com/mcp |
MCP server init registers |
SCRAPEBADGER_SAVE |
1 |
0 disables saving results |
Vinted mobile data (0.14.0+)
scrapebadger vinted mobile-operations
scrapebadger vinted mobile sold-comparables --market fr --params '{"catalog_id":"1242","brand_id":"53","status_id":"2"}'
scrapebadger vinted search "nike" --sizes 206 --materials 43
The catalog lists 76 public read operations with parameter types and examples. Each mobile read costs 1 credit; discovery is free. Sold comparables are a Vinted-selected sample, not a complete sales history or guaranteed final sale prices.
Vinted image search
scrapebadger vinted search-by-image --image photo.jpg --market nl --price-to 50
scrapebadger vinted search-by-image --image-url https://example.com/photo.webp --brand-ids 53
Provide exactly one of --image, --image-url or --image-base64. JPEG, PNG and
WebP up to 5 MiB are supported. Returns active listings in visual ranking order;
10 credits per successful request. Filter with --catalog-ids, --brand-ids,
--status-ids, --color-ids, --size-ids, --material-ids and price bounds.
Resend the same image and --time from pagination when requesting --page 2.
Dedicated ecommerce APIs
scrapebadger etsy search "ceramic mug" --currency USD --country US
scrapebadger aliexpress search "keyboard"
scrapebadger target search "laptop" --zip-code 55403 --store-id 1375
scrapebadger asos search "shoes" --market uk
scrapebadger bestbuy search "laptop"
Run scrapebadger <api> --help to list product, review, store, availability and
reference commands for that API. Each command supports --help for its exact
parameters. Requests use your API key's existing permissions and credit balance.
GitHub public profiles
Prepared for the GitHub API rollout. Use a login or @handle, not a URL.
All modes cost 10 credits per successful request. --year is overview-only,
--page repositories-only, and --next-page-token stars-only (users only).
scrapebadger github profile sindresorhus --year 2024
scrapebadger github profile rails --tab repositories --page 2
scrapebadger github profile sindresorhus --tab stars --next-page-token OPAQUE_TOKEN
These examples are representative; see https://docs.scrapebadger.com/github/profiles.
AutoScout24 vehicle search
Search vehicle cards across eight European marketplaces. Listing detail is not included.
scrapebadger autoscout24 search --market de --make volkswagen --model golf --price-max 20000
scrapebadger autoscout24 search --market it --make volkswagen --model golf --sort-by price_asc --page 2
scrapebadger autoscout24 filters --market de --make volkswagen
scrapebadger autoscout24 markets
Ranges use --price-min/--price-max (EUR), --mileage-min/--mileage-max (km),
--year-min/--year-max (first registration) and --power-min/--power-max (kW).
Use --help for fuel, transmission, body, seller, condition and postcode/radius filters.
Follow the response's next_page; the source caps browsing at 200 pages per query.
Brave Search
scrapebadger brave search "coffee machine" --country de --ui-language de-de --freshness week
scrapebadger brave images "golden retriever" --count 10
scrapebadger brave videos "espresso tutorial" --page 2
scrapebadger brave news "technology" --count 10
scrapebadger brave autocomplete "coff"
scrapebadger brave locales
Web/video --page is a 1-based native page ordinal; --count trims one source
page without changing its boundaries. Images/news return an initial batch.
JSON output preserves the complete response, including rich blocks and native
query alteration metadata. Use brave locales for country/UI-language codes.
Metadata
Release files for scrapebadger-cli 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrapebadger_cli-0.28.0.tar.gz | 106.8 kB | Without provenance | Details for scrapebadger_cli-0.28.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapebadger_cli-0.28.0-py3-none-any.whl | Python 3 | none | any | Details for scrapebadger_cli-0.28.0-py3-none-any.whl |
Total release size: 218.7 kB
Release files / scrapebadger_cli-0.28.0.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | scrapebadger_cli-0.28.0.tar.gz |
|---|---|
| Size | 106.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60bbb9e40e23fd35491dabc58339f8bff9cd20ee52d478909415295a09ad4729
|
|
BLAKE2b-256 checksum How to use checksums |
4419004c7a2549a91211e4c432b9f256bc8cc0d7cbda6e5d78bdc5787c686a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / scrapebadger_cli-0.28.0-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | scrapebadger_cli-0.28.0-py3-none-any.whl |
|---|---|
| Size | 112.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d856130f6d0f5620f5cd2ef881f1ae93e86245dce90938e11f0a16aac2ef8165
|
|
BLAKE2b-256 checksum How to use checksums |
8b7cd27b9bd25cb042ba1f948bea560c5a903086cb889585c078362cde8b6854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for scrapebadger-cli 0.28.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.27.0 2 files With provenance
- Added 0.28.0 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.