Searches and the pages they lead to
const url = 'https://digize.com/api/v1/search-console/queries?by=search&device=desktop&live=false&limit=100';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/search-console/queries?by=search&device=desktop&live=false&limit=100' \ --header 'x-api-key: <x-api-key>'The Google searches that bring people to a page, or the pages that show for a search, with clicks, impressions, click rate and position, over any days Search Console keeps (about 16 months; the latest 28 unless asked), on one device or in one country if asked. With neither, the top searches and their pages. By page, each page’s own numbers instead, which take in the searches too rare to list.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”A page’s address, or its path on any of the sites, such as /pricing: the searches that bring people to it.
A page’s address, or its path on any of the sites, such as /pricing: the searches that bring people to it.
A search, word for word: the pages that show for it.
A search, word for word: the pages that show for it.
Rows by search and page, or by page alone.
Rows by search and page, or by page alone.
The first day, on Search Console’s clock (Pacific time). Left out, 27 days before endDate.
The first day, on Search Console’s clock (Pacific time). Left out, 27 days before endDate.
The last day. Left out, the latest Search Console has, two or three days ago.
The last day. Left out, the latest Search Console has, two or three days ago.
Search Console’s three-letter country code: usa, gbr, deu.
Search Console’s three-letter country code: usa, gbr, deu.
Ask Search Console now even when the last sync’s 28 days would answer. The sync keeps the 500 most clicked searches, each with only the page it led to most, so asking live reaches rarer searches and every page a search shows.
Ask Search Console now even when the last sync’s 28 days would answer. The sync keeps the 500 most clicked searches, each with only the page it led to most, so asking live reaches rarer searches and every page a search shows.
Responses
Section titled “Responses”Done
object
The last sync’s 28 days, or Search Console asked now.
The most clicked first.
object
Null in rows by page.
Clicks over impressions, 0 to 1.
Where the result sat on average, 1 being the top.
Whether there were more rows than the limit.
Example
{ "source": "stored"}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}