2015-01-15 51 views
2

我正在嘗試使用谷歌自定義搜索API 我跟着Custom Search文檔,我完成了控制面板的東西,並獲得了搜索引擎ID以及實現的API,並得到1mc_u_r_i94Google自定義搜索引擎錯誤代碼403:訪問未配置

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

01: - AIzaSyC0m8w-NEP3yrKolboNbPLbhlhmHJc_cB0

搜索引擎ID - 005717290701474541337從開發者控制檯

公共API訪問鍵的API密鑰

,使上述要求後,我得到這個結果

{ 
"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." 
} 
} 

我沒有得到預期的結果,所以請幫助.. 感謝

回答

2

一切似乎是確定,它可能是一個API關鍵問題。 試着爲瀏覽器創建一個API密鑰它可能工作

+0

哦,是的,這是我用過的Android密鑰。謝謝 – Abhishek