JustSERPDocs
Google

Resolve a Google link

One Google result link (`https://www.google.com/goto?url=...`, as a search answers it with `resolve_links: false` or when Google would not resolve it in time), answered with the address it leads to.

GET
/v1/google/resolve

One Google result link (https://www.google.com/goto?url=..., as a search answers it with resolve_links: false or when Google would not resolve it in time), answered with the address it leads to. Google's older /url?q= links are taken too. Not charged, but the key must have calls left (otherwise 403 API call quota exceeded).

Google answers a link's redirect while the page it came from still has an allowance; past it, the lookup waits out Google's delay. A link Google will not give the address of in that time answers 500 not_resolved; asking again later usually works.

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
url*string

A Google /goto?url= link (absolute, or relative /goto?url=...), or a /url?q= link.

Response Body

The link's destination.

application/json
  1. response
search_metadata?
search_parameters?
search_information?
link?string

The address the link leads to.

redirect_link?string

The Google link asked, absolute.

Example Request
curl -X GET 'https://api.justserp.com/v1/google/resolve?url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESaQHrOzAVqzmLoOGwx_6OnzSPRKSyqmXD3yEDa0VIkUCfa5RKEaB9eIJOYz_M1y_VwKrr5jrSlrFlZlBUbe9DQXMPRUiSOrjBMQ78vpRZtXEhawDDabM58DDRHnv2f-XOQAWw-nwkup9ptQ'
Example Response
{  "search_metadata": {    "id": "string",    "status": "string",    "created_at": "string",    "request_url": "string"  },  "search_parameters": {    "engine": "google_resolve",    "url": "string"  },  "search_information": {},  "link": "string",  "redirect_link": "string"}