Use FoxAPIs in Replit.
Replit runs your code in a hosted workspace, so a FoxAPIs call is ordinary server code with the key held as a secret. FoxAPIs adds sourced people and company facts, paid per call in credits (nothing is charged when a call returns nothing): what it can answer, prices.
Connect FoxAPIs to Replit
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.
- Create a key at the sign-up page and add it to the project's secrets under the name FOXAPIS_KEY (the exact settings screen is in Replit's docs; we did not confirm its labels).
- Call FoxAPIs from server code, as in the snippet. If you want the assistant itself to use the tools, add the MCP address below where Replit's docs say remote servers are added.
A server-side call
// Server code (a route handler or a function): read the key from the environment, never from the browser.
const r = await fetch("https://api.foxapis.com/v1/find_email", {
method: "POST",
headers: { Authorization: "Bearer " + process.env.FOXAPIS_KEY, "Content-Type": "application/json" },
body: JSON.stringify({ website: "acme.com", name: "Jane Example" }),
});
const data = await r.json();
Get a key at the sign-up page. The tools and the price of each call are listed on the MCP page; the REST reference is the developer docs and the whole API as a file is openapi.json.
Three Replit 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 server route and shows what it returns with its sources.
Keep the key safe in Replit
- 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 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.
A rules file for Replit
A plain-text file for the agent that writes your code: the key stays a server-side secret, calls are made from the server, every fact keeps its source, an empty field stays empty, and one real call with its real answer. Download foxapis-agent-rules.txt.
Put its text where Replit keeps standing instructions for a project (a rules or knowledge setting). The name and place of that setting are in Replit's own docs; we did not confirm them for this page.
Start Replit 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
The one thing to know about Replit
Keep the key in the secrets store, not in the file tree, and not in code that runs in the visitor's browser.
FoxAPIs is not affiliated with or endorsed by Replit. Config shapes are shown as that tool's own documentation describes them; where we did not run one, the page says so.