Use FoxAPIs in Lovable.
Lovable builds an app from a chat. Two different things matter: what its assistant can use while you build, and what your finished app calls when people use it. 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 Lovable
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.
- While you build: if the builder's settings let you add a custom MCP server, add the address below and your key as a bearer header, so the assistant can read the FoxAPIs tools. Open the builder's own docs for the exact screen; its field names were not confirmed for this page.
- For the app you ship: a connector in the build chat does not travel with the app. Put the key in the app's backend as a secret and call FoxAPIs from a function, as in the snippet.
Edge function for the finished app (Supabase)
// Supabase edge function: the key stays a secret, the browser only calls this function.
Deno.serve(async (req) => {
const { website, name } = await req.json();
const r = await fetch("https://api.foxapis.com/v1/find_email", {
method: "POST",
headers: { Authorization: "Bearer " + Deno.env.get("FOXAPIS_KEY"), "Content-Type": "application/json" },
body: JSON.stringify({ website, name }),
});
return new Response(await r.text(), { status: r.status, headers: { "Content-Type": "application/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 Lovable 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 edge function and shows what it returns with its sources.
Keep the key safe in Lovable
- 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 Lovable
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 Lovable keeps standing instructions for a project (a rules or knowledge setting). The name and place of that setting are in Lovable's own docs; we did not confirm them for this page.
Start Lovable 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 Lovable
Chat connectors in Lovable-style builders are for the building session. The shipped app needs its own call, from a backend function that holds the key.
FoxAPIs is not affiliated with or endorsed by Lovable. Config shapes are shown as that tool's own documentation describes them; where we did not run one, the page says so.