ウェブ抽出利用可能
User-Agent Generator
user_agent_type と user_agent_count(1–5)でデスクトップまたはモバイル UA を生成します。ローカル処理でもカタログ料金が適用されます。
- エンドポイント
- POST https://api.serpbase.dev/web/user-agent
- 料金
- 1 クレジット
- 認証
- X-API-Key
課金されるのは成功したリクエストだけです。各エンドポイントのクレジット価格は固定(多くは 1 か 2)で、失敗したリクエストのクレジットは自動で戻ります。 課金 →
例
cURL
curl -X POST 'https://api.serpbase.dev/web/user-agent' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"user_agent_count":1,"user_agent_type":"desktop"}'レスポンス · 実データ・抜粋
{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "web_user_agent",
"action": "user_agent",
"source": "web",
"user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0"
]
}よくある質問
User-Agent Generator API の料金は?
1 リクエストあたり 1 クレジットです。クレジットはプリペイドパックまたは月額プランで購入でき、新規アカウントには無料クレジットが付きます。
User-Agent Generator API の呼び出し方は?
https://api.serpbase.dev/web/user-agent に POST リクエストを送り、X-API-Key ヘッダーに API キーを指定します。応答は JSON で、status(0 は成功)を確認してください。
対応デバイスは?
対応デバイス:desktop。既定値は desktop です。
User-Agent Generator API は今すぐ使えますか?
はい。有効な API キーで呼び出せます。