Bolt.new by StackBlitz is an AI-powered full-stack development environment that runs entirely in the browser. You can use ScrapeGraphAI to add live web scraping capabilities to any Bolt.new application.Documentation Index
Fetch the complete documentation index at: https://docs.scrapegraphai.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Bolt.new can generate Node.js / Express backends alongside your frontend. Make ScrapeGraphAI API calls from the backend to keep your API key secret and avoid CORS errors.Setup
1. Tell Bolt to create an Express backend
Start a new Bolt project and prompt it:Create a full-stack app with an Express backend. Installscrapegraph-js. Add a POST endpoint at/api/scrapethat acceptsurlandpromptfields, callssgai.extractfrom ScrapeGraphAI v2, and returns the structured JSON result.
2. Backend endpoint
Bolt will generate something like this — make sure the API key is loaded from an environment variable:fetch over the SDK, call the v2 REST endpoint directly:
3. Add your API key
In Bolt.new, open the environment variables panel and add:4. Call from the frontend
Example prompt for Bolt
Build a price tracker UI. It should have an input for a product URL and a button. When clicked, it calls the backend /api/scrape endpoint and shows the extracted product name and price in a card.