mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 00:24:44 +03:00
2f87832532
* Extend the GSC API with search functionality * Fix typo in error tuple atom * log GSC errors * rename confusing variable name * Fix the API response format and error handling * Read results under the `results` key to be consistent with other endpoints * Return errors with a non-200 status code, and with an error payload that will be well constructed into ApiError * rebuild Google Keywords modal with useAPIClient * Add pagination support in Search Terms API * delete unused fixture file * rename fixture files * fix tests
37 lines
785 B
JSON
37 lines
785 B
JSON
[
|
|
{
|
|
"status": 200,
|
|
"url": "https://www.googleapis.com/webmasters/v3/sites/sc-domain%3Adummy.test/searchAnalytics/query",
|
|
"method": "post",
|
|
"request_body": {
|
|
"dimensionFilterGroups": [],
|
|
"dimensions": [
|
|
"query"
|
|
],
|
|
"endDate": "2022-01-05",
|
|
"rowLimit": 5,
|
|
"startRow": 0,
|
|
"startDate": "2022-01-01"
|
|
},
|
|
"response_body": {
|
|
"responseAggregationType": "auto",
|
|
"rows": [
|
|
{
|
|
"clicks": 25,
|
|
"ctr": 0.3679,
|
|
"impressions": 50,
|
|
"keys": ["keyword1"],
|
|
"position": 2.2312312
|
|
},
|
|
{
|
|
"clicks": 15,
|
|
"ctr": 0.5,
|
|
"impressions": 25,
|
|
"keys": ["keyword3"],
|
|
"position": 4.0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|