ScavioScavio
功能定价文档
登录开始使用

文档

  • 简介
  • 快速开始
  • Google Search API
  • YouTube API
  • Amazon API
  • Walmart API
  • Reddit API
  • TikTok API
  • OpenClaw集成
  • MCP集成
  • n8n集成
  • 国家代码
  • 速率限制
  • 错误

错误

Scavio API使用标准HTTP状态码并返回结构化错误响应,帮助您快速调试问题。

错误响应格式

JSON
{
  "error": {
    "code": "error_code_string",
    "message": "Human-readable error description"
  }
}

状态码

状态代码描述
400bad_request无效的请求体或缺少必需参数
401unauthorized缺少或无效的API密钥
403forbiddenAPI密钥没有执行此操作的权限
402insufficient_credits积分不足。请充值或升级计划。
429rate_limit_exceeded请求过多。等待后重试。
500internal_error服务器错误。短暂延迟后重试。

常见错误

缺少query参数

400 Bad Request
{
  "error": {
    "code": "bad_request",
    "message": "The 'query' field is required"
  }
}

无效的search_type

400 Bad Request
{
  "error": {
    "code": "bad_request",
    "message": "Invalid search_type. Must be one of: classic, news, maps, images, lens"
  }
}

无效的API密钥

401 Unauthorized
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing API key"
  }
}

积分不足

402 Payment Required
{
  "error": {
    "code": "insufficient_credits",
    "message": "No credits remaining. Please upgrade your plan or purchase additional credits."
  }
}

速率限制

429 Too Many Requests
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Retry after 30 seconds."
  }
}

最佳实践

  • 在解析响应体之前始终检查HTTP状态码
  • 使用 error.code 字段进行程序化错误处理
  • 使用 error.message 字段进行日志记录和调试
  • 为429和500错误实现带指数退避的重试逻辑
  • 不要重试400或401错误 -- 先修复请求
ScavioScavio

面向AI智能体的实时搜索API。搜索所有平台,不仅仅是Google。

产品

  • 功能
  • 定价
  • 控制台
  • 联盟计划

开发者

  • 文档
  • API参考
  • 快速开始
  • MCP集成
  • Python SDK

替代方案

  • Tavily替代方案
  • SerpAPI替代方案
  • Firecrawl替代方案
  • Exa替代方案

工具

  • JSON格式化
  • cURL转代码
  • Token计数器
  • 全部工具

© 2026 Scavio. 保留所有权利。

Featured on TAAFT
服务条款隐私政策