DataForSEO — Keywords Data / Google Trends / Explore / Live
Retrieve keywords Data Google Trends Explore Live with the DataForSEO API. The sample response includes keywords. Use it for search visibility research or technical SEO.
- Selected price
- $0.011 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
DataForSEO — Keywords Data / Google Trends / Explore / Live
Prepare your request, then continue with your agent.
Pricing
$0.011 / call
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
costnumberstatus_codeintegerstatus_messagestringtasksobject[]costnumberdataobjectapistringdate_fromstringdate_tostringfunctionstringkeywordsstring[]location_namestringsestring
idstringpathstring[]resultobject[]check_urlstringdatetimestringitemsobject[]averagesunknown[]dataobject[] | objectdate_fromstringdate_tostringtimestampintegervalues(integer | null)[]geo_idstringgeo_namestringmax_value_indexinteger
risingobject[]topic_idstringtopic_titlestringtopic_typestringvalueinteger
topobject[]topic_idstringtopic_titlestringtopic_typestringvalueinteger
keywordsstring[]positionintegertitlestringtypestring
items_countintegerkeywordsstring[]language_codestringlocation_codeintegertypestring
result_countintegerstatus_codeintegerstatus_messagestringtimestring
tasks_countintegertasks_errorintegertimestringversionstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cost?: number;
status_code?: number;
status_message?: string;
tasks?: Array<{
cost?: number;
data?: {
api?: string;
date_from?: string;
date_to?: string;
function?: string;
keywords?: Array<string>;
location_name?: string;
se?: string;
};
id?: string;
path?: Array<string>;
result?: Array<{
check_url?: string;
datetime?: string;
items?: Array<{
averages?: Array<unknown>;
data?: Array<{
date_from?: string;
date_to?: string;
timestamp?: number;
values?: Array<number | null>;
geo_id?: string;
geo_name?: string;
max_value_index?: number;
}> | {
rising?: Array<{
topic_id?: string;
topic_title?: string;
topic_type?: string;
value?: number;
}>;
top?: Array<{
topic_id?: string;
topic_title?: string;
topic_type?: string;
value?: number;
}>;
};
keywords?: Array<string>;
position?: number;
title?: string;
type?: string;
}>;
items_count?: number;
keywords?: Array<string>;
language_code?: string;
location_code?: number;
type?: string;
}>;
result_count?: number;
status_code?: number;
status_message?: string;
time?: string;
}>;
tasks_count?: number;
tasks_error?: number;
time?: string;
version?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — Keywords Data / Google Trends / Explore / Live · POST · View API reference | $0.011 / call | — | —successP50— |
- Pricing
- $0.011
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"keywords": [
"seo api"
],
"location_name": "United States"
}
]'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | This endpoint will provide you with the keyword popularity data from the ‘Explore’ feature of Google Trends. You can check keyword trends for Google Search, Google News, Google Images, Google Shopping, and YouTube. minItems: 1 · maxItems: 1 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"cost": 0.009,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.009,
"data": {
"api": "keywords_data",
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"function": "explore",
"keywords": [
"seo api"
],
"location_name": "United States",
"se": "google_trends"
},
"id": "03251342-0696-0173-0000-2606a1224cde",
"path": [
"v3",
"keywords_data",
"google_trends",
"explore",
"live"
],
"result": [
{
"check_url": "https://trends.google.com/trends/explore?hl=en-US&geo=US&date=2019-01-01%202020-01-01&q=seo%20api",
"datetime": "2020-03-25 11:42:37 +00:00",
"items": [
{
"averages": [],
"data": [
{
"date_from": "2019-01-06",
"date_to": "2019-01-12",
"timestamp": 1546732800,
"values": [
46
]
},
{
"date_from": "2019-01-13",
"date_to": "2019-01-19",
"timestamp": 1547337600,
"values": [
60
]
},
{
"date_from": "2019-01-20",
"date_to": "2019-01-26",
"timestamp": 1547942400,
"values": [
45
]
},
{
"date_from": "2019-01-27",
"date_to": "2019-02-02",
"timestamp": 1548547200,
"values": [
59
]
},
{
"date_from": "2019-02-03",
"date_to": "2019-02-09",
"timestamp": 1549152000,
"values": [
38
]
},
{
"date_from": "2019-02-10",
"date_to": "2019-02-16",
"timestamp": 1549756800,
"values": [
74
]
},
{
"date_from": "2019-02-17",
"date_to": "2019-02-23",
"timestamp": 1550361600,
"values": [
69
]
},
{
"date_from": "2019-02-24",
"date_to": "2019-03-02",
"timestamp": 1550966400,
"values": [
87
]
},
{
"date_from": "2019-03-03",
"date_to": "2019-03-09",
"timestamp": 1551571200,
"values": [
75
]
},
{
"date_from": "2019-03-10",
"date_to": "2019-03-16",
"timestamp": 1552176000,
"values": [
50
]
},
{
"date_from": "2019-03-17",
"date_to": "2019-03-23",
"timestamp": 1552780800,
"values": [
41
]
},
{
"date_from": "2019-03-24",
"date_to": "2019-03-30",
"timestamp": 1553385600,
"values": [
30
]
},
{
"date_from": "2019-03-31",
"date_to": "2019-04-06",
"timestamp": 1553990400,
"values": [
60
]
},
{
"date_from": "2019-04-07",
"date_to": "2019-04-13",
"timestamp": 1554595200,
"values": [
61
]
},
{
"date_from": "2019-04-14",
"date_to": "2019-04-20",
"timestamp": 1555200000,
"values": [
52
]
},
{
"date_from": "2019-04-21",
"date_to": "2019-04-27",
"timestamp": 1555804800,
"values": [
78
]
},
{
"date_from": "2019-04-28",
"date_to": "2019-05-04",
"timestamp": 1556409600,
"values": [
51
]
},
{
"date_from": "2019-05-05",
"date_to": "2019-05-11",
"timestamp": 1557014400,
"values": [
61
]
},
{
"date_from": "2019-05-12",
"date_to": "2019-05-18",
"timestamp": 1557619200,
"values": [
null
]
},
{
"date_from": "2019-05-19",
"date_to": "2019-05-25",
"timestamp": 1558224000,
"values": [
31
]
},
{
"date_from": "2019-05-26",
"date_to": "2019-06-01",
"timestamp": 1558828800,
"values": [
74
]
},
{
"date_from": "2019-06-02",
"date_to": "2019-06-08",
"timestamp": 1559433600,
"values": [
77
]
},
{
"date_from": "2019-06-09",
"date_to": "2019-06-15",
"timestamp": 1560038400,
"values": [
42
]
},
{
"date_from": "2019-06-16",
"date_to": "2019-06-22",
"timestamp": 1560643200,
"values": [
63
]
},
{
"date_from": "2019-06-23",
"date_to": "2019-06-29",
"timestamp": 1561248000,
"values": [
96
]
},
{
"date_from": "2019-06-30",
"date_to": "2019-07-06",
"timestamp": 1561852800,
"values": [
32
]
},
{
"date_from": "2019-07-07",
"date_to": "2019-07-13",
"timestamp": 1562457600,
"values": [
83
]
},
{
"date_from": "2019-07-14",
"date_to": "2019-07-20",
"timestamp": 1563062400,
"values": [
63
]
},
{
"date_from": "2019-07-21",
"date_to": "2019-07-27",
"timestamp": 1563667200,
"values": [
64
]
},
{
"date_from": "2019-07-28",
"date_to": "2019-08-03",
"timestamp": 1564272000,
"values": [
64
]
},
{
"date_from": "2019-08-04",
"date_to": "2019-08-10",
"timestamp": 1564876800,
"values": [
47
]
},
{
"date_from": "2019-08-11",
"date_to": "2019-08-17",
"timestamp": 1565481600,
"values": [
62
]
},
{
"date_from": "2019-08-18",
"date_to": "2019-08-24",
"timestamp": 1566086400,
"values": [
91
]
},
{
"date_from": "2019-08-25",
"date_to": "2019-08-31",
"timestamp": 1566691200,
"values": [
49
]
},
{
"date_from": "2019-09-01",
"date_to": "2019-09-07",
"timestamp": 1567296000,
"values": [
29
]
},
{
"date_from": "2019-09-08",
"date_to": "2019-09-14",
"timestamp": 1567900800,
"values": [
43
]
},
{
"date_from": "2019-09-15",
"date_to": "2019-09-21",
"timestamp": 1568505600,
"values": [
28
]
},
{
"date_from": "2019-09-22",
"date_to": "2019-09-28",
"timestamp": 1569110400,
"values": [
57
]
},
{
"date_from": "2019-09-29",
"date_to": "2019-10-05",
"timestamp": 1569715200,
"values": [
100
]
},
{
"date_from": "2019-10-06",
"date_to": "2019-10-12",
"timestamp": 1570320000,
"values": [
72
]
},
{
"date_from": "2019-10-13",
"date_to": "2019-10-19",
"timestamp": 1570924800,
"values": [
57
]
},
{
"date_from": "2019-10-20",
"date_to": "2019-10-26",
"timestamp": 1571529600,
"values": [
85
]
},
{
"date_from": "2019-10-27",
"date_to": "2019-11-02",
"timestamp": 1572134400,
"values": [
43
]
},
{
"date_from": "2019-11-03",
"date_to": "2019-11-09",
"timestamp": 1572739200,
"values": [
71
]
},
{
"date_from": "2019-11-10",
"date_to": "2019-11-16",
"timestamp": 1573344000,
"values": [
55
]
},
{
"date_from": "2019-11-17",
"date_to": "2019-11-23",
"timestamp": 1573948800,
"values": [
56
]
},
{
"date_from": "2019-11-24",
"date_to": "2019-11-30",
"timestamp": 1574553600,
"values": [
49
]
},
{
"date_from": "2019-12-01",
"date_to": "2019-12-07",
"timestamp": 1575158400,
"values": [
27
]
},
{
"date_from": "2019-12-08",
"date_to": "2019-12-14",
"timestamp": 1575763200,
"values": [
56
]
},
{
"date_from": "2019-12-15",
"date_to": "2019-12-21",
"timestamp": 1576368000,
"values": [
29
]
},
{
"date_from": "2019-12-22",
"date_to": "2019-12-28",
"timestamp": 1576972800,
"values": [
48
]
},
{
"date_from": "2019-12-29",
"date_to": "2020-01-01",
"timestamp": 1577577600,
"values": [
79
]
}
],
"keywords": [
"seo api"
],
"position": 1,
"title": "Interest over time",
"type": "google_trends_graph"
},
{
"data": [
{
"geo_id": "US-NY",
"geo_name": "New York",
"max_value_index": 0,
"values": [
100
]
},
{
"geo_id": "US-OR",
"geo_name": "Oregon",
"max_value_index": 0,
"values": [
55
]
},
{
"geo_id": "US-CA",
"geo_name": "California",
"max_value_index": 0,
"values": [
52
]
},
{
"geo_id": "US-MT",
"geo_name": "Montana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-DC",
"geo_name": "District of Columbia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-HI",
"geo_name": "Hawaii",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-LA",
"geo_name": "Louisiana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MS",
"geo_name": "Mississippi",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-KS",
"geo_name": "Kansas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IN",
"geo_name": "Indiana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NV",
"geo_name": "Nevada",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-UT",
"geo_name": "Utah",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-OK",
"geo_name": "Oklahoma",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NC",
"geo_name": "North Carolina",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AZ",
"geo_name": "Arizona",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-CO",
"geo_name": "Colorado",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-VA",
"geo_name": "Virginia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-CT",
"geo_name": "Connecticut",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NJ",
"geo_name": "New Jersey",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-TN",
"geo_name": "Tennessee",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WA",
"geo_name": "Washington",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MA",
"geo_name": "Massachusetts",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-PA",
"geo_name": "Pennsylvania",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MN",
"geo_name": "Minnesota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MO",
"geo_name": "Missouri",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IL",
"geo_name": "Illinois",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MI",
"geo_name": "Michigan",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-GA",
"geo_name": "Georgia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-FL",
"geo_name": "Florida",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-TX",
"geo_name": "Texas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-OH",
"geo_name": "Ohio",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AK",
"geo_name": "Alaska",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AL",
"geo_name": "Alabama",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AR",
"geo_name": "Arkansas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-DE",
"geo_name": "Delaware",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IA",
"geo_name": "Iowa",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ID",
"geo_name": "Idaho",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-KY",
"geo_name": "Kentucky",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MD",
"geo_name": "Maryland",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ME",
"geo_name": "Maine",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ND",
"geo_name": "North Dakota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NE",
"geo_name": "Nebraska",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NH",
"geo_name": "New Hampshire",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NM",
"geo_name": "New Mexico",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-RI",
"geo_name": "Rhode Island",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-SC",
"geo_name": "South Carolina",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-SD",
"geo_name": "South Dakota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-VT",
"geo_name": "Vermont",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WI",
"geo_name": "Wisconsin",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WV",
"geo_name": "West Virginia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WY",
"geo_name": "Wyoming",
"max_value_index": 0,
"values": [
null
]
}
],
"keywords": [
"seo api"
],
"position": 2,
"title": "Interest by subregion",
"type": "google_trends_map"
},
{
"data": {
"rising": [
{
"topic_id": "/m/055t58",
"topic_title": "Google Maps",
"topic_type": "Website",
"value": 290050
},
{
"topic_id": "/m/02vtpl",
"topic_title": "WordPress",
"topic_type": "Downloadable software",
"value": 145000
},
{
"topic_id": "/g/11f4hw5686",
"topic_title": "SEMrush",
"topic_type": "Company",
"value": 144950
},
{
"topic_id": "/m/012l1vxv",
"topic_title": "React",
"topic_type": "Topic",
"value": 125700
},
{
"topic_id": "/m/026sq",
"topic_title": "Data",
"topic_type": "Topic",
"value": 100
},
{
"topic_id": "/m/07k1x",
"topic_title": "Tool",
"topic_type": "Topic",
"value": 70
},
{
"topic_id": "/m/02mz1d",
"topic_title": "Review",
"topic_type": "Topic",
"value": 60
},
{
"topic_id": "/m/085n4",
"topic_title": "Website",
"topic_type": "Topic",
"value": 40
}
],
"top": [
{
"topic_id": "/m/019qb_",
"topic_title": "Search Engine Optimization",
"topic_type": "Topic",
"value": 100
},
{
"topic_id": "/m/0z5n",
"topic_title": "Application programming interface",
"topic_type": "Kind of software",
"value": 100
},
{
"topic_id": "/m/085n4",
"topic_title": "Website",
"topic_type": "Topic",
"value": 21
},
{
"topic_id": "/m/07k1x",
"topic_title": "Tool",
"topic_type": "Topic",
"value": 15
},
{
"topic_id": "/m/055t58",
"topic_title": "Google Maps",
"topic_type": "Website",
"value": 13
},
{
"topic_id": "/m/026sq",
"topic_title": "Data",
"topic_type": "Topic",
"value": 12
},
{
"topic_id": "/m/02mz1d",
"topic_title": "Review",
"topic_type": "Topic",
"value": 9
},
{
"topic_id": "/g/120y8l81",
"topic_title": "Business",
"topic_type": "Organization type",
"value": 9
},
{
"topic_id": "/g/11c5m28d6z",
"topic_title": "Yoast SEO",
"topic_type": "Topic",
"value": 7
},
{
"topic_id": "/m/05s_jbn",
"topic_title": "Application programming interface key",
"topic_type": "Topic",
"value": 7
},
{
"topic_id": "/m/03nsxd",
"topic_title": "Representational state transfer",
"topic_type": "Kind of software",
"value": 7
},
{
"topic_id": "/m/02vtpl",
"topic_title": "WordPress",
"topic_type": "Downloadable software",
"value": 7
},
{
"topic_id": "/g/11f4hw5686",
"topic_title": "SEMrush",
"topic_type": "Company",
"value": 7
},
{
"topic_id": "/m/018j6p",
"topic_title": "Software Developer",
"topic_type": "Occupation",
"value": 7
},
{
"topic_id": "/m/0g4gr",
"topic_title": "Marketing",
"topic_type": "Field of study",
"value": 6
},
{
"topic_id": "/m/02p97",
"topic_title": "JavaScript",
"topic_type": "Programming language",
"value": 6
},
{
"topic_id": "/m/012l1vxv",
"topic_title": "React",
"topic_type": "Topic",
"value": 6
},
{
"topic_id": "/m/0fr1w6",
"topic_title": "Index term",
"topic_type": "Topic",
"value": 6
}
]
},
"keywords": [
"seo api"
],
"position": 3,
"title": "Related topics",
"type": "google_trends_topics_list"
},
{
"data": {
"rising": [],
"top": []
},
"keywords": [
"seo api"
],
"position": 4,
"title": "Related queries",
"type": "google_trends_queries_list"
}
],
"items_count": 4,
"keywords": [
"seo api"
],
"language_code": "en-US",
"location_code": 2840,
"type": "trends"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "26.8670 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "26.9462 sec.",
"version": "0.1.20200324"
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.011000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| 任务错误数必须为零 | $0.000000 / billing unit | Response · /tasks_error · Numeric value | Always | 0 billing unit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.011000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# DataForSEO — Keywords Data / Google Trends / Explore / Live
Retrieve keywords Data Google Trends Explore Live with the DataForSEO API. The sample response includes keywords. Use it for search visibility research or technical SEO.
## Available implementations
DataForSEO · DataForSEO — Keywords Data / Google Trends / Explore / Live: https://openany.si/markets/apis/capabilities/dataforseo-keywords-data-google-trends-explore-live?offering=5d895814-f848-48f6-9b46-e6c0180217b3 · $0.011 / call
## Selected API contract
Documentation: https://openany.si/apis/5d895814-f848-48f6-9b46-e6c0180217b3
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live
Price: $0.011 / call
Provider: DataForSEO
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"keywords": [
"seo api"
],
"location_name": "United States"
}
]'
```
## API contract
```json
{
"resource_type": "api",
"name": "DataForSEO — Keywords Data / Google Trends / Explore / Live",
"endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "This endpoint will provide you with the keyword popularity data from the ‘Explore’ feature of Google Trends. You can check keyword trends for Google Search, Google News, Google Images, Google Shopping, and YouTube.",
"json_schema": {
"example": [
{
"category_code": 3,
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"keywords": [
"rugby",
"cricket"
],
"location_name": "United States",
"type": "youtube"
}
],
"items": {
"example": [
{
"category_code": 3,
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"keywords": [
"rugby",
"cricket"
],
"location_name": "United States",
"type": "youtube"
}
],
"nullable": true,
"properties": {
"category_code": {
"description": "google trends search category required field if you don't specify keywords if you don't specify keywords, the value of this field must be greater than 0 if you specify keywords and don't specify this field, the 0 value will be applied by default and the search will be carried out across all available categories you can receive the list of available categories with their category_code by making a separate request to the https://api.dataforseo.com/v3/keywords_data/google_trends/categories",
"type": "integer",
"x-original-openapi-description": "google trends search category required field if you don't specify `keywords` if you don't specify `keywords`, the value of this field must be greater than `0` if you specify `keywords` and don't specify this field, the 0 value will be applied by default and the search will be carried out across all available categories you can receive the list of available categories with their category_code by making a separate request to the https://api.dataforseo.com/v3/keywords_data/google_trends/categories",
"x-required-status": "conditional"
},
"date_from": {
"description": "starting date of the time range optional field if you don't specify this field, the current day and month of the preceding year will be used by default minimal value for the web type: 2004-01-01 minimal value for other types: 2008-01-01 date format: \"yyyy-mm-dd\" example: \"2019-01-15\"",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"date_to": {
"description": "ending date of the time range optional field if you don't specify this field, the today's date will be used by default date format: \"yyyy-mm-dd\" example: \"2019-01-15\"",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"item_types": {
"description": "types of items returned optional field to speed up the execution of the request, specify one item at a time; possible values: \"google_trends_graph\", \"google_trends_map\", \"google_trends_topics_list\", \"google_trends_queries_list\" default value: \"google_trends_graph\" Note: to obtain google_trends_topics_list and google_trends_queries_list items, specify no more than 1 keyword in the keywords field",
"items": {
"type": "string"
},
"nullable": true,
"type": "array",
"x-original-openapi-description": "types of items returned optional field to speed up the execution of the request, specify one item at a time; possible values: \"google_trends_graph\" , \"google_trends_map\" , \"google_trends_topics_list\" , \"google_trends_queries_list\" default value: \"google_trends_graph\" Note: to obtain google_trends_topics_list and google_trends_queries_list items, specify no more than 1 keyword in the keywords field",
"x-required-status": "optional"
},
"keywords": {
"description": "keywords required field if you don't specify category_code the maximum number of keywords you can specify: 5 the maximum number of characters you can specify in a keyword: 100 the minimum number of characters must be greater than 1 comma characters ( ,) in the specified keywords will be unset and ignored Note: keywords cannot consist of a combination of the following characters: < > | \" - + = ~ ! : * ( ) [ ] { } Note: to obtain google_trends_topics_list and google_trends_queries_list items, specify no more than 1 keyword learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
"items": {
"type": "string"
},
"type": "array",
"x-original-openapi-description": "keywords required field if you don't specify `category_code` the maximum number of keywords you can specify: 5 the maximum number of characters you can specify in a keyword: 100 the minimum number of characters must be greater than 1 comma characters ( , ) in the specified keywords will be unset and ignored Note: keywords cannot consist of a combination of the following characters: < > | \" - + = ~ ! : * ( ) [ ] { } Note: to obtain google_trends_topics_list and google_trends_queries_list items, specify no more than 1 keyword learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
"x-required-status": "conditional"
},
"language_code": {
"description": "search engine language code optional field default value: en if you use this field, you don't need to specify language_name you can receive the list of available languages of the search engine with their language_code by making a separate request to https://api.dataforseo.com/v3/keywords_data/google_trends/languages example: en",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"language_name": {
"description": "full name of search engine language optional field default value: English if you use this field, you don't need to specify language_code you can receive the list of available languages of the search engine with their language_name by making a separate request to https://api.dataforseo.com/v3/keywords_data/google_trends/languages example: English",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"location_code": {
"description": "search engine location code optional field if you don't use this field, you will recieve global results if you use this field, you don't need to specify location_name you can use this field as an array to set several locations, each corresponding to a specific keyword - learn more; you can receive the list of available locations of the search engines with their location_code by making a separate request to https://api.dataforseo.com/v3/keywords_data/google_trends/locations example: 2840",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"location_name": {
"description": "full name of search engine location optional field if you don't use this field, you will recieve global results if you use this field, you don't need to specify location_code you can use this field as an array to set several locations, each corresponding to a specific keyword - learn more; you can receive the list of available locations of the search engine with their location_name by making a separate request to https://api.dataforseo.com/v3/keywords_data/google_trends/locations example: United Kingdom",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"tag": {
"description": "user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"time_range": {
"description": "preset time ranges optional field if you specify date_from or date_to parameters, this field will be ignored when setting a task possible values for all type parameters: past_hour, past_4_hours, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years possible values for web only: 2004_present possible values for news, youtube, images, froogle: 2008_present",
"nullable": true,
"type": "string",
"x-original-openapi-description": "preset time ranges optional field if you specify date_from or date_to parameters, this field will be ignored when setting a task possible values for all type parameters: past_hour , past_4_hours , past_day , past_7_days , past_30_days , past_90_days , past_12_months , past_5_years possible values for web only: 2004_present possible values for news , youtube , images , froogle : 2008_present",
"x-required-status": "optional"
},
"type": {
"description": "google trends type optional field if you don't specify this field, the web type will be used by default possible values: web, news, youtube, images, froogle",
"nullable": true,
"type": "string",
"x-original-openapi-description": "type of element",
"x-required-status": "optional"
}
},
"type": "object"
},
"maxItems": 1,
"minItems": 1,
"type": "array",
"x-openany-retail-scope": "single_native_task_per_sale_execution",
"x-openapi-version": "3.0.1",
"x-schema-origin": "official_openapi_with_local_refs_rebased"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "11000",
"max_cost_micro_usd": "11000",
"quantities": [
{
"id": "task_errors",
"label": "任务错误数必须为零",
"max_quantity": "0",
"measure": "value",
"pointer": "/tasks_error",
"price_micro_usd": "0",
"quantity_scale": 0,
"source": "response",
"unit": "task_error",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · 官方历史成对样例(未运行)",
"request": {
"body": [
{
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"keywords": [
"seo api"
],
"location_name": "United States"
}
],
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"cost": 0.009,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.009,
"data": {
"api": "keywords_data",
"date_from": "2019-01-01",
"date_to": "2020-01-01",
"function": "explore",
"keywords": [
"seo api"
],
"location_name": "United States",
"se": "google_trends"
},
"id": "03251342-0696-0173-0000-2606a1224cde",
"path": [
"v3",
"keywords_data",
"google_trends",
"explore",
"live"
],
"result": [
{
"check_url": "https://trends.google.com/trends/explore?hl=en-US&geo=US&date=2019-01-01%202020-01-01&q=seo%20api",
"datetime": "2020-03-25 11:42:37 +00:00",
"items": [
{
"averages": [],
"data": [
{
"date_from": "2019-01-06",
"date_to": "2019-01-12",
"timestamp": 1546732800,
"values": [
46
]
},
{
"date_from": "2019-01-13",
"date_to": "2019-01-19",
"timestamp": 1547337600,
"values": [
60
]
},
{
"date_from": "2019-01-20",
"date_to": "2019-01-26",
"timestamp": 1547942400,
"values": [
45
]
},
{
"date_from": "2019-01-27",
"date_to": "2019-02-02",
"timestamp": 1548547200,
"values": [
59
]
},
{
"date_from": "2019-02-03",
"date_to": "2019-02-09",
"timestamp": 1549152000,
"values": [
38
]
},
{
"date_from": "2019-02-10",
"date_to": "2019-02-16",
"timestamp": 1549756800,
"values": [
74
]
},
{
"date_from": "2019-02-17",
"date_to": "2019-02-23",
"timestamp": 1550361600,
"values": [
69
]
},
{
"date_from": "2019-02-24",
"date_to": "2019-03-02",
"timestamp": 1550966400,
"values": [
87
]
},
{
"date_from": "2019-03-03",
"date_to": "2019-03-09",
"timestamp": 1551571200,
"values": [
75
]
},
{
"date_from": "2019-03-10",
"date_to": "2019-03-16",
"timestamp": 1552176000,
"values": [
50
]
},
{
"date_from": "2019-03-17",
"date_to": "2019-03-23",
"timestamp": 1552780800,
"values": [
41
]
},
{
"date_from": "2019-03-24",
"date_to": "2019-03-30",
"timestamp": 1553385600,
"values": [
30
]
},
{
"date_from": "2019-03-31",
"date_to": "2019-04-06",
"timestamp": 1553990400,
"values": [
60
]
},
{
"date_from": "2019-04-07",
"date_to": "2019-04-13",
"timestamp": 1554595200,
"values": [
61
]
},
{
"date_from": "2019-04-14",
"date_to": "2019-04-20",
"timestamp": 1555200000,
"values": [
52
]
},
{
"date_from": "2019-04-21",
"date_to": "2019-04-27",
"timestamp": 1555804800,
"values": [
78
]
},
{
"date_from": "2019-04-28",
"date_to": "2019-05-04",
"timestamp": 1556409600,
"values": [
51
]
},
{
"date_from": "2019-05-05",
"date_to": "2019-05-11",
"timestamp": 1557014400,
"values": [
61
]
},
{
"date_from": "2019-05-12",
"date_to": "2019-05-18",
"timestamp": 1557619200,
"values": [
null
]
},
{
"date_from": "2019-05-19",
"date_to": "2019-05-25",
"timestamp": 1558224000,
"values": [
31
]
},
{
"date_from": "2019-05-26",
"date_to": "2019-06-01",
"timestamp": 1558828800,
"values": [
74
]
},
{
"date_from": "2019-06-02",
"date_to": "2019-06-08",
"timestamp": 1559433600,
"values": [
77
]
},
{
"date_from": "2019-06-09",
"date_to": "2019-06-15",
"timestamp": 1560038400,
"values": [
42
]
},
{
"date_from": "2019-06-16",
"date_to": "2019-06-22",
"timestamp": 1560643200,
"values": [
63
]
},
{
"date_from": "2019-06-23",
"date_to": "2019-06-29",
"timestamp": 1561248000,
"values": [
96
]
},
{
"date_from": "2019-06-30",
"date_to": "2019-07-06",
"timestamp": 1561852800,
"values": [
32
]
},
{
"date_from": "2019-07-07",
"date_to": "2019-07-13",
"timestamp": 1562457600,
"values": [
83
]
},
{
"date_from": "2019-07-14",
"date_to": "2019-07-20",
"timestamp": 1563062400,
"values": [
63
]
},
{
"date_from": "2019-07-21",
"date_to": "2019-07-27",
"timestamp": 1563667200,
"values": [
64
]
},
{
"date_from": "2019-07-28",
"date_to": "2019-08-03",
"timestamp": 1564272000,
"values": [
64
]
},
{
"date_from": "2019-08-04",
"date_to": "2019-08-10",
"timestamp": 1564876800,
"values": [
47
]
},
{
"date_from": "2019-08-11",
"date_to": "2019-08-17",
"timestamp": 1565481600,
"values": [
62
]
},
{
"date_from": "2019-08-18",
"date_to": "2019-08-24",
"timestamp": 1566086400,
"values": [
91
]
},
{
"date_from": "2019-08-25",
"date_to": "2019-08-31",
"timestamp": 1566691200,
"values": [
49
]
},
{
"date_from": "2019-09-01",
"date_to": "2019-09-07",
"timestamp": 1567296000,
"values": [
29
]
},
{
"date_from": "2019-09-08",
"date_to": "2019-09-14",
"timestamp": 1567900800,
"values": [
43
]
},
{
"date_from": "2019-09-15",
"date_to": "2019-09-21",
"timestamp": 1568505600,
"values": [
28
]
},
{
"date_from": "2019-09-22",
"date_to": "2019-09-28",
"timestamp": 1569110400,
"values": [
57
]
},
{
"date_from": "2019-09-29",
"date_to": "2019-10-05",
"timestamp": 1569715200,
"values": [
100
]
},
{
"date_from": "2019-10-06",
"date_to": "2019-10-12",
"timestamp": 1570320000,
"values": [
72
]
},
{
"date_from": "2019-10-13",
"date_to": "2019-10-19",
"timestamp": 1570924800,
"values": [
57
]
},
{
"date_from": "2019-10-20",
"date_to": "2019-10-26",
"timestamp": 1571529600,
"values": [
85
]
},
{
"date_from": "2019-10-27",
"date_to": "2019-11-02",
"timestamp": 1572134400,
"values": [
43
]
},
{
"date_from": "2019-11-03",
"date_to": "2019-11-09",
"timestamp": 1572739200,
"values": [
71
]
},
{
"date_from": "2019-11-10",
"date_to": "2019-11-16",
"timestamp": 1573344000,
"values": [
55
]
},
{
"date_from": "2019-11-17",
"date_to": "2019-11-23",
"timestamp": 1573948800,
"values": [
56
]
},
{
"date_from": "2019-11-24",
"date_to": "2019-11-30",
"timestamp": 1574553600,
"values": [
49
]
},
{
"date_from": "2019-12-01",
"date_to": "2019-12-07",
"timestamp": 1575158400,
"values": [
27
]
},
{
"date_from": "2019-12-08",
"date_to": "2019-12-14",
"timestamp": 1575763200,
"values": [
56
]
},
{
"date_from": "2019-12-15",
"date_to": "2019-12-21",
"timestamp": 1576368000,
"values": [
29
]
},
{
"date_from": "2019-12-22",
"date_to": "2019-12-28",
"timestamp": 1576972800,
"values": [
48
]
},
{
"date_from": "2019-12-29",
"date_to": "2020-01-01",
"timestamp": 1577577600,
"values": [
79
]
}
],
"keywords": [
"seo api"
],
"position": 1,
"title": "Interest over time",
"type": "google_trends_graph"
},
{
"data": [
{
"geo_id": "US-NY",
"geo_name": "New York",
"max_value_index": 0,
"values": [
100
]
},
{
"geo_id": "US-OR",
"geo_name": "Oregon",
"max_value_index": 0,
"values": [
55
]
},
{
"geo_id": "US-CA",
"geo_name": "California",
"max_value_index": 0,
"values": [
52
]
},
{
"geo_id": "US-MT",
"geo_name": "Montana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-DC",
"geo_name": "District of Columbia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-HI",
"geo_name": "Hawaii",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-LA",
"geo_name": "Louisiana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MS",
"geo_name": "Mississippi",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-KS",
"geo_name": "Kansas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IN",
"geo_name": "Indiana",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NV",
"geo_name": "Nevada",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-UT",
"geo_name": "Utah",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-OK",
"geo_name": "Oklahoma",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NC",
"geo_name": "North Carolina",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AZ",
"geo_name": "Arizona",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-CO",
"geo_name": "Colorado",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-VA",
"geo_name": "Virginia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-CT",
"geo_name": "Connecticut",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NJ",
"geo_name": "New Jersey",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-TN",
"geo_name": "Tennessee",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WA",
"geo_name": "Washington",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MA",
"geo_name": "Massachusetts",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-PA",
"geo_name": "Pennsylvania",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MN",
"geo_name": "Minnesota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MO",
"geo_name": "Missouri",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IL",
"geo_name": "Illinois",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MI",
"geo_name": "Michigan",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-GA",
"geo_name": "Georgia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-FL",
"geo_name": "Florida",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-TX",
"geo_name": "Texas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-OH",
"geo_name": "Ohio",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AK",
"geo_name": "Alaska",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AL",
"geo_name": "Alabama",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-AR",
"geo_name": "Arkansas",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-DE",
"geo_name": "Delaware",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-IA",
"geo_name": "Iowa",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ID",
"geo_name": "Idaho",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-KY",
"geo_name": "Kentucky",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-MD",
"geo_name": "Maryland",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ME",
"geo_name": "Maine",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-ND",
"geo_name": "North Dakota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NE",
"geo_name": "Nebraska",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NH",
"geo_name": "New Hampshire",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-NM",
"geo_name": "New Mexico",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-RI",
"geo_name": "Rhode Island",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-SC",
"geo_name": "South Carolina",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-SD",
"geo_name": "South Dakota",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-VT",
"geo_name": "Vermont",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WI",
"geo_name": "Wisconsin",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WV",
"geo_name": "West Virginia",
"max_value_index": 0,
"values": [
null
]
},
{
"geo_id": "US-WY",
"geo_name": "Wyoming",
"max_value_index": 0,
"values": [
null
]
}
],
"keywords": [
"seo api"
],
"position": 2,
"title": "Interest by subregion",
"type": "google_trends_map"
},
{
"data": {
"rising": [
{
"topic_id": "/m/055t58",
"topic_title": "Google Maps",
"topic_type": "Website",
"value": 290050
},
{
"topic_id": "/m/02vtpl",
"topic_title": "WordPress",
"topic_type": "Downloadable software",
"value": 145000
},
{
"topic_id": "/g/11f4hw5686",
"topic_title": "SEMrush",
"topic_type": "Company",
"value": 144950
},
{
"topic_id": "/m/012l1vxv",
"topic_title": "React",
"topic_type": "Topic",
"value": 125700
},
{
"topic_id": "/m/026sq",
"topic_title": "Data",
"topic_type": "Topic",
"value": 100
},
{
"topic_id": "/m/07k1x",
"topic_title": "Tool",
"topic_type": "Topic",
"value": 70
},
{
"topic_id": "/m/02mz1d",
"topic_title": "Review",
"topic_type": "Topic",
"value": 60
},
{
"topic_id": "/m/085n4",
"topic_title": "Website",
"topic_type": "Topic",
"value": 40
}
],
"top": [
{
"topic_id": "/m/019qb_",
"topic_title": "Search Engine Optimization",
"topic_type": "Topic",
"value": 100
},
{
"topic_id": "/m/0z5n",
"topic_title": "Application programming interface",
"topic_type": "Kind of software",
"value": 100
},
{
"topic_id": "/m/085n4",
"topic_title": "Website",
"topic_type": "Topic",
"value": 21
},
{
"topic_id": "/m/07k1x",
"topic_title": "Tool",
"topic_type": "Topic",
"value": 15
},
{
"topic_id": "/m/055t58",
"topic_title": "Google Maps",
"topic_type": "Website",
"value": 13
},
{
"topic_id": "/m/026sq",
"topic_title": "Data",
"topic_type": "Topic",
"value": 12
},
{
"topic_id": "/m/02mz1d",
"topic_title": "Review",
"topic_type": "Topic",
"value": 9
},
{
"topic_id": "/g/120y8l81",
"topic_title": "Business",
"topic_type": "Organization type",
"value": 9
},
{
"topic_id": "/g/11c5m28d6z",
"topic_title": "Yoast SEO",
"topic_type": "Topic",
"value": 7
},
{
"topic_id": "/m/05s_jbn",
"topic_title": "Application programming interface key",
"topic_type": "Topic",
"value": 7
},
{
"topic_id": "/m/03nsxd",
"topic_title": "Representational state transfer",
"topic_type": "Kind of software",
"value": 7
},
{
"topic_id": "/m/02vtpl",
"topic_title": "WordPress",
"topic_type": "Downloadable software",
"value": 7
},
{
"topic_id": "/g/11f4hw5686",
"topic_title": "SEMrush",
"topic_type": "Company",
"value": 7
},
{
"topic_id": "/m/018j6p",
"topic_title": "Software Developer",
"topic_type": "Occupation",
"value": 7
},
{
"topic_id": "/m/0g4gr",
"topic_title": "Marketing",
"topic_type": "Field of study",
"value": 6
},
{
"topic_id": "/m/02p97",
"topic_title": "JavaScript",
"topic_type": "Programming language",
"value": 6
},
{
"topic_id": "/m/012l1vxv",
"topic_title": "React",
"topic_type": "Topic",
"value": 6
},
{
"topic_id": "/m/0fr1w6",
"topic_title": "Index term",
"topic_type": "Topic",
"value": 6
}
]
},
"keywords": [
"seo api"
],
"position": 3,
"title": "Related topics",
"type": "google_trends_topics_list"
},
{
"data": {
"rising": [],
"top": []
},
"keywords": [
"seo api"
],
"position": 4,
"title": "Related queries",
"type": "google_trends_queries_list"
}
],
"items_count": 4,
"keywords": [
"seo api"
],
"language_code": "en-US",
"location_code": 2840,
"type": "trends"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "26.8670 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "26.9462 sec.",
"version": "0.1.20200324"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · 官方历史成对样例(未运行)
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- This endpoint will provide you with the keyword popularity data from the ‘Explore’ feature of Google Trends. You can check keyword trends for Google Search, Google News, Google Images, Google Shopping, and YouTube.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/google_trends/explore/live' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '[ { "date_from": "2019-01-01", "date_to": "2020-01-01", "keywords": [ "seo api" ], "location_name": "United States" } ]'Check the response
Sample response · Documented HTTP 200
Sample response{ "cost": 0.009, "status_code": 20000, "status_message": "Ok.", "tasks": [ { "cost": 0.009, "data": { "api": "keywords_data", "date_from": "2019-01-01", "date_to": "2020-01-01", "function": "explore", "keywords": [ "seo api" ], "location_name": "United States", "se": "google_trends" }, "id": "03251342-0696-0173-0000-2606a1224cde", "path": [ "v3", "keywords_data", "google_trends", "explore", "live" ], "result": [ { "check_url": "https://trends.google.com/trends/explore?hl=en-US&geo=US&date=2019-01-01%202020-01-01&q=seo%20api", "datetime": "2020-03-25 11:42:37 +00:00", "items": [ { "averages": [], "data": [ { "date_from": "2019-01-06", "date_to": "2019-01-12", "timestamp": 1546732800, "values": [ 46 ] }, { "date_from": "2019-01-13", "date_to": "2019-01-19", "timestamp": 1547337600, "values": [ 60 ] }, { "date_from": "2019-01-20", "date_to": "2019-01-26", "timestamp": 1547942400, "values": [ 45 ] }, { "date_from": "2019-01-27", "date_to": "2019-02-02", "timestamp": 1548547200, "values": [ 59 ] }, { "date_from": "2019-02-03", "date_to": "2019-02-09", "timestamp": 1549152000, "values": [ 38 ] }, { "date_from": "2019-02-10", "date_to": "2019-02-16", "timestamp": 1549756800, "values": [ 74 ] }, { "date_from": "2019-02-17", "date_to": "2019-02-23", "timestamp": 1550361600, "values": [ 69 ] }, { "date_from": "2019-02-24", "date_to": "2019-03-02", "timestamp": 1550966400, "values": [ 87 ] }, { "date_from": "2019-03-03", "date_to": "2019-03-09", "timestamp": 1551571200, "values": [ 75 ] }, { "date_from": "2019-03-10", "date_to": "2019-03-16", "timestamp": 1552176000, "values": [ 50 ] }, { "date_from": "2019-03-17", "date_to": "2019-03-23", "timestamp": 1552780800, "values": [ 41 ] }, { "date_from": "2019-03-24", "date_to": "2019-03-30", "timestamp": 1553385600, "values": [ 30 ] }, { "date_from": "2019-03-31", "date_to": "2019-04-06", "timestamp": 1553990400, "values": [ 60 ] }, { "date_from": "2019-04-07", "date_to": "2019-04-13", "timestamp": 1554595200, "values": [ 61 ] }, { "date_from": "2019-04-14", "date_to": "2019-04-20", "timestamp": 1555200000, "values": [ 52 ] }, { "date_from": "2019-04-21", "date_to": "2019-04-27", "timestamp": 1555804800, "values": [ 78 ] }, { "date_from": "2019-04-28", "date_to": "2019-05-04", "timestamp": 1556409600, "values": [ 51 ] }, { "date_from": "2019-05-05", "date_to": "2019-05-11", "timestamp": 1557014400, "values": [ 61 ] }, { "date_from": "2019-05-12", "date_to": "2019-05-18", "timestamp": 1557619200, "values": [ null ] }, { "date_from": "2019-05-19", "date_to": "2019-05-25", "timestamp": 1558224000, "values": [ 31 ] }, { "date_from": "2019-05-26", "date_to": "2019-06-01", "timestamp": 1558828800, "values": [ 74 ] }, { "date_from": "2019-06-02", "date_to": "2019-06-08", "timestamp": 1559433600, "values": [ 77 ] }, { "date_from": "2019-06-09", "date_to": "2019-06-15", "timestamp": 1560038400, "values": [ 42 ] }, { "date_from": "2019-06-16", "date_to": "2019-06-22", "timestamp": 1560643200, "values": [ 63 ] }, { "date_from": "2019-06-23", "date_to": "2019-06-29", "timestamp": 1561248000, "values": [ 96 ] }, { "date_from": "2019-06-30", "date_to": "2019-07-06", "timestamp": 1561852800, "values": [ 32 ] }, { "date_from": "2019-07-07", "date_to": "2019-07-13", "timestamp": 1562457600, "values": [ 83 ] }, { "date_from": "2019-07-14", "date_to": "2019-07-20", "timestamp": 1563062400, "values": [ 63 ] }, { "date_from": "2019-07-21", "date_to": "2019-07-27", "timestamp": 1563667200, "values": [ 64 ] }, { "date_from": "2019-07-28", "date_to": "2019-08-03", "timestamp": 1564272000, "values": [ 64 ] }, { "date_from": "2019-08-04", "date_to": "2019-08-10", "timestamp": 1564876800, "values": [ 47 ] }, { "date_from": "2019-08-11", "date_to": "2019-08-17", "timestamp": 1565481600, "values": [ 62 ] }, { "date_from": "2019-08-18", "date_to": "2019-08-24", "timestamp": 1566086400, "values": [ 91 ] }, { "date_from": "2019-08-25", "date_to": "2019-08-31", "timestamp": 1566691200, "values": [ 49 ] }, { "date_from": "2019-09-01", "date_to": "2019-09-07", "timestamp": 1567296000, "values": [ 29 ] }, { "date_from": "2019-09-08", "date_to": "2019-09-14", "timestamp": 1567900800, "values": [ 43 ] }, { "date_from": "2019-09-15", "date_to": "2019-09-21", "timestamp": 1568505600, "values": [ 28 ] }, { "date_from": "2019-09-22", "date_to": "2019-09-28", "timestamp": 1569110400, "values": [ 57 ] }, { "date_from": "2019-09-29", "date_to": "2019-10-05", "timestamp": 1569715200, "values": [ 100 ] }, { "date_from": "2019-10-06", "date_to": "2019-10-12", "timestamp": 1570320000, "values": [ 72 ] }, { "date_from": "2019-10-13", "date_to": "2019-10-19", "timestamp": 1570924800, "values": [ 57 ] }, { "date_from": "2019-10-20", "date_to": "2019-10-26", "timestamp": 1571529600, "values": [ 85 ] }, { "date_from": "2019-10-27", "date_to": "2019-11-02", "timestamp": 1572134400, "values": [ 43 ] }, { "date_from": "2019-11-03", "date_to": "2019-11-09", "timestamp": 1572739200, "values": [ 71 ] }, { "date_from": "2019-11-10", "date_to": "2019-11-16", "timestamp": 1573344000, "values": [ 55 ] }, { "date_from": "2019-11-17", "date_to": "2019-11-23", "timestamp": 1573948800, "values": [ 56 ] }, { "date_from": "2019-11-24", "date_to": "2019-11-30", "timestamp": 1574553600, "values": [ 49 ] }, { "date_from": "2019-12-01", "date_to": "2019-12-07", "timestamp": 1575158400, "values": [ 27 ] }, { "date_from": "2019-12-08", "date_to": "2019-12-14", "timestamp": 1575763200, "values": [ 56 ] }, { "date_from": "2019-12-15", "date_to": "2019-12-21", "timestamp": 1576368000, "values": [ 29 ] }, { "date_from": "2019-12-22", "date_to": "2019-12-28", "timestamp": 1576972800, "values": [ 48 ] }, { "date_from": "2019-12-29", "date_to": "2020-01-01", "timestamp": 1577577600, "values": [ 79 ] } ], "keywords": [ "seo api" ], "position": 1, "title": "Interest over time", "type": "google_trends_graph" }, { "data": [ { "geo_id": "US-NY", "geo_name": "New York", "max_value_index": 0, "values": [ 100 ] }, { "geo_id": "US-OR", "geo_name": "Oregon", "max_value_index": 0, "values": [ 55 ] }, { "geo_id": "US-CA", "geo_name": "California", "max_value_index": 0, "values": [ 52 ] }, { "geo_id": "US-MT", "geo_name": "Montana", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-DC", "geo_name": "District of Columbia", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-HI", "geo_name": "Hawaii", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-LA", "geo_name": "Louisiana", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MS", "geo_name": "Mississippi", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-KS", "geo_name": "Kansas", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-IN", "geo_name": "Indiana", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NV", "geo_name": "Nevada", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-UT", "geo_name": "Utah", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-OK", "geo_name": "Oklahoma", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NC", "geo_name": "North Carolina", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-AZ", "geo_name": "Arizona", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-CO", "geo_name": "Colorado", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-VA", "geo_name": "Virginia", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-CT", "geo_name": "Connecticut", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NJ", "geo_name": "New Jersey", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-TN", "geo_name": "Tennessee", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-WA", "geo_name": "Washington", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MA", "geo_name": "Massachusetts", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-PA", "geo_name": "Pennsylvania", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MN", "geo_name": "Minnesota", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MO", "geo_name": "Missouri", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-IL", "geo_name": "Illinois", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MI", "geo_name": "Michigan", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-GA", "geo_name": "Georgia", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-FL", "geo_name": "Florida", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-TX", "geo_name": "Texas", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-OH", "geo_name": "Ohio", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-AK", "geo_name": "Alaska", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-AL", "geo_name": "Alabama", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-AR", "geo_name": "Arkansas", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-DE", "geo_name": "Delaware", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-IA", "geo_name": "Iowa", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-ID", "geo_name": "Idaho", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-KY", "geo_name": "Kentucky", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-MD", "geo_name": "Maryland", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-ME", "geo_name": "Maine", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-ND", "geo_name": "North Dakota", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NE", "geo_name": "Nebraska", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NH", "geo_name": "New Hampshire", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-NM", "geo_name": "New Mexico", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-RI", "geo_name": "Rhode Island", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-SC", "geo_name": "South Carolina", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-SD", "geo_name": "South Dakota", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-VT", "geo_name": "Vermont", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-WI", "geo_name": "Wisconsin", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-WV", "geo_name": "West Virginia", "max_value_index": 0, "values": [ null ] }, { "geo_id": "US-WY", "geo_name": "Wyoming", "max_value_index": 0, "values": [ null ] } ], "keywords": [ "seo api" ], "position": 2, "title": "Interest by subregion", "type": "google_trends_map" }, { "data": { "rising": [ { "topic_id": "/m/055t58", "topic_title": "Google Maps", "topic_type": "Website", "value": 290050 }, { "topic_id": "/m/02vtpl", "topic_title": "WordPress", "topic_type": "Downloadable software", "value": 145000 }, { "topic_id": "/g/11f4hw5686", "topic_title": "SEMrush", "topic_type": "Company", "value": 144950 }, { "topic_id": "/m/012l1vxv", "topic_title": "React", "topic_type": "Topic", "value": 125700 }, { "topic_id": "/m/026sq", "topic_title": "Data", "topic_type": "Topic", "value": 100 }, { "topic_id": "/m/07k1x", "topic_title": "Tool", "topic_type": "Topic", "value": 70 }, { "topic_id": "/m/02mz1d", "topic_title": "Review", "topic_type": "Topic", "value": 60 }, { "topic_id": "/m/085n4", "topic_title": "Website", "topic_type": "Topic", "value": 40 } ], "top": [ { "topic_id": "/m/019qb_", "topic_title": "Search Engine Optimization", "topic_type": "Topic", "value": 100 }, { "topic_id": "/m/0z5n", "topic_title": "Application programming interface", "topic_type": "Kind of software", "value": 100 }, { "topic_id": "/m/085n4", "topic_title": "Website", "topic_type": "Topic", "value": 21 }, { "topic_id": "/m/07k1x", "topic_title": "Tool", "topic_type": "Topic", "value": 15 }, { "topic_id": "/m/055t58", "topic_title": "Google Maps", "topic_type": "Website", "value": 13 }, { "topic_id": "/m/026sq", "topic_title": "Data", "topic_type": "Topic", "value": 12 }, { "topic_id": "/m/02mz1d", "topic_title": "Review", "topic_type": "Topic", "value": 9 }, { "topic_id": "/g/120y8l81", "topic_title": "Business", "topic_type": "Organization type", "value": 9 }, { "topic_id": "/g/11c5m28d6z", "topic_title": "Yoast SEO", "topic_type": "Topic", "value": 7 }, { "topic_id": "/m/05s_jbn", "topic_title": "Application programming interface key", "topic_type": "Topic", "value": 7 }, { "topic_id": "/m/03nsxd", "topic_title": "Representational state transfer", "topic_type": "Kind of software", "value": 7 }, { "topic_id": "/m/02vtpl", "topic_title": "WordPress", "topic_type": "Downloadable software", "value": 7 }, { "topic_id": "/g/11f4hw5686", "topic_title": "SEMrush", "topic_type": "Company", "value": 7 }, { "topic_id": "/m/018j6p", "topic_title": "Software Developer", "topic_type": "Occupation", "value": 7 }, { "topic_id": "/m/0g4gr", "topic_title": "Marketing", "topic_type": "Field of study", "value": 6 }, { "topic_id": "/m/02p97", "topic_title": "JavaScript", "topic_type": "Programming language", "value": 6 }, { "topic_id": "/m/012l1vxv", "topic_title": "React", "topic_type": "Topic", "value": 6 }, { "topic_id": "/m/0fr1w6", "topic_title": "Index term", "topic_type": "Topic", "value": 6 } ] }, "keywords": [ "seo api" ], "position": 3, "title": "Related topics", "type": "google_trends_topics_list" }, { "data": { "rising": [], "top": [] }, "keywords": [ "seo api" ], "position": 4, "title": "Related queries", "type": "google_trends_queries_list" } ], "items_count": 4, "keywords": [ "seo api" ], "language_code": "en-US", "location_code": 2840, "type": "trends" } ], "result_count": 1, "status_code": 20000, "status_message": "Ok.", "time": "26.8670 sec." } ], "tasks_count": 1, "tasks_error": 0, "time": "26.9462 sec.", "version": "0.1.20200324" }