2 min read
Custom Search API 403 "does not have the access": the fix
New Google Cloud projects get 403 PERMISSION_DENIED from the Custom Search JSON API. Why no key or setting fixes it, and the two-line switch.
New AI assistant answers: ChatGPT, Gemini, Copilot and AI Mode by API
Blog
4 posts.
New Google Cloud projects get 403 PERMISSION_DENIED from the Custom Search JSON API. Why no key or setting fixes it, and the two-line switch.
GoogleSearchAPIWrapper calls the Custom Search JSON API, which shuts down January 1, 2027. A one-line patch and a clean replacement, both tested.
Google's Custom Search API costs $5 per 1,000 queries and ends January 1, 2027. What 100k and 1M searches a month cost on SERP APIs instead.
Google closed the Custom Search JSON API to new customers in January 2026 and shuts it down January 1, 2027. The timeline, options and a two-line migration.