状态
哪些端点已开启。
本参考页为英文。字段名、示例和错误码在所有语言版本中都一样。
Says which endpoints are on and reports numbers measured over the last hour (measured): calls, the share that succeeded, and p50 and p95 times. The numbers are a report, not a promise. It works with or without a key; with a key the response adds key: the key's limits, its jobs in flight and reach.
key.reach is full or reduced. reach_reduced appears when the recent calls of an account needed more work than they were charged for, for example after many pages that could not be read. Such a call is answered as usual, but pages and searches that are hard to reach are not tried again. Full reach comes back as calls are charged and over time. GET /v1/web/status with your key shows the current state in key.reach.
What is charged
Free. Without a key it is rate limited per IP address.
Request
GET https://api.websearch.fast/v1/web/statusExample request
curl https://api.websearch.fast/v1/web/status \
-H "Authorization: Bearer $WEBSEARCH_API_KEY"import os
import httpx
response = httpx.get(
"https://api.websearch.fast/v1/web/status",
headers={"Authorization": f"Bearer {os.environ['WEBSEARCH_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.websearch.fast/v1/web/status", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.WEBSEARCH_API_KEY}`,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Response fields
Status; with a key it adds the key's limits.
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
objectrequired | string | Always web.status. | |||||||||||||||||||||||||||||||||
request_idrequired | string | Same as the X-Request-Id header. | |||||||||||||||||||||||||||||||||
createdrequired | integer | Unix seconds (UTC). | |||||||||||||||||||||||||||||||||
moderequired | string | The site's web API mode. While the API is open to administrators only, an administrator's key sees admins and every other caller sees off. One of on, admins, off. | |||||||||||||||||||||||||||||||||
endpointsrequired | array of object | Show fields
| |||||||||||||||||||||||||||||||||
key | object | Show fields
| |||||||||||||||||||||||||||||||||
updated_atrequired | integer |
Errors
| Status | Codes |
|---|---|
400 | invalid_request, invalid_url, invalid_schema or invalid_image. Not charged. |
401 | invalid_token. Not charged. |
403 | pre_consume_token_quota_failed (the key's own spending limit), access_denied, web_not_allowed or model_not_in_plan (customer keys while plans cannot include the web tools). Not charged. |
404 | not_found or invalid_endpoint. Not charged. |
413 | read_request_body_failed: the request body is over the limit. Not charged. |
429 | rate_limited, concurrency_limited, api_key_temporarily_frozen, or the failure guard. Not charged. |
500 | internal_error. Not charged. |
501 | api_not_implemented: the endpoint, type or option has not shipped. Not charged. |
503 | source_unavailable, web_api_disabled, token_cache_busy or billing_busy (the charge could not be prepared in time; retry after Retry-After). Not charged. |
504 | timeout. Not charged. |