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

# Debug agent selection

> Preview which agent would be selected for a given URL without making the actual request.



## OpenAPI

````yaml /zh/scraping-api/openapi.json get /debug/pick
openapi: 3.1.0
info:
  title: 55 Tech Scraping API
  description: >-
    Distributed fetch network. Route HTTP, browser, WebSocket, and AMQP requests
    through 80+ geo-distributed agents with health-aware routing and block
    detection.
  version: 2.2.0
  contact:
    name: 55 Tech Support
    email: contact@55-tech.com
servers:
  - url: https://scraping-api.55-tech.com
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: Fetch
    description: Proxy HTTP requests through the agent network.
  - name: Browser
    description: Fetch with full JavaScript rendering, cookies, and screenshots.
  - name: Network
    description: Agent registry, network status, and domain health.
  - name: AMQP
    description: AMQP/RabbitMQ consumer relay via SSE.
  - name: Usage
    description: Per-key usage metrics.
  - name: Debug
    description: Debug and diagnostic endpoints.
  - name: System
    description: Health checks and system endpoints.
paths:
  /debug/pick:
    get:
      tags:
        - Debug
      summary: Debug agent selection
      description: >-
        Preview which agent would be selected for a given URL without making the
        actual request.
      operationId: debug_pick
      parameters:
        - name: url
          in: query
          required: true
          description: Target URL to simulate agent selection for.
          schema:
            type: string
        - $ref: '#/components/parameters/XGeo'
        - $ref: '#/components/parameters/XAgent'
        - $ref: '#/components/parameters/XExpectJSON'
      responses:
        '200':
          description: Selected agent info.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DebugPickResponse'
        '401':
          description: Missing or invalid API key.
components:
  parameters:
    XGeo:
      name: X-Geo
      in: header
      description: >-
        Target countries as comma-separated ISO codes (e.g. US,DE,AT). Aliases:
        X-Geo-CC, X-CC, X-Country, X-Geo-Strict.
      schema:
        type: string
    XAgent:
      name: X-Agent
      in: header
      description: >-
        Route through specific agent(s) by slug (e.g. de1) or comma-separated
        list for random pick (e.g. de1,at5,us3).
      schema:
        type: string
    XExpectJSON:
      name: X-Expect-JSON
      in: header
      description: Set to 1 if expecting a JSON response from the origin.
      schema:
        type: string
  schemas:
    DebugPickResponse:
      type: object
      properties:
        node_id:
          type: string
          description: Selected proxy node name.
        node_slug:
          type: string
          description: Short node slug (e.g. de1).
        country:
          type: string
          description: Node country code.
        valid_until_epoch_ms:
          type: integer
          description: How long this selection is cached (epoch ms).
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key passed in the X-API-Key header.

````