Files API for Google Drive and OneDrive

Upload, list, download and share files in your users' Google Drive and OneDrive with one REST API, with a webhook when files change.

  • Drive + OneDrive
  • Share links
  • Webhooks
FilesGET /v1/files
Q4 report.pdfUploaded via API, 2.4 MB
Pipeline.xlsxShared with a link
Pitch deckPicked by the user
ContractsFolder, 12 items
file.pickedPitch deck, picked in Google Picker

Join 200,000+ of the world's most ambitious developers and builders

Warner Music Group
MoFlo
ClickUp
Readdy
RE/MAX
Moving Monkey®
Supported platforms

One API. Google Drive and OneDrive

Connect a Google or Microsoft account and call the same file endpoints for both

  • Google Drive
  • Gmail
  • Google Calendar
  • Google Contacts

Google Drive, file by file

Files your app uploads or the user picks in Google Picker, nothing else in their drive.

Explore Google
  • OneDrive
  • Outlook
  • Outlook Calendar
  • Outlook Contacts

OneDrive, the whole drive

List, search, upload and share across the user's OneDrive.

Explore Microsoft
How it works

From signup to first upload in three steps

1

Key name

e.g., Production API key

Permission

Read & write

Read only

Profile access

Full access (all profiles)

Create key

Get your API key

Sign up free and create a key in the dashboard.

2

Profile

Default
Google
emailcalendarfilescontacts
Microsoft
emailcalendarfilescontacts

Connect Google or Microsoft

Request a connect link with the areas you need. Each account gets an ID for API calls.

3

POST /v1/files

curl -X POST "https://zernio.com/api/v1/files" \
-H "Authorization: Bearer $ZERNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_xxx",
"name": "Q4 report.pdf",
"contentType": "application/pdf",
"url": "https://cdn.acme.com/q4-report.pdf"
}'

Upload to their drive

POST /v1/files takes a file or a public URL and returns the stored file.

Features

Everything you need for files

Browse

  • List foldersChildren of any folder, folders first
  • Search by nameAcross the drive, shared drives included
  • DownloadDocs as PDF, Sheets as XLSX
  • File detailsName, type, size and parent

Write

  • Upload a fileMultipart, resumable for large files
  • Upload from a URLFetched for you, up to 100 MB
  • Convert on uploadTo Google Docs, Sheets or Slides
  • Create foldersAnywhere in the drive
  • Rename and moveOne PATCH for either
  • TrashRecoverable from the drive's bin

Share and listen

  • Share linksView link for anyone holding it
  • Google PickerHosted page for the user to pick files
  • drive.file scopeOnly files you created or were given
  • file.*Created, updated, deleted and picked
Social media API

More on the same API key

Posting, DMs, analytics and ads run on the same API as your users' drives.

Posting API

Publish, schedule, and manage content across 16 platforms

Simon Fairhurst@siimonfairhurst
Ads API

Campaigns, boosts, and ad analytics in one API

Meta Ads

Pricing launch

$412

Summer Sale

$40/day

Active

Retargeting

$30/day

Paused
Messaging API

Every DM, one API

@leahmarx Ship to Berlin?

@sofia In stock? 😍

@casa.lumen Order update? 🙌

Analytics API

Every metric, one endpoint

Views18.4K
Likes3,410
Views31.9K
Comments58
Total reach · last 7 days184.6K+12.4%
Comments API

Moderate every comment

sarah.klein

Does this cover Threads as well?

ReplyDMHide

lauravisuals

Shipped our whole calendar with this 🙌

ReplyDMHide

nate_builds

Any way to schedule a carousel?

ReplyDMHide
Comments to DM API

Turn comments into DMs

@lucia_dev Guide 🙌

@andrewww_ Guide

lucia_dev

Here's the guide 👇 · now

andrewww_

Here's the guide 👇 · 1m

Scheduler API

Schedule posts in every timezone

Simon Fairhurst@siimonfairhurst

Q3 recap is live 📈 Everything we shipped this quarter, in one place.

Tue, Oct 14 · 09:00

Inbox API

One inbox for comments, DMs, and reviews

All platformsAll profilesAll accounts

Olly Bennett

· via +44 7700 900456

Are you open on Sunday?

2m

Diego

· via +1 646 555 0199

Is my order ready to pick up?

6m

Nadia Okafor

· via @nadia.okafor

Love the new drop 😍

9m

Vela Notifications

· via #orders

New order #4821 from Lisbon

20m

Elias Duarte

· via Google review

★★★★★ Worth the queue

1h

Frequently asked questions

Add Google Drive and OneDrive to your app

Connect a drive, upload the first file and get a webhook when it changes.

  • Drive + OneDrive
  • Share links
  • Webhooks