Get API key

Google Goto API

The Google Goto API turns the wrapped links in Google results (/url?q=… and /goto?url=… tokens) into the real destination URL, for up to 10 links per call. Our Google APIs already put a ready-made call to it on each such result as google_goto_link.

Endpoint: https://api.scrapingdog.com/google_goto

The API costs 0 credits per request, but the account must have credits left; failed and timed-out requests are never charged. GET takes the parameters in the query string; POST takes them as a JSON body (Content-Type: application/json). Limits: 10 links per call, and 55 seconds per call, of which about 50 are used for waiting out and following links. See every response shape below.

API Parameters

🔑

Scrapingdog Parameters

  • api_key Required
    Your Scrapingdog API key, available on your dashboard. Replace APIKEY when executing requests.

    Type: String
🔗

Links

  • url Required
    The Google link to resolve: a /url?q=… or /goto?url=… link, absolute or relative. Required unless urls is sent.

    GET: pass url up to 10 times (?url=A&url=B), or use url[]=, and URL-encode each value, or its own & will split it. One url answers a single object; several answer { "results": [...] } in the order sent.

    Type: String
  • urls Optional
    POST only: up to 10 links as a JSON array, sent unencoded. Always answers in the results form. Required unless url is sent.

    Type: Array of strings
⚙

️ Optional Parameters

  • link_resolve Optional
    When true and Google answers “wait N seconds”, the API waits and follows the next link itself, so you get the real URL in one call.

    Default: false
  • retry_at Optional
    Unix time in milliseconds. Already in the google_goto_link URLs our Google APIs return when a link is not ready yet; leave it as it is. Before that time a single-link call answers remaining_seconds without contacting Google.

    Type: Number

How waiting links and link_resolve work

Google hands out the first few links of a results page at once and queues the rest; a queued link answers with a wait time and a new link to follow after it.

  1. The API asks Google for each link, one after another (links from one results page share one queue, and asking them all at once makes the waits longer). A link repeated in one call is fetched once and answered at each of its positions.
  2. A free link redirects straight away → url.
  3. A queued link answers with its wait (a few seconds, sometimes 15–30) and a next_link.
  4. Without link_resolve, that wait and next_link come back to you. Call /google_goto?url=<next_link> once the wait has passed; calling earlier gets an error, and the same next_link still works after it. Do not resend the original link: that only joins the back of the queue again.
  5. With link_resolve=true, the API waits out each queued link and follows its next_link itself (all waits run side by side), repeating if Google queues it again.
  6. A wait that would end after the request’s time budget is not waited out: that link comes back in the waiting shape so you can follow it yourself.

Tips

  • Send all links of one results page in one call, in their page order.
  • Use link_resolve=true unless you want to schedule the waits yourself; it saves a second round trip.
  • A next_link stays usable for about 30 seconds after its wait ends; follow it promptly.

API Examples

API result preview
Code to Integrate
curl "https://api.scrapingdog.com/google_goto?api_key=APIKEY&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESwAEBxCJF15qagpExGRBXvsyG5xCMtebh0h9R4lmiK3GITSl17g2xqO0RwwAWxQzrFBzsFzcTa-He7FRVdDQE4ampGaclzRaWZK8gs6v6jCEPMTnlDj24jejbhO0ZbTRP9p1Lq1uTfS2KprwTPf4Vg7JzDSnVt8mT0n4rF2q9ONKW0RhaQwjEkmVwQlv8BMK4dZKZyedhVGLRE865u8NAYsNqYJ_ZAhgNgMvHGy2myv2RaGLQvE-GftOAdTtOpRIfzeI&link_resolve=true"
API Response
{
  "url": "https://thedriven.io/2026/12/01/hyundai-unveils-new-styling-battery-swaps-and-entry-level-model-for-expanded-ioniq-electric-lineup/",
  "link_tried": "https://www.google.com/goto?url=CAESwAEBxCJF15qagpExGRBXvsyG5xCMtebh0h9R4lmiK3GITSl17g2xqO0RwwAWxQzrFBzsFzcTa-He7FRVdDQE4ampGaclzRaWZK8gs6v6jCEPMTnlDj24jejbhO0ZbTRP9p1Lq1uTfS2KprwTPf4Vg7JzDSnVt8mT0n4rF2q9ONKW0RhaQwjEkmVwQlv8BMK4dZKZyedhVGLRE865u8NAYsNqYJ_ZAhgNgMvHGy2myv2RaGLQvE-GftOAdTtOpRIfzeI"
}

Response Fields

FieldWhenMeaning
urlResolvedThe real destination URL.
link_triedAlwaysThe link you sent, as sent.
will_resolve_in_secondsWaitingSeconds until next_link can be followed.
next_linkWaitingThe link to send next, after the wait. Relative (/goto?url=…); send it as is.
success, messageFailedsuccess: false and the reason. In a results array a failed link does not fail the others.
remaining_secondsSingle link with retry_at still in the futureSeconds until the link is ready; Google was not contacted.
resultsSeveral links, or any POST with urlsOne entry per link, in the order sent; each entry is one of the shapes above.

Errors

HTTP statusMessageCause
400please enter the urlNo url / urls passed.
400Please pass at most 10 links per request.More than 10 links.
400Something went wrong, please try againSingle-link call: Google did not answer. Retry.
401User not Verified. Please activate your account.Account not activated.
403Unauthorized request, please make sure your API key is valid.Invalid api_key.
403You have reached your account limit… / Account Limit reached…No credits left.
404user not foundapi_key could not be looked up.
410Request timed out. You will not be charged for this request…The request passed its 55-second limit.
200 (in results)Something went wrong, please try againGoogle did not answer for that link; send it again.
200 (in results)Not tried: this request ran out of time. Please send this link again.The call’s time budget ran out before this link was asked.

Examples for Every Response Shape

Each link comes back in one of three states: resolved (url), waiting (will_resolve_in_seconds + next_link), or failed (success: false). Every response below was returned by the live API for the request shown.

Several links, without link_resolve

Four links from one Google News page in one GET. Google queued all four, so each comes back waiting, with the seconds until its next_link can be followed. This is Google’s real wait (its delayMillis, rounded up), not the longer number in the page’s meta refresh.
Request
curl "https://api.scrapingdog.com/google_goto?api_key=APIKEY&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESrAEBxCJF1wnrt9RvcFBXztCiYMf2fzehFZbJyKo8ONdqJ6BKep8pk4-ss3c6MinNCc-VTXLktgkIslUXKg9eakO94fJ3_Pep6hGB9WgoTYKuHEDNR3jH6-Vo_YnFjh22VAaM_6UX3v-OODwD5FHj0i2M8_JWcCKPKbgj3tUDDJKYykh1acCspF0QKoS_xHBN0CFHeZK364L2XLn_TaR6fMz-EHVws4h0mbVCCRzH&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAEShAEBxCJF19Fa76sESTMDsW2DWBUKuMF2Cp2s7plGHTykvuP9P7Uw2EG69HCAkdpAKDwp26o4N3Tx7zwf_QIjXjRph2pN63ws99gHle-Wlm0H-qyVqrqzsFZAz1HXXOz0W17zbpmiJLzDZZn2mDfrtCC6ZgYlZv-19qiwEwQBFMZK0Hg9IGk&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESngEBxCJF1-3-OFFuGLr3iYTrw3RLa0btnbNVlqQ7cCvItZhei1xh2NP2hPmb0WfRqpQQm09SpudefJLWPTia0clwJbtMNIoZ-VEm9VpY2j503kZVSzisGu6_BJguTUt4ZQdVzwKTXnAUwKkBGPFzZEo_9NK4cY_go41ViXJS8LeaORMjkO8cMmkrvS4Jh2SoDh67LJcQEijYYIQ1nDHnSA&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESigEBxCJF12WzhG-j-zdYIFgmc6V9YvUecwZcYJD6Eooxpp-Kdpo--j9qpsnLueLUHijVphXQpSlxzPd8dSttM_6QFzSFP4AJnFvKayHJY6xtPHNm0lDiAdTtFaVu5nICtF6HTZ8CnCIhnbrlYP8UmskDPUd1Ja1woNm8tbE56vw5l8aEQUIV3sknq1s"
Response
{
  "results": [
    {
      "will_resolve_in_seconds": 22,
      "next_link": "/goto?url=CAEStwEBxCJF17l9GXy3x19PZe3rZvgfGGtD7Ct2CjYiYo6uTV674Gbpxffx6-mH4Z19pAQcJtrjYml2SQAI_sonX2YcOoIK-kviR6B73DGsjMHl9ZR76hf3pwldcon9095u6hZ0wyyvp6FYrfQaXWxna84m-GlfWXGkvgJKs-JpZyRdyIlUZY6q7UG0S-zP4w6tOM7YRk9fP6h_jgrH5bUSJ1K1jDlAU8nST5GqvcQnt3qlyC5iKTvfMoA",
      "link_tried": "https://www.google.com/goto?url=CAESrAEBxCJF1wnrt9RvcFBXztCiYMf2fzehFZbJyKo8ONdqJ6BKep8pk4-ss3c6MinNCc-VTXLktgkIslUXKg9eakO94fJ3_Pep6hGB9WgoTYKuHEDNR3jH6-Vo_YnFjh22VAaM_6UX3v-OODwD5FHj0i2M8_JWcCKPKbgj3tUDDJKYykh1acCspF0QKoS_xHBN0CFHeZK364L2XLn_TaR6fMz-EHVws4h0mbVCCRzH"
    },
    {
      "will_resolve_in_seconds": 29,
      "next_link": "/goto?url=CAESjwEBxCJF14X7LWG7mCjd9TlnHq5P7F4xIAs8ow-YnOufnjO9ixHHj6ZneFRHwv_CmnKyZhH3PZrrTQeRgUWRWxtB2T6h0Coe1-Is_NS-feDVFPRdqCUTfHc9CgWhnTh4e-kgFPm3TReEkwf74iZvhfDENxw93b00ZuTp8FApuc64kp9-OscCckXTF1_1JZTtYw",
      "link_tried": "https://www.google.com/goto?url=CAEShAEBxCJF19Fa76sESTMDsW2DWBUKuMF2Cp2s7plGHTykvuP9P7Uw2EG69HCAkdpAKDwp26o4N3Tx7zwf_QIjXjRph2pN63ws99gHle-Wlm0H-qyVqrqzsFZAz1HXXOz0W17zbpmiJLzDZZn2mDfrtCC6ZgYlZv-19qiwEwQBFMZK0Hg9IGk"
    },
    {
      "will_resolve_in_seconds": 36,
      "next_link": "/goto?url=CAESqQEBxCJF144liE-fUTiZ4FGNUrfD78GLAiAj_t1z6lcJB5O0sJM-zxOiD3q0bTlKJQK6WZP-lF_5RgQQ6K0Pb9h6Dtrwen0b17rQxnUmM-Ql-RC0oPe50omm1dsRmknbFlE9SEbwp1SpAbaxg2a8eCXBoS8yFP6o7NFfxc1AC9bUd7ZwUvNkXZOKv1vxobRz_6u7Jz3YK8RILRc5cXSjkt0fawCKgr7c4_1Z",
      "link_tried": "https://www.google.com/goto?url=CAESngEBxCJF1-3-OFFuGLr3iYTrw3RLa0btnbNVlqQ7cCvItZhei1xh2NP2hPmb0WfRqpQQm09SpudefJLWPTia0clwJbtMNIoZ-VEm9VpY2j503kZVSzisGu6_BJguTUt4ZQdVzwKTXnAUwKkBGPFzZEo_9NK4cY_go41ViXJS8LeaORMjkO8cMmkrvS4Jh2SoDh67LJcQEijYYIQ1nDHnSA"
    },
    {
      "will_resolve_in_seconds": 43,
      "next_link": "/goto?url=CAESlQEBxCJF13K-UB-xZlXFuspvF-wvDzSDP_odx7768hgFr9L4RT0MS21m039tjPyz1goywwcfNitRku7WIp-UDmgOCbFmYfzg4Tg9NghtIsSSda2l9UKoHB4BieQf1hG4sJth7hTj3H1gjBt7q13fzeKakgvIGu2vn8q5wewemlTQtOvi7lyOJlBUih1247wNW9vq50dHdQ",
      "link_tried": "https://www.google.com/goto?url=CAESigEBxCJF12WzhG-j-zdYIFgmc6V9YvUecwZcYJD6Eooxpp-Kdpo--j9qpsnLueLUHijVphXQpSlxzPd8dSttM_6QFzSFP4AJnFvKayHJY6xtPHNm0lDiAdTtFaVu5nICtF6HTZ8CnCIhnbrlYP8UmskDPUd1Ja1woNm8tbE56vw5l8aEQUIV3sknq1s"
    }
  ]
}

Several links in one POST, with link_resolve

The links go in a JSON array, unencoded. With link_resolve: true the API waited out the queue itself, so every link came back resolved, in the order sent.
Request
curl -X POST "https://api.scrapingdog.com/google_goto" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "APIKEY",
    "urls": [
      "https://www.google.com/goto?url=CAESnAEBxCJF1yO6BFOZLkUk2YmaCxsH4GeSrOBJZ7Bt9ZVOZBy340jJUy8BTfH-95UPmFBK_sns59xVxxckOc5sJUyqjITjaE795w_rh18rBWqIox0JEE36khwhegzLsCQqrQJirrt2feMJ9bLn0R0ka2EiyYiNtFRRS2PH9K4KRrykRIuIXTyUjv9cmivuEXOWO6QNXRQrDyosalC5L0I",
      "https://www.google.com/goto?url=CAESzgEBxCJF19WHHXYn-bK5-lWEylAZranrtEwYPvw-FbLJ9sM0odPXzB2SKQY6z4_tTZytpTB4Cedb3SdYUILmd3HxrsZKG4I2NeqtDR6BzWZI4clqBNwHQExBZYyLiX2v6mCnjvAgFex1QWTg84kfmu7YjcQN8nZVJSYlOFI0vUPlwO7LWyiLfJ1der7D4Bff1NibkW_w9WhQJ63WAAs7ls0JbcfkoKDDfn3C5rLVrcMkGYDxcmuVgJJcq0gUZXusJfMqQZ1lcw1SIM-5i7j1jg",
      "https://www.google.com/goto?url=CAESygEBxCJF1xgjpAcAf4h9dTlrH3v_uwnJ1y1ignUrkpuhj9I-mbFbubMV-M3HuierXSL71y25A9AlG1OXLMwia_peuaJUnNRIdcSW2gmya84QijqanJsFylD7ux15QxDUGnoUw8FtDpUD6d7GvEx7Uf7G4Q-o0sqv_ZHD3xvbOphX6ik5dgmNzk7dlyL3lJ4pf3w8WPs9eprKiytvpOib1_CT-2YoKGLlXrTluPEKsPfh4yvaIzi5EskJwVg-KB5tx_rhdWRrq2f97oCK"
    ],
    "link_resolve": true
  }'
Response
{
  "results": [
    {
      "url": "https://www.automotiveworld.com/news/euro-7-takes-effect-with-first-ev-battery-durability-rules/",
      "link_tried": "https://www.google.com/goto?url=CAESnAEBxCJF1yO6BFOZLkUk2YmaCxsH4GeSrOBJZ7Bt9ZVOZBy340jJUy8BTfH-95UPmFBK_sns59xVxxckOc5sJUyqjITjaE795w_rh18rBWqIox0JEE36khwhegzLsCQqrQJirrt2feMJ9bLn0R0ka2EiyYiNtFRRS2PH9K4KRrykRIuIXTyUjv9cmivuEXOWO6QNXRQrDyosalC5L0I"
    },
    {
      "url": "https://www.detroitnews.com/story/business/autos/foreign/2026/11/30/how-chinas-byd-laid-groundwork-for-first-european-car-plant-deal/93015702007/",
      "link_tried": "https://www.google.com/goto?url=CAESzgEBxCJF19WHHXYn-bK5-lWEylAZranrtEwYPvw-FbLJ9sM0odPXzB2SKQY6z4_tTZytpTB4Cedb3SdYUILmd3HxrsZKG4I2NeqtDR6BzWZI4clqBNwHQExBZYyLiX2v6mCnjvAgFex1QWTg84kfmu7YjcQN8nZVJSYlOFI0vUPlwO7LWyiLfJ1der7D4Bff1NibkW_w9WhQJ63WAAs7ls0JbcfkoKDDfn3C5rLVrcMkGYDxcmuVgJJcq0gUZXusJfMqQZ1lcw1SIM-5i7j1jg"
    },
    {
      "url": "https://www.theautopian.com/mercedes-benz-is-trying-to-solve-the-ev-excitement-problem-with-fake-fire-but-i-figured-this-about-two-years-ago/",
      "link_tried": "https://www.google.com/goto?url=CAESygEBxCJF1xgjpAcAf4h9dTlrH3v_uwnJ1y1ignUrkpuhj9I-mbFbubMV-M3HuierXSL71y25A9AlG1OXLMwia_peuaJUnNRIdcSW2gmya84QijqanJsFylD7ux15QxDUGnoUw8FtDpUD6d7GvEx7Uf7G4Q-o0sqv_ZHD3xvbOphX6ik5dgmNzk7dlyL3lJ4pf3w8WPs9eprKiytvpOib1_CT-2YoKGLlXrTluPEKsPfh4yvaIzi5EskJwVg-KB5tx_rhdWRrq2f97oCK"
    }
  ]
}

One link fails, the others still resolve

In a results array a link fails on its own, with HTTP 200 for the call. The second link here is not a valid Google token.
Request
curl "https://api.scrapingdog.com/google_goto?api_key=APIKEY&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESrgEBxCJF18mE5iWhE6-WGG1MOzBvIUwLXjk2jHfPnOgmFAqOjyCXjrxTqjH1OoaQDRUBkexDjeXH4x9Q52X022oITAwJtUmUIVICPLHPo1cms_qxccr0HstMhYXoF0Mxz6UZr_KOO5eVImcnptfkVbpcKX4UVefTl4a5s-MMEQjFgu44mOH5i0NnwaTkfkK95XvQi-J6AdAaHbBD-ox_K3wQFGqCJqyVsh_uqVgdCwk&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAESnotarealtoken&link_resolve=true"
Response
{
  "results": [
    {
      "url": "https://www.theguardian.com/global-development/2026/dec/01/uruguay-green-energy-ev-car-boom-industry-latin-america",
      "link_tried": "https://www.google.com/goto?url=CAESrgEBxCJF18mE5iWhE6-WGG1MOzBvIUwLXjk2jHfPnOgmFAqOjyCXjrxTqjH1OoaQDRUBkexDjeXH4x9Q52X022oITAwJtUmUIVICPLHPo1cms_qxccr0HstMhYXoF0Mxz6UZr_KOO5eVImcnptfkVbpcKX4UVefTl4a5s-MMEQjFgu44mOH5i0NnwaTkfkK95XvQi-J6AdAaHbBD-ox_K3wQFGqCJqyVsh_uqVgdCwk"
    },
    {
      "link_tried": "https://www.google.com/goto?url=CAESnotarealtoken",
      "success": false,
      "message": "Something went wrong, please try again"
    }
  ]
}

Calling before retry_at

A single-link call made before its retry_at answers how many seconds are left, without contacting Google. The google_goto_link values our Google APIs return carry this parameter already.
Request
curl "https://api.scrapingdog.com/google_goto?api_key=APIKEY&url=https%3A%2F%2Fwww.google.com%2Fgoto%3Furl%3DCAEShwEBxCJF14YfLvREjmaGyaLCWKcJrhFbp-jgxEWYR2DOeSvkST_4n1gK1PHURDmZD6DQN8eJAQ3NxRwREsF67vOePcIyM_lsU7F8vQC9RC2PilETdG76N4d0h91wnIX9uJx60MHMYW8_R9UppNV8mMDdydJnrlM7tWwELSv8cU2ZErGpOacTNt4&retry_at=1796132303767"
Response
{
  "success": false,
  "message": "This link is not ready to resolve yet, please retry after the given time.",
  "remaining_seconds": 15
}