api/open/serp_use_statPOSTApiKey:{your_api_key}| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| start_time | int64 | No | Start timestamp (seconds) | 1712563200 |
| end_time | int64 | No | End timestamp (seconds) | 1712649599 |
| engines | array[int] | No | List of search engine IDs, used to filter data for specific engines | [1, 2, 3] |
| group_by | string | Yes | Grouping method. Allowed values: hour (by hour) or day (by day) | "day" |
engines Parameter Descriptionengines specifies the search engines or product module types to be counted/queried. Pass an array of the corresponding engine IDs to filter the data sources.array[int][1, 2, 3]| ID | Engine Name | Description |
|---|---|---|
| 1 | Google Search | |
| 2 | bing | Bing Web Search |
| 3 | yandex | Yandex Search |
| 4 | duckduckgo | DuckDuckGo Search |
| 5 | google_shopping | Google Shopping Search |
| 6 | google_images | Google Image Search |
| 7 | google_news | Google News Search |
| 8 | google_videos | Google Video Search |
| 9 | google_local | Google Local Search (Local Pack) |
| 11 | google_lens | Google Image Recognition (Lens) |
| 12 | google_trends | Google Trends |
| 13 | google_maps | Google Maps |
| 14 | google_hotels | Google Hotels |
| 15 | google_jobs | Google Jobs |
| 16 | google_scholar | Google Scholar |
| 19 | google_play | Google Play Store |
| 20 | google_finance | Google Finance |
| 21 | google_flights | Google Flights |
| 22 | google_patents | Google Patents |
| 23 | bing_images | Bing Images |
| 24 | bing_videos | Bing Videos |
| 25 | bing_news | Bing News |
| 26 | bing_shopping | Bing Shopping |
| 27 | bing_maps | Bing Maps |
| 35 | google_ai_mode | Google AI Mode |
| 36 | google_ai_overview | Google AI Overview |
| 37 | google_web | Google Web (standard web search) |
| 38 | google_light | Google Lightweight Search |
{
"start_time": 1712563200,
"end_time": 1712649599,
"engines": [1, 2, 3],
"group_by": "day"
}{
"code": 200,
"data": [
{
"time_key": "2024-04-08",
"success_count": 1250,
"fail_count": 50,
"total_count": 1300,
"success_rate": 96.15,
"avg_response_time": 1250.5,
"total_amount": 650.25
},
{
"time_key": "2024-04-09",
"success_count": 1180,
"fail_count": 20,
"total_count": 1200,
"success_rate": 98.33,
"avg_response_time": 1180.3,
"total_amount": 600.0
}
],
"message": "Query succeeded",
"timestamp": 1712649600
}| Field | Type | Description |
|---|---|---|
| code | int | Response status code; 200 indicates success |
| data | array | Array of statistical data |
| message | string | Response message |
| timestamp | int64 | Response timestamp |
| Field | Type | Description |
|---|---|---|
| time_key | string | Time key; the format depends on the group_by parameter - hour: "2024-04-08 14:00:00" - day: "2024-04-08" |
| success_count | int64 | Number of successful requests (HTTP status code 200) |
| fail_count | int64 | Number of failed requests (non-200 status code or no results) |
| total_count | int64 | Total number of requests |
| success_rate | float64 | Success rate (percentage, rounded to 2 decimal places) |
| avg_response_time | float64 | Average response time (milliseconds, rounded to 2 decimal places) |
| total_amount | float64 | Total credits consumed (rounded to 4 decimal places) |
{
"code": 401,
"data": null,
"message": "api_key not provided",
"timestamp": 1712649600
}{
"code": 400,
"data": {},
"message": "Key: 'SerpUseStatParam.GroupBy' Error:Field validation for 'GroupBy' failed on the 'oneof' tag",
"timestamp": 1712649600
}{
"code": 500,
"data": null,
"message": "Data query failed",
"timestamp": 1712649600
}start_time and end_time are not provided, all historical data is returnedengines parameter is empty, statistics for all search engines are returned; passing an array of engine IDs filters for specific engineshour: Group by hour, suitable for viewing detailed short-term trendsday: Group by day, suitable for viewing long-term trends