HeadlinesBriefing favicon HeadlinesBriefing.com

Gemini API now reads external URLs, linking Google Workspace instantly

DEV Community •
×

Google’s Gemini API now accepts external URLs, lifting the file size cap to 100 MB and eliminating the need to upload data first. Developers can point the model directly at a public or signed link, cutting latency and simplifying workflows. This change tightens the bond between Gemini and cloud‑based services today.

By using a PDF export URL, the API can ingest Google Sheets, Google Docs, and Google Slides without intermediate storage. A simple Node.js snippet builds a link like `https://docs.google.com/spreadsheets/d/ID/export?format=pdf`, feeds it to Gemini, and receives structured insights. Public sharing unlocks instant data access for developers and analysts everywhere today globally.

When a file is private, Gemini returns an INVALID_ARGUMENT error unless an OAuth 2.0 access token is appended. The token must carry scopes such as `https://www.googleapis.com/auth/spreadsheets.readonly`. Adding `&access_token=TOKEN` to the export URL lets the model fetch protected content securely for enterprise applications that require data privacy and compliance today globally and.

Google Apps Script Web Apps provide a dynamic source: a deployed script can return fresh text or data on each request. Gemini can call the script’s URL, handle HTTP redirects, and process the response in real‑time. This opens doors to live dashboards, automated reports, and conversational agents that stay current.