metadata + errors envelope:
code and a message. Some errors include additional details.
Error codes
Older API versions use a different error envelope:
{ success: false, code, message, fields }. The error codes above apply to the latest version (2026-05-25).Handling errors
- Check
codeand handle each status explicitly. - For
RATE_LIMIT_EXCEEDED, retry with exponential backoff. - For
UNAUTHORIZED, verify yourapi-keyheader and that the key belongs to the Google News API product workspace. - For
FORBIDDEN, confirm your plan covers the requested API version.