具
Google Drive API
1 endpointUtilitiesGlobalsocial:read1 real examples
Returns the name, view link and direct download link of a public Google Drive file from its share URL or id.
View as Markdown| GET | /googledrive/file | A public Google Drive file by its share URL or id: name, view link and direct download link. |
file
GET
/v1/googledrive/fileA public Google Drive file by its share URL or id: name, view link and direct download link.
scope social:read1 unitcached 5 min
Parameters
urlstring required | Drive file URL (https://drive.google.com/file/d/<id>/view) or the file id. e.g. https://drive.google.com/file/d/1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC/view |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
downloadUrl | string |
id | string |
name | string |
viewUrl | string |
curl "https://api.hoshime.com/v1/googledrive/file?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC%2Fview" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/googledrive/file?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC%2Fview", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/googledrive/file?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC%2Fview", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "downloadUrl": "https://drive.usercontent.google.com/download?id=1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC&export=download&authuser=0", "id": "1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC", "name": "image.jpeg", "viewUrl": "https://drive.google.com/file/d/1CaJig7lPfOqKGtsv34jWophJ1Q1LLhJC/view" }, "meta": { "cached": false, "endpoint": "file", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "googledrive", "requestId": "req_2Xb9kQ…", "units": 1 } }