GET/api/v1/history?google_product_id=6883422599141817139&marketplace=us
Authorization: Bearer pb_••••••••
200 OKapplication/json
{"google_product_id": "6883422599141817139","marketplace": "us","currency": "USD","lowest_price": 74.5,"highest_price": 99.99,"average_price": 86.12,"history": [{ "price": 79.99, … }, …]}
PriceBell がアプリでできることは、スクリプトでもできます。国を指定して Google Shopping を検索し、結果を追跡し、目標価格を設定し、履歴を読む。始めるには 3 回の呼び出しで十分です。
1. 国を指定して検索する
ドイツの Google Shopping で AirPods Pro 2 を検索
curl "https://www.pricebell.dev/api/v1/search?query=airpods+pro+2&marketplace=de" \
-H "Authorization: Bearer $PRICEBELL_API_KEY" \
| jq '.results[] | {google_product_id, title, price, currency}'検索は 1 時間あたりの上限内で無料です。各結果には google_product_id があり、これが追跡に使うコードです。
2. 結果を追跡する
目標価格を付けて追跡
curl -X POST "https://www.pricebell.dev/api/v1/products" \
-H "Authorization: Bearer $PRICEBELL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product": "6883422599141817139", "marketplace": "de", "target_price": 180, "wait": true}'最初のチェックはすぐに行われます(1 クレジット)。その後は商品ごとの頻度(初期設定は毎日)でチェックされ、アプリで設定したものと同じようにアラートが届きます。
ヘッドホンの過去 3 か月の最安値はいくら?
AI アシスタントpricebell · get_google_product_history
10月24日 の $74.50 が 3 か月の最安値です。今日は $79.99 です。
3. 履歴を読む
GET /api/v1/products/{id} は、期間中に読み取ったすべての価格を古い順に含めて商品を返します。同じリストはアプリにも表示されるので、スクリプトと人で共有できます。
詳しいリファレンスは API ドキュメントにあります。Google Shopping 価格 API のページもご覧ください。