Google 自定义搜索引擎错误代码 403:未配置访问

Google Custom Search Engine Error Code 403 : Access Not Configured

我正在尝试使用 Google 自定义搜索 API 我遵循了 Custom Search 文档,我完成了控制面板的工作并获得了搜索引擎 ID,实施了 API 并从开发者控制台获得了 API 密钥

Public API 访问密钥 - AIzaSyC0m8w-NEP3yrKolboNbPLbhlhmHJc_cB0

搜索引擎 ID - 005717290701474541337:1mc_u_r_i94

https://www.googleapis.com/customsearch/v1?&key=AIzaSyC0m8w-NEP3yrKolboNbPLbhlhmHJc_cB0&cx=005717290701474541337:1mc_u_r_i94&q=paris

在提出上述要求后,我得到了这个结果

 {
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
    "extendedHelp": "https://console.developers.google.com"
   }
  ],
  "code": 403,
  "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
 }
}

我没有得到预期的结果,所以请帮助.. 谢谢

一切正常,可能是API关键问题。 尝试为可能有效的浏览器创建一个 API 密钥