App Logo

1,384 official scripts

Tested scripts for the sites people automate most, ready for your agent to run.

Results for “pay.google.com”
pay.google.com

Download a Google Payments invoice (Google One, YouTube, Google Play)

Download the invoice PDF of one Google charge, such as a Google One or Google AI plan, YouTube Premium, or a Google Play purchase (pay.google.com > Activity > Transaction details > Download tax invoice). Pass the row's transaction label as returned by pay.google.com/list_transactions (e.g. "12 Mar · 100 GB (Google One)"); the first (newest) matching row wins. Returns Google's filename and the path where the browser saved the PDF (or a url to it on a managed browser), so you can read or move it directly.

pay.google.com

List Google Payments activity (Google One, YouTube, Google Play charges)

List the signed-in Google account's payments activity (pay.google.com > Activity): every Google charge, such as Google One storage and Google AI plans, YouTube Premium, and Google Play purchases and subscriptions. One row per transaction with merchant, transaction label (e.g. "12 Mar · 100 GB (Google One)") and amount, newest first. The transaction label is the join key for pay.google.com/download_tax_invoice, which downloads that charge's invoice. Scrolls until max rows or the list runs out.

pay.google.com

Google Pay whoami

Report which Google account this browser uses on Google Pay (email and name) and whether it has a Google Pay payments profile. Without one, Google Pay sends the account to its sign-up page and Google Pay scripts have nothing to read. When the browser is signed out of Google, the run fails with a signed-out error that asks to sign in.

google.com

Remove a place from a Google Maps list

Remove one Google Maps place from one of your saved lists, such as Favorites, Want to go or a list you made. Give the place by its place id (from search_places or get_place) or by a query that names one place, and the list by its name. When several Google accounts are signed in on the browser, choose one by its index from mail.google.com/list_accounts; the default is the browser's first account. Returns the place's name, the email of the account it was removed for, and whether it was removed now or was not in that list, so running it twice changes nothing. The place stays in the account's other lists. A query that Maps answers with a list of places fails and asks for search_places. A list name the account does not have fails and names the lists it has. This undoes save_place.

gemini.google.com

Search Gemini chats

Search your Gemini conversations (the "Search chats" box): server-side full-text over titles and message bodies.

admin.google.com

Google Workspace unofficial API: list your invoices by date range

An unofficial Google Workspace API for billing invoices. List Google Workspace billing documents from the Admin Console for one date range (This month … All time) and one format (CSV or PDF). Returns account and invoices (label, format, createdDate, invoiceNumber) — metadata only. Feed a row's label, with the same dateRange and format, to admin.google.com/download_invoice to get the file.

docs.google.com

Sheets: delete tab

Delete one tab of a Google Spreadsheet by gid. Returns deletedGid and remainingTabs (names left). The sheet's data goes with it (recover via Undo / Drive history); an unknown gid throws rather than risk deleting the wrong sheet; needs edit rights.

calendar.google.com

List Google Calendar events

List the signed-in Google Calendar account's events between two dates, across every calendar shown in the sidebar, or one calendar with calendarId (from list_calendars). Each occurrence of a repeating event is its own row, with recurring_event_id set to its series. Returns n and events (id, eid, title, all_day, start, end, timezone, location, description, calendar, organizer, attendees with response status, created, html_link). Times are UTC; all-day events use dates, with an exclusive end. One call covers up to one year. Pass eid to get_event, update_event, delete_event, add_conference_link or respond_invitation. Google Tasks and birthdays are not included.

docs.google.com

Sheets: write cells

Write a 2D block of values into one tab of a Google Spreadsheet, top-left at startCell, like the Sheets API: null leaves a cell as it is, "" clears it, anything else replaces it as if typed (dropdown rules and formatting stay; clearing a dropdown cell removes its dropdown). Returns range, rows, cols, saved once every edit is saved. A value the sheet refuses (data validation, outside the grid) stops the run with the sheet's own message. Values are parsed per the spreadsheet locale ("1.5" in a FR sheet becomes 1 May; prefix ' to force text); leading = enters a formula; needs edit rights.

docs.google.com

Sheets: read tab values

Read one tab of a Google Spreadsheet as a 2D array of display values. Returns values (row-major, '' for empty and non-top-left merged cells), nRows, nCols. Values are display strings after formatting (a date may read as "1.5").

search.google.com

Inspect a URL in Google Search Console

Run Google Search Console's URL Inspection for one page of a property and return what Google's index holds for it: whether the URL is on Google, its coverage state as Search Console names it (for example submitted_and_indexed, crawled_currently_not_indexed, url_unknown), when Google last crawled it, the sitemaps that list it, the pages that link to it, and the canonical the page declares. Lists are empty and the last crawl is null when Google has none. Takes the property as search.google.com/list_properties returns it, and the Google account to act as, by its number from mail.google.com/list_accounts. A URL outside the property, or an account that cannot open it, fails with a message that says so.

google.com

Create a Google Workspace user (Admin console)

Creates a new user in the Google Admin console (Workspace) under the domain of the given admin account: fills first/last name, primary email local-part, optional secondary (personal) email, submits with an auto-generated 16-char password, and optionally sends the native "set your password" login-instructions email to the secondary address. Returns the created email and generated password. The admin account must already be signed in to this browser, with a session recent enough that Google does not ask to confirm the password again — when it does, the script stops before touching anything and tells you to sign in once by hand.

docs.google.com

Sheets: rename spreadsheet

Rename a Google Spreadsheet (its title, not a tab) and return the title shown after the save. Needs edit rights. Pass authuser when the browser is signed in to several Google accounts.

docs.google.com

Google Drive: reject a signature request

Reject (decline to sign) a Google Docs / Drive eSignature request addressed to the signed-in account. Google then cancels the whole request for every signer. Takes the PDF link from list_signature_requests or the request email. Returns the account that rejected and the request's status afterwards. Refuses when the account is not a signer, has already signed or rejected, or the request is no longer open. When the browser is signed in to several Google accounts, pass the account to act as.

calendar.google.com

Add Google Meet link to a Calendar event

Add a Google Meet video-conferencing link to an existing Google Calendar event, by its eid. Safe to repeat: if the event already has a conference link, nothing changes and the existing link is returned. Returns the event's Meet link, verified by reopening the saved event.

play.google.com

Get Google Play app details

Fetch an Android app's store listing details: name, description, developer, category, rating, review count, price, and icon. No login required.

mail.google.com

Gmail — Apply or remove a label on a thread

Apply a label to a Gmail thread by its hex threadId, optionally creating the label first, or take the label off again with remove:true. A thread already in the requested state is reported as a no-op without clicking. Takes a received thread — Gmail renders no conversation heading for a thread you sent to yourself, so those are refused rather than risk labelling the wrong thread.

docs.google.com

Export a Google Sheets spreadsheet

Download a Google Sheets spreadsheet as a file in the format you choose. Returns the file name and where it was saved: a local path on your own Chrome, or a link on a cloud browser. xlsx, ods, pdf and zip hold the whole spreadsheet; csv and tsv hold one tab, chosen by its tab id.

docs.google.com

Google Docs: add text at the end of a document

Add text at the end of a Google Doc you can edit, then read the document back to confirm it. Each line becomes a paragraph after the last one, added exactly as given (no automatic lists or curly quotes). Refuses when the account can only view or the document is in Suggesting mode. When the browser is signed in to several Google accounts, pass the account to act as.

mail.google.com

Send a Gmail draft

Send an existing Gmail draft by its id from mail.google.com/list_drafts: a new message, or a reply saved inside a conversation. Delivers a real message that cannot be undone. Returns the recipients, subject and conversation id. Fails with nothing sent for an unknown id or a draft with no recipient. Sending a reply opens its conversation, which marks it as read. Pass account (an email) when several Google accounts share the browser.

mail.google.com

List Google accounts signed in on this browser (Gmail)

List the Google accounts signed in on this browser, as the Gmail account switcher shows them. Each account comes back with its address, the index that addresses it in a Google URL, and whether it is the one Gmail opens by default. The index is what the other Gmail scripts take as their account argument, so this answers which account a script acts as when none is given.

calendar.google.com

Search Google Calendar events

Search the signed-in Google Calendar across all its calendars, as the Calendar search box does. The query matches event content (title, description, location), not calendar names. Returns count, complete, timezone and events (id, calendar, eid, title, all_day, start, end, location), with start and end as wall-clock times in that timezone. Calendar returns 200 events at most, the nearest to today: complete is false when more matched, and there is no next page, so narrow the query or use list_events for a date range. Pass eid to get_event, update_event or delete_event.

drive.google.com

Create Google Drive folder

Create a new folder in Google Drive, optionally inside a given parent folder. Returns the new folder's id and name.

drive.google.com

Move a Google Drive file to another folder

Move a file to a different folder in Google Drive, given the file's id and the destination folder's id.

docs.google.com

Google Docs: request eSignatures on a document

Send a Google Doc out for eSignature: Google makes a PDF copy and emails each signer a link to sign it. Signers are given in the order of the document's signer roles (Signer one, Signer two, ...). When the document has no fields yet, it adds one signer role per email (up to 10) and one Signature field per signer at the end of the document. Returns the PDF's link, which sign_document, get_signature_request and cancel_signature_request take. Google asks to confirm before sharing with signers outside the sender's organisation: pass allowExternal only when the user agrees, otherwise nothing is sent. Use dryRun to check the request without sending it. Needs edit access and a Google account that has eSignature (most Workspace plans and Google One Premium). When the browser is signed in to several Google accounts, pass the account to act as.