Integrate any API with Lovable
You can connect your app to any internet-accessible service using a managed connector or by asking Lovable to call it directly. Lovable keeps private keys secure by storing them encrypted away from your visitors.
Anyone who needs their app to pull data or perform actions using an outside service or API.
Do this, in order
- 1
Pick a connection method based on your needs: use an existing connector, create a custom connector under Connectors > Add custom, or choose a direct connection.
Connectors keep credentials safely managed across your team, while direct integrations let you quickly connect services or embed widgets right inside your app.
- 2
Describe the external service to Lovable in the chat, including the website address, documentation link, and what data you want to fetch.
Lovable needs the address and instructions to write the code that asks for and displays the data.
- 3
Enter any required private key into the Add Secret popup window instead of typing it directly into the chat message.
This protects sensitive credentials from being recorded in your chat logs or exposed to people using your app.
Paste this into your project
Integrate the OpenWeatherMap API into a weather widget on my page. Base URL: https://api.openweathermap.org/data/2.5. Auth: API key passed as a query parameter named 'appid'. Endpoint: GET /weather?q={city}&units=metric&appid={API_KEY}. Allow users to enter a city name to view the current weather. Please prompt me with the Add Secret dialog when you need the API key.Words decoded
- API
- A structured way for two different computer programs or websites to talk to each other and exchange information.
- Custom connector
- A reusable setup in Lovable that lets your entire workspace securely connect to an external tool without exposing secret passwords.
- Secret
- A private password or API key stored securely so that visitors to your website cannot see or steal it.
Where people get stuck
- Do not paste private API keys directly into the chat; wait for the Add Secret dialog so they remain hidden.
- Do not try to connect services hosted inside a private local network; they must be reachable from the public internet.
- Do not build a full custom API call if the service already offers a simple embeddable widget (like a booking calendar or review wall).
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.