AI エージェントに任せる
このプロンプトを Claude Code、Cursor、Codex などのコーディングエージェントに貼り付けてください。ドキュメントの場所と API キーの使い方をエージェントに伝えます。
Use the Lovely Router data tool "Google マップの場所を検索" (id `google-maps-places`, Google Maps) to get data for me. It returns JSON.
- Docs (read first): https://lovelyrouter.com/docs/tools/run.md and https://lovelyrouter.com/docs/api/tools.md
- Input fields and price: GET https://lovelyrouter.com/v1/tools/google-maps-places (public, no key needed). Price: $0.000238 / place + $0.00075 / call.
- Run: POST https://lovelyrouter.com/v1/tools/google-maps-places/run with a body like `{"input":{"searchTerms":["coffee shop"],"location":"Austin, Texas, USA","maxResults":10,"language":"en"},"max_results":10}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up (up to 200 per run).
- If you support MCP, you can instead connect the server https://lovelyrouter.com/mcp (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool with tool "google-maps-places".
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <describe the data you need, e.g. which places, profiles, keywords or URLs, and the output format>入力
searchTermsstring[]Optional. Multiple search terms to run and merge into one deduplicated result set (e.g. ['restaurants', 'cafe', 'fast food', 'food']). Each term surfaces different places, so this greatly increases coverage for broad categories. When provided, it replaces the single Search Query. Max Results covers all terms together.
locationstringCity, address or area; the search covers about `radius` km around it.
radiusnumberKilometres around the location (default 20).
maxResultsintegerUpper limit on search results. Fewer valid places can be available. Set to 0 for no limit. A nearby search returns about 60 places at most for each search term. Place ID lookups return one place for each ID, and company lookups use Max Results Per Company.
languagestringLanguage code for results (e.g. 'en', 'ja', 'de', 'fr', 'es', 'zh'). Affects place names, descriptions, and reviews.
minRatingnumberOnly return places with at least this average rating. Allowed values: 2.0, 2.5, 3.0, 3.5, 4.0, 4.5.
openNowbooleanOnly return places that are currently open.
試す
コードから呼び出す
実行・ポーリング・課金の仕組み →curl https://lovelyrouter.com/v1/tools/google-maps-places/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{"input":{"searchTerms":["coffee shop"],"location":"Austin, Texas, USA","maxResults":10,"language":"en"},"max_results":10}'# MCP (agents): suggest_tools → get_tool → run_tool
run_tool({
"tool": "google-maps-places",
"input": {"searchTerms":["coffee shop"],"location":"Austin, Texas, USA","maxResults":10,"language":"en"},
"max_results": 10
})料金の目安
| 結果 | 実行回数(1 回あたり最大 200 件) | 原価 |
|---|---|---|
| 100 | 1 | $0.025 |
| 1,000 | 5 | $0.242 |
| 10,000 | 50 | $2.42 |
プリペイド、サブスクリプションなし。結果が要求より少なければ料金も下がります。 料金
用途
よくある質問
Google マップの場所を検索 API の料金はいくらですか?
$0.000238 / place + $0.00075 / call。1 回最大 200 件で 1,000 件取得すると $0.242 です。サブスクリプションはなく、プリペイド残高から支払います。
これはGoogle マップ スクレイパーですか?
はい。Google マップ スクレイパー、Google マップ スクレイピング、Google マップ データ抽出をお探しなら、これです:キーワードと地域で Google マップ上の店舗・事業者を検索:名前、住所、電話番号、Web サイト、評価、レビュー数、営業時間、座標。
1 回の実行で何件の結果が返りますか?
既定は 10 件、1 回あたり最大 200 件。max_results で上限を設定でき、届いた結果の分だけ課金されます。
Google Maps のアカウントや API キーは必要ですか?
不要です。Lovely Router の API キーでツールを呼び出すと JSON が返ります。Google Maps 側の設定は何もいりません。
AI エージェントはこのツールを使えますか?
はい。Claude Code・Cursor などの MCP クライアントを Lovely Router の MCP サーバーにつなぐと、エージェントが suggest_tools でこのツールを見つけ、run_tool と ID google-maps-places で実行します。
実行が失敗するとどうなりますか?
失敗または停止した実行は、届いた結果の分だけを支払い、呼び出し料金はかかりません。実行開始時に最大費用を確保し、精算時に残りを解放します。