> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 解析 Google 重定向

> Google 结果的 redirectLink 指向的页面。

未能及时读取重定向的 Google 结果，`link` 为空，重定向位于 `redirectLink`。把该 `redirectLink` 作为 `url` 发送到这里，即可得到它指向的页面。每个请求一个链接，不消耗积分。`POST /v1/monitor/google/goto` 响应同样的请求，因此为 Cloro 路径编写的客户端可以直接使用。

`502 GOOGLE_REDIRECT_UNRESOLVED` 表示 Google 还没有返回重定向。响应带有 `Retry-After` 时，等待其秒数后重试；否则稍后重试。


## OpenAPI

````yaml POST /v1/google/goto
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/google/goto:
    post:
      tags:
        - Operations
      summary: Resolve a Google redirect
      description: >-
        The page a Google result's `redirectLink` leads to. A Google result
        whose redirect was not read in time has an empty `link` and the redirect
        in `redirectLink`; send it here as `url`. One link per request, no
        credits. `POST /v1/monitor/google/goto` answers the same request.
      operationId: resolveGoogleRedirect
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - url
              properties:
                url:
                  type: string
                  description: >-
                    A result's `redirectLink`:
                    `https://www.google.com/goto?url=…`. The page-relative
                    `/goto?url=…` form is accepted too.
                  example: >-
                    https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx
      responses:
        '200':
          description: The page the redirect leads to.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  url:
                    type: string
                    example: >-
                      https://www.rtings.com/headphones/reviews/best/wireless-bluetooth-earbuds-under-100
        '400':
          description: '`url` is not a Google `/goto?url=` redirect.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          description: >-
            Google has not answered the redirect yet. Retry after the seconds in
            `Retry-After` when it is present, otherwise later.
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: GOOGLE_REDIRECT_UNRESOLVED
                  message: goto did not answer a redirect; retry later
                  timestamp: '2026-11-09T00:00:00.000Z'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.