---
title: "获取网络搜索 Provider 详情"
method: GET
path: "/web-search-providers/{id}"
tags: ["网络搜索"]
---

# 获取网络搜索 Provider 详情

`GET /web-search-providers/{id}`

根据 ID 获取指定 provider 配置

## Path parameters

- `id` string, required

## Response `200`

Provider 详情

- GithubComTencentWeKnoraInternalTypesWebSearchProviderEntity
  - `created_at` string — Timestamps
  - `deleted_at` GormDeletedAt
    - `time` string
    - `valid` boolean — Valid is true if Time is not NULL
  - `description` string — Description
  - `id` string — Unique identifier (UUID, auto-generated)
  - `is_default` boolean — Whether this is the default provider for the workspace
  - `name` string — User-friendly name, e.g., "Production Bing Search"
  - `parameters` GithubComTencentWeKnoraInternalTypesWebSearchProviderParameters
    - `api_key` string — API key for the search provider (encrypted in DB)
    - `base_url` string — Base URL for self-hosted search engines (e.g. SearXNG instance URL). Validated with utils.ValidateURLForSSRF; private hosts must be added to SSRF_WHITELIST.
    - `engine_id` string — Google Custom Search Engine ID (only for Google provider)
    - `extra_config` object — Provider-specific extra configuration for future extensibility
    - `proxy_url` string — Optional HTTP/HTTPS proxy URL for outbound search requests (e.g. http://host:port); validated with utils.ValidateURLForSSRF. Does not replace the search API endpoint; only tunnels traffic to the official APIs.
  - `provider` 'bing' | 'google' | 'duckduckgo' | 'tavily' | 'ollama' | 'baidu' | 'searxng' | 'keenable' | 'zhipu' | 'metaso'
  - `tenant_id` integer — Workspace ID for scoping
  - `updated_at` string

## Other responses

- `404` — Provider 不存在

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/abce9036def5/schema)
