Skip to main content

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.

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 repository detail

Use owner and repository name separately, not a URL. Repository detail uses the public default branch and accepts no pagination, market or ref options.

scrapebadger github repository cli cli

A successful uncached detail response costs 10 credits. Errors are unbilled; cache hits can be free. The raw JSON retains README, root files, latest commit, metadata and additive fields. Reference: https://docs.scrapebadger.com/github/repositories.

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 and listing detail

Search vehicle cards across eight European marketplaces, then retrieve full specifications, equipment, photos and public seller contacts.

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 listing --url SEARCH_RESULT_URL
scrapebadger autoscout24 listing --listing-id UUID --market it
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. Listing detail accepts exactly one URL or UUID and costs 10 credits. A URL infers its market; a UUID defaults to Germany unless --market is supplied. Failed requests and removed listings are free.

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.

scrapebadger yelp search "San Francisco, CA" -q pizza
scrapebadger yelp search "Chicago, IL" --category coffee --sort-by rating --price 1,2 --page 2
scrapebadger yelp search "Austin, TX" -q tacos --features delivery,takeout
scrapebadger yelp markets

Results are ranked as on Yelp, ten businesses per page, pages 1–11; ads come back separately under ads. JSON output keeps totals, filters and next_page. Business detail and reviews are not included.

Metadata

Release files for scrapebadger-cli 0.30.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapebadger-cli 0.30.0
File Size Uploaded Provenance Actions
scrapebadger_cli-0.30.0.tar.gz 110.8 kB With provenance Details for scrapebadger_cli-0.30.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapebadger-cli 0.30.0
File Interpreter ABI Platform Actions
scrapebadger_cli-0.30.0-py3-none-any.whl Python 3 none any Details for scrapebadger_cli-0.30.0-py3-none-any.whl

Total release size: 226.1 kB

Release files / scrapebadger_cli-0.30.0.tar.gz

Download URL scrapebadger_cli-0.30.0.tar.gz
Size 110.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f97da56bb3c777f1f2481e2c1ba70a6a925497130e3dcda704bb7c86a476b0be
BLAKE2b-256 checksum
How to use checksums
3c8e52c792bdff8a0d998a8d39eabd880a7fadadbd5e9cc2bbac0836bae20338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / scrapebadger_cli-0.30.0-py3-none-any.whl

Download URL scrapebadger_cli-0.30.0-py3-none-any.whl
Size 115.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17b58103ce2592e34865d5cb9ff39e74f224c93f4f96062c444c6bb4779d6863
BLAKE2b-256 checksum
How to use checksums
e502c9da26d2162f246291d337aa6dc3a9cc725dab0de426c1f7a0f427b03058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for scrapebadger-cli 0.30.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scrapebadger_cli-0.30.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.30.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page