Skip to main content
This guide walks through a complete workflow: pick a crawler, configure a squid, add tasks, run it, and download results — all via the API.

Prerequisites

You’ll need an API key. Find it in your lobstr.io dashboard under API in the sidebar. Set it as an environment variable to use in the examples below:

Step 1: Verify your credentials

Confirm your key is working before proceeding.
Python

Step 2: Find a crawler

Crawlers define what site you’re scraping. List available crawlers and pick the one you need.
Python
Note the id of the crawler you want to use. For example, the Google Maps Reviews crawler.

Step 3: Create a squid

A squid is your configured scraping project — it ties together a crawler, your settings, and your tasks.
Python

Step 4: Add tasks

Tasks tell the squid what to scrape — typically URLs or search queries. The accepted keys depend on the crawler (use Get Crawler Parameters to check).
Python

Step 5: Start a run

A run executes all pending tasks in the squid.
Python

Step 6: Poll until complete

Check the run status periodically until it reaches a terminal state.
Python
Typical runs complete in seconds to a few minutes depending on task count and concurrency. Avoid polling more frequently than every 5 seconds.

Step 7: Download results

Once the run is done, fetch your data.
Python
For large datasets, iterate through pages using the page parameter. See the Pagination guide for details.

Complete example