Irmu
Guides6 minIrmu Engineering

How to Build a Web Scraper App in Lovable in 10 Minutes

Connect Irmu to Lovable, ask the agent for a price tracker, and ship an app that scrapes live pages from the server with your own API key.

What you will build

A small app where you paste product URLs and it shows each product's current price, refreshed on demand. Lovable writes the app; Irmu fetches the pages, including ones that need JavaScript or block plain requests.

Step 1: connect Irmu so the agent can read pages

In your Lovable project open Connectors, add a custom MCP server with https://app.irmu.com/mcp and sign in. Now the agent can look at a real product page before writing the extraction code, instead of guessing the layout.

Full copy-paste setup steps: /docs/lovable

Step 2: store your key and ask for the app

Ask Lovable to save your Irmu API key as a secret named IRMU_API_KEY. Then prompt: "Build a price tracker. Users paste product URLs; a server function calls Irmu GET /crawl with the URL and returns name and price. Handle 202 responses by polling GET /crawl/{job}."

Mentioning the 202 polling matters: slow pages return a job id instead of data, and an app that doesn't poll shows an empty result.

Step 3: check the cost before you publish

Each refresh is one GET /crawl call: 1 credit for a plain page, more with JavaScript rendering or premium IPs. Ask the agent "How many Irmu credits do I have left?" and it uses the usage tool to tell you.

  • Need clicks or pagination? Use a browser recipe (POST /crawl) — see /docs/recipes.
  • Only scrape sites you have permission to collect data from.

Endpoints used in this guide

Start building with Irmu today

200 free credits every month, no card required. Every API, every integration, one key.