オプション
家 Skill API開発 brightdata-cli

brightdata-cli

brightdata/skills brightdata/skills

Bright Data CLI(`brightdata` / `bdata`)を使用して、ウェブサイトのスクレイピング、ウェブ検索、40以上のプラットフォームからの構造化データの抽出、プロキシゾーンの管理、およびアカウントの残高確認を行うためのガイドです。 ユーザーがURLのスクレイピング、Google/Bing/Yandexでの検索、Amazon/LinkedIn/Instagram/TikTok/YouTube/Redditなどのプラットフォームからのデータ抽出、Bright Dataの残高やゾーンの確認、あるいはターミナルからのウェブデータ収集に関連する操作を行いたい場合は、いつでもこのスキルをご利用ください。また、ユーザーが以下に言及した際にもトリガーされます。

...すべて拡張します
76
更新された時間 2026年6月29日

概要brightdata-cli

Bright Data CLIは、Bright DataのWebデータプラットフォームへターミナルから直接アクセスできるコマンドラインツールです。認証、プロキシ管理、ボット対策の回避、CAPTCHAの解決、JavaScriptのレンダリングを自動的に処理することで、Webスクレイピングの複雑さを解消します。 ユーザーはOAuth経由で一度ログインするだけで、その後のすべての操作をCLIがシームレスに処理するため、手動での設定やAPIキーの管理は不要です。

このツールを使用すると、任意のURLを複数の形式(Markdown、HTML、JSON、スクリーンショット)でスクレイピングしたり、Google、Bing、Yandexでのウェブ検索を構造化された結果とともに実行したり、Amazon、LinkedIn、Instagram、TikTok、YouTube、Redditなど40以上のプラットフォームからデータを抽出したりすることができます。 このCLIは、同期および非同期の操作、特定の国を対象とした地域限定スクレイピングをサポートしており、予算確認やプロキシゾーンの設定といったアカウント管理機能も提供します。すべての操作は、「bdata scrape」や「bdata search」といったシンプルなコマンドで実行できます。

このツールは、インフラのオーバーヘッドを伴わずに信頼性の高いウェブデータ収集を必要とする開発者、データアナリスト、研究者のために設計されています。 競合情報の収集、コンテンツのモニタリング、SEO分析、トレーニングデータの収集など、どのような用途であっても、Bright Data CLIは技術的な複雑さを処理しつつ、直感的なコマンドインターフェースを提供します。macOS、Linux、Windowsで動作し、必要なのはNode.js 20+のみです。また、npxを使用すれば、インストール不要で単発のタスクを実行することも可能です。

よくある質問

Bright Data CLI で認証を行うにはどうすればよいですか?

ブラウザで OAuth 経由の認証を行うには、「bdata login」を一度実行してください。これにより、認証情報がローカルに保存され、必要なプロキシゾーンが自動的に設定されます。ヘッドレス環境の場合は、「bdata login --device」または「bdata login --api-key 」を使用して、非対話型の認証を行ってください。

どのプラットフォームからデータを抽出できますか?

CLIは、Amazon、LinkedIn、Instagram、TikTok、YouTube、Redditなど、40以上のプラットフォームからパイプラインを通じて構造化データの抽出をサポートしています。「bdata pipelines list」を実行すると、利用可能なすべてのプラットフォームタイプを確認できます。

スクレイピングではどのような出力形式がサポートされていますか?

スクレイピングでは、マークダウン(デフォルト)、HTML、構造化データ用のJSON、スクリーンショット画像など、複数の形式がサポートされています。形式は -f フラグで指定します(例: 'bdata scrape -f html' または 'bdata scrape -f screenshot -o image.png')。

プロキシの管理やCAPTCHAの処理を自分で行う必要がありますか?

いいえ。CLIは、プロキシの管理、ボット対策の回避、CAPTCHAの解決、JavaScriptのレンダリングを自動的に処理します。最初の「bdata login」を実行すれば、技術的な複雑さはすべて抽象化されます。

特定の地理的場所からスクレイピングすることはできますか?

はい。--country フラグを使用して、地域をターゲットにしたスクレイピングを指定できます。例えば、米国の IP アドレスからスクレイピングするには、「bdata scrape https://amazon.com --country us」と実行します。

GitHubで見る

Bright Data CLI

The Bright Data CLI (brightdata or bdata) gives you full access to Bright Data's web data platform from the terminal. It handles authentication, proxy zones, anti-bot bypass, CAPTCHA solving, and JavaScript rendering automatically — the user just needs to log in once.

Installation

If the CLI is not installed yet, guide the user:

macOS / Linux:

curl -fsSL https://cli.brightdata.com/install.sh | bash

Windows or manual install (any platform):

npm install -g @brightdata/cli

Without installing (one-off usage):

npx --yes --package @brightdata/cli brightdata <command>

Requires Node.js >= 20. After install, both brightdata and bdata (shorthand) are available.

First-Time Setup

Before anything else, check if the user is authenticated. If they haven't logged in yet, guide them through the one-time setup:

# One-time login — opens the browser for OAuth, then everything is automaticbdata login

This single command:

  1. Opens the browser for secure OAuth authentication
  2. Saves the API key locally (never needs to be entered again)
  3. Auto-creates required proxy zones (cli_unlocker, cli_browser)
  4. Sets default configuration

After login, every subsequent command works without any manual intervention.

For headless/SSH environments where no browser is available:

bdata login --device

For direct API key authentication (non-interactive):

bdata login --api-key <key>

To verify setup is complete, run:

bdata config

Command Reference

Read references/commands.md for the full command reference with all flags, options, and examples for every command.

Read references/pipelines.md for the complete list of 40+ pipeline types (Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit, and more) with their specific parameters.

Quick Command Overview

bdata is the shorthand for brightdata. Both work identically.

CommandPurpose
bdata scrape <url>Scrape any URL as markdown, HTML, JSON, or screenshot
bdata search "<query>"Search Google/Bing/Yandex with structured results
bdata pipelines <type> [params]Extract structured data from 40+ platforms
bdata pipelines listList all 40+ available pipeline types
bdata status <job-id>Check async job status
bdata zonesList proxy zones
bdata budgetView account balance and costs
bdata skill addInstall AI agent skills
bdata skill listList available skills
bdata configView/set configuration
bdata loginAuthenticate with Bright Data
bdata versionShow CLI version and system info

How to Use Each Command

Scraping

Scrape any URL with automatic bot bypass, CAPTCHA handling, and JS rendering:

# Default: returns clean markdownbdata scrape https://example.com# Get raw HTMLbdata scrape https://example.com -f html# Get structured JSONbdata scrape https://example.com -f json# Take a screenshotbdata scrape https://example.com -f screenshot -o page.png# Geo-targeted scrape from the USbdata scrape https://amazon.com --country us# Save to filebdata scrape https://example.com -o page.md# Async mode for heavy pagesbdata scrape https://example.com --async

Searching

Search engines with structured JSON output (Google returns parsed organic results, ads, People Also Ask, and related searches):

# Google search with formatted tablebdata search "web scraping best practices"# Get raw JSON for pipingbdata search "typescript tutorials" --json# Search Bingbdata search "bright data pricing" --engine bing# Localized searchbdata search "restaurants berlin" --country de --language de# News searchbdata search "AI regulation" --type news# Extract just URLsbdata search "open source tools" --json | jq -r '.organic[].link'

Pipelines (Structured Data Extraction)

Extract structured data from 40+ platforms. These trigger async jobs that poll until results are ready:

# LinkedIn profilebdata pipelines linkedin_person_profile "https://linkedin.com/in/username"# Amazon productbdata pipelines amazon_product "https://amazon.com/dp/B09V3KXJPB"# Instagram profilebdata pipelines instagram_profiles "https://instagram.com/username"# Amazon searchbdata pipelines amazon_product_search "laptop" "https://amazon.com"# YouTube comments (top 50)bdata pipelines youtube_comments "https://youtube.com/watch?v=..." 50# Google Maps reviews (last 7 days)bdata pipelines google_maps_reviews "https://maps.google.com/..." 7# Output as CSVbdata pipelines amazon_product "https://amazon.com/dp/..." --format csv -o product.csv# List all available pipeline typesbdata pipelines list

Checking Status

For async jobs (from --async scrapes or pipelines):

# Quick status checkbdata status <job-id># Wait until completebdata status <job-id> --wait# With custom timeoutbdata status <job-id> --wait --timeout 300

Budget & Zones

# Quick account balancebdata budget# Detailed balance with pending chargesbdata budget balance# All zones cost/bandwidthbdata budget zones# Specific zone costsbdata budget zone my_zone# Date range filterbdata budget zones --from 2024-01-01T00:00:00 --to 2024-02-01T00:00:00# List all zonesbdata zones# Zone detailsbdata zones info cli_unlocker

Configuration

# View all configbdata config# Set defaultsbdata config set default_zone_unlocker my_zonebdata config set default_format json

Installing AI Agent Skills

# Interactive picker — choose skills and target agentsbdata skill add# Install a specific skillbdata skill add scrape# List available skillsbdata skill list

Output Modes

Every command supports multiple output formats:

FlagEffect
(none)Human-readable formatted output with colors
--jsonCompact JSON to stdout
--prettyIndented JSON to stdout
-o <path>Write to file (format auto-detected from extension)

When piped (stdout is not a TTY), colors and spinners are automatically disabled.

Chaining Commands

The CLI is pipe-friendly:

# Search → extract first URL → scrape itbdata search "top open source projects" --json \  | jq -r '.organic[0].link' \  | xargs bdata scrape# Scrape and view with markdown readerbdata scrape https://docs.github.com | glow -# Amazon product data to CSVbdata pipelines amazon_product "https://amazon.com/dp/xxx" --format csv > product.csv

Environment Variables

These override stored configuration:

VariablePurpose
BRIGHTDATA_API_KEYAPI key (skips login entirely)
BRIGHTDATA_UNLOCKER_ZONEDefault Web Unlocker zone
BRIGHTDATA_SERP_ZONEDefault SERP zone
BRIGHTDATA_POLLING_TIMEOUTPolling timeout in seconds

Troubleshooting

ErrorFix
CLI not foundInstall with npm i -g @brightdata/cli or curl -fsSL https://cli.brightdata.com/install.sh | bash
"No Web Unlocker zone specified"bdata config set default_zone_unlocker <zone> or re-run bdata login
"Invalid or expired API key"bdata login
"Access denied"Check zone permissions in the Bright Data control panel
"Rate limit exceeded"Wait and retry, or use --async for large jobs
Async job timeoutIncrease with --timeout 1200 or BRIGHTDATA_POLLING_TIMEOUT=1200

Key Design Principles

  • One-time auth: After bdata login, everything is automatic. No tokens to manage, no keys to pass.
  • Zones auto-created: Login creates cli_unlocker and cli_browser zones automatically.
  • Smart defaults: Markdown output, auto-detected formats from file extensions, colors only in TTY.
  • Pipe-friendly: JSON output + jq for automation. Colors/spinners disabled in pipes.
  • Async support: Heavy jobs can run in background with --async + status --wait.
  • npm package: @brightdata/cli — install globally or use via npx.

すべてのファイル

3件のファイル

brightdata-cliをインストール

スキルファイルをダウンロードし、.claude/skills/ ディレクトリに解凍してください。

ZIPをダウンロード

リポジトリをクローンし、スキルファイルをプロジェクトにコピーしてください。

git clone https://github.com/brightdata/skills/blob/main/skills/brightdata-cli/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

コピー コピー
クイックセットアップ: skill フォルダを .claude/skills/ にコピーしてください。Claude が自動的にスキルを検出して使用します。
リポジトリ brightdata/skills

関連スキル

humanize
更新された時間 2026年7月7日
agentwallet
更新された時間 2026年7月7日
korean-stock-search
更新された時間 2026年7月8日
trello
更新された時間 2026年7月1日
OR