Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Google Trends

APIドキュメント
https://api.sandbase.ai/v1/api/google/trends

Get Google Trends data for up to five keywords: interest over time, interest by region, related topics and related queries, by country, time range and category.

料金
$0.01USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 11 件

プレイグラウンド

入力
Parameter defines the query or queries you want to search. You can use anything that you would use in a regular Google Trends search. The maximum number of queries per search is `5` (this only applies to "Interest over time" and "Compared breakdown by region" `data_type`, other types of data will only accept `1` query per search). When passing multiple queries you need to use a comma (`,`) to separate them (e.g. `coffee,pizza,dark chocolate,/m/027lnzs,bread`). Query can be a "Search term" (e.g. `World Cup`, `Eminem`, `iPhone`, etc.) or a "Topic" (e.g. `/m/0663v`, `/m/027lnzs`, `/g/11mw8j71m4`,
Parameter defines the type of search you want to do. Available options: `TIMESERIES` - Interest over time (default) - Accepts both single and multiple queries per search. `GEO_MAP` - Compared breakdown by region - Accepts only multiple queries per search. `GEO_MAP_0` - Interest by region - Accepts only single query per search. `RELATED_TOPICS` - Related topics - Accepts only single query per search. `RELATED_QUERIES` - Related queries - Accepts only single query per search.
Parameter defines the language to use for the Google Trends search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish). Head to the Google languages page for a full list of supported Google languages.
Parameter defines the location from where you want the search to originate. It defaults to `Worldwide` (activated when the value of `geo` parameter is not set or empty). Head to the Google Trends Locations for a full list of supported Google Trends locations. You can also set a different location for each query by separating values with a comma (`,`), following the order of the queries in `q`. Example for a single location (applied to every query): `US` Example for a location per query (separated by comma `,`): `US,GB` for `q`: `coffee,tea` (`coffee` in the United States, `tea` in the United K
Parameter is used for getting more specific results when using "Compared breakdown by region" and "Interest by region" `data_type` charts. Other `data_type` charts do not accept `region` parameter. The default value depends on the `geo` location that is set. Available options: `COUNTRY` - Country `REGION` - Subregion `DMA` - Metro `CITY` - City Not all `region` options will return results for every `geo` location.
Parameter is used to define a time zone offset. The default value is set to `420` (Pacific Day Time(PDT): -07:00). Value is shown in minutes and can span from `-1439` to `1439`. `tz` can be calculated using the time difference between UTC +0 and desired timezone. Examples: `420` - PDT `600` - Pacific/Tahiti `-540` - Asia/Tokyo `-480` - Canada/Pacific. To make sure the value is correct, please refer to the time zone database and your programming language UTC offset calculation. You may visit the documentation to get more information.
Parameter is used to define a search category. The default value is 0 (All categories). You can find or download all supported values in the Google Trends Categories list. Note that these are different from the categories supported for Google Trends Trending Now
Parameter is used for sorting results by property. The default property is set to `Web Search` (activated when the value of `gprop` parameter is not set or empty). Other available options: `images` - Image Search `news` - News Search `froogle` - Google Shopping `youtube` - YouTube Search
Parameter is used to define a date. Available options: `now 1-H` - Past hour `now 4-H` - Past 4 hours `now 1-d` - Past day `now 7-d` - Past 7 days `today 1-m` - Past 30 days `today 3-m` - Past 90 days `today 12-m` - Past 12 months `today 5-y` - Past 5 years `all` - 2004 - present You can also pass custom values: Dates from 2004 to present: `yyyy-mm-dd yyyy-mm-dd` (e.g. `2021-10-15 2022-05-25`) Dates with hours within a week range: `yyyy-mm-ddThh yyyy-mm-ddThh` (e.g. `2022-05-19T10 2022-05-24T22`). Hours will be calculated depending on the `tz` (time zone) parameter. You can also set a differen
Parameter is used for retrieving the CSV results. Set the parameter to `true` to retrieve CSV results as an array.
Parameter is used for including low search volume regions in the results. Set the parameter to `true` to include low search volume regions in the results. This parameter is ignored if `data_type` is not set to `GEO_MAP` or `GEO_MAP_0`.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Google Trends

Get Google Trends data for up to five keywords: interest over time, interest by region, related topics and related queries, by country, time range and category.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/trends" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "coffee,tea", "data_type": "TIMESERIES"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
qstringYesParameter defines the query or queries you want to search. You can use anything that you would use in a regular Google Trends search. The maximum number of queries per search is 5 (this only applies to "Interest over time" and "Compared b
data_typestringNoParameter defines the type of search you want to do. Available options: TIMESERIES - Interest over time (default) - Accepts both single and multiple queries per search. GEO_MAP - Compared breakdown by region - Accepts only multiple quer
hlstringNoParameter defines the language to use for the Google Trends search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally followed by a two-letter or three-digit region code (e.
geostringNoParameter defines the location from where you want the search to originate. It defaults to Worldwide (activated when the value of geo parameter is not set or empty). Head to the Google Trends Locations for a full list of supported Googl
regionstringNoParameter is used for getting more specific results when using "Compared breakdown by region" and "Interest by region" data_type charts. Other data_type charts do not accept region parameter. The default value depends on the geo loc
tzstringNoParameter is used to define a time zone offset. The default value is set to 420 (Pacific Day Time(PDT): -07:00). Value is shown in minutes and can span from -1439 to 1439. tz can be calculated using the time difference between UTC +
catstringNoParameter is used to define a search category. The default value is 0 (All categories). You can find or download all supported values in the Google Trends Categories list. Note that these are different from the categories supported for Goog
gpropstringNoParameter is used for sorting results by property. The default property is set to Web Search (activated when the value of gprop parameter is not set or empty). Other available options: images - Image Search news - News Search `froog
datestringNoParameter is used to define a date. Available options: now 1-H - Past hour now 4-H - Past 4 hours now 1-d - Past day now 7-d - Past 7 days today 1-m - Past 30 days today 3-m - Past 90 days today 12-m - Past 12 months `today 5-
csvstringNoParameter is used for retrieving the CSV results. Set the parameter to true to retrieve CSV results as an array.
include_low_search_volumestringNoParameter is used for including low search volume regions in the results. Set the parameter to true to include low search volume regions in the results. This parameter is ignored if data_type is not set to GEO_MAP or GEO_MAP_0.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Google Trendsこの API
Google
$0.01 / 回JSON
Google$0.01 / 回JSON
Google$0.015 / 回JSON
Google1回あたり $0.002 からJSON
Google1回あたり $0.0015 からJSON
Google$0.01 / 回JSON

ガイド:Best Google API in 2026: Pricing Compared

質問

FAQ

Google Trends API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/google/trends に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Google Trends API の料金はいくらですか?

1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Google Trends API はどのパラメータを受け付けますか?

必須: q (string)。 任意: data_type (string), hl (string), geo (string), region (string), tz (string) と cat (string) と他 5 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Google Trends API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。

Google の開発者アカウントまたは API key は必要ですか?

いいえ。Google Trends は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Google の API アクセスを別途申請する必要はありません。