# Use FoxAPIs in Google Sheets: connect and first prompts

Source page: https://foxapis.com/integrations/google-sheets/
All pages for agents: https://foxapis.com/llms.txt

[Home](https://foxapis.com/) · [Integrations](https://foxapis.com/integrations/) · Google Sheets

# Use FoxAPIs in Google Sheets.

Google Sheets can run your own functions written in Apps Script, so a FoxAPIs lookup can sit in a cell formula. FoxAPIs adds sourced people and company facts, paid per call in credits (nothing is charged when a call returns nothing): [what it can answer](https://foxapis.com/mcp/), [prices](https://foxapis.com/pricing).

## Connect FoxAPIs to Google Sheets

Your key starts with fxp_. The REST address is https://api.foxapis.com; the MCP address for tools that accept one is https://foxapis.com/mcp.

- Open your sheet, choose Extensions > Apps Script, delete any code in the editor, paste the file Code.gs from the repository linked below and save (these are the steps in Google's custom functions guide).
- Store your key as a script property named FOXAPIS_KEY: Google's properties guide says script properties can be managed manually through the project settings page.
- In a cell, type one of the three formulas below. Start with a few rows.

### Cell formulas (Code.gs from github.com/OsakaSaul/foxapis-google-sheets, MIT)

```
=FOXAPIS_FINDEMAIL("acme.com", "Jane Example")
=FOXAPIS_FORMD("CA", 10)
=FOXAPIS_LAYOFFS("Acme", 10)
```

Sources: Google Apps Script, Custom Functions in Google Sheets (https://developers.google.com/apps-script/guides/sheets/functions) and the Properties Service guide (https://developers.google.com/apps-script/guides/properties), read 2 December 2026. Code: https://github.com/OsakaSaul/foxapis-google-sheets .

Get a key at [the sign-up page](https://foxapis.com/trial). The tools and the price of each call are listed on [the MCP page](https://foxapis.com/mcp/); the REST reference is [the developer docs](https://foxapis.com/docs/) and the whole API as a file is [openapi.json](https://foxapis.com/openapi.json).

## Three Google Sheets prompts that name FoxAPIs

- Build a lead card: enrich the founder of acme.com with FoxAPIs and show the sourced fields.
- Use FoxAPIs to find a work email for Jane Example at acme.com, and say so when nothing is found instead of guessing.
- Add a "Check this company" button that calls FoxAPIs from the cell formula and shows what it returns with its sources.

## Keep the key safe in Google Sheets

- Call FoxAPIs from a backend or an edge function, and keep the key as a secret there. Never put it in code that runs in a visitor's browser.
- Set a monthly credit limit for the key on your [account page](https://foxapis.com/account) before you share a project.
- If a key is ever pasted into a chat or a public file, delete it and create a new one.

## Start Google Sheets from a template

Open-source starter apps that call FoxAPIs: a lead finder, a company check, a funding tracker and a Supabase edge function. Each one has a Deploy on Vercel link that asks for your key. [foxapis-templates on GitHub](https://github.com/OsakaSaul/foxapis-templates)

## The one thing to know about Google Sheets

Google's guide says a custom function must finish within 30 seconds and may use URL Fetch, Properties and Cache among the supported services. Dragging a formula down a long column makes one call per row; the repository's functions keep each answer for six hours so a recalculation does not repeat a paid call, but try a few rows first. We tested the functions against stand-ins for the Apps Script services, not inside a live sheet.

FoxAPIs is not affiliated with or endorsed by Google Sheets. Config shapes are shown as that tool's own documentation describes them; where we did not run one, the page says so.

[All integrations](https://foxapis.com/integrations/) · [MCP server](https://foxapis.com/mcp/) · [Developer docs](https://foxapis.com/docs/)
