Home  ·  Developers  ·  Code samples
Code samples

Copy-paste starters
for 9 stacks.

Working code in Python, Node.js, Next.js, React, Vue, Go, Rails, Django, Laravel — each runs Maps Scraper and prints the result.

Copy-pasteable starters for the 9 most-used stacks. Each example runs Maps Scraper, polls for completion, prints the rows. Replace YOUR_KEY with a real key from /app-api.html.

pip install livescraper

from livescraper import Client

client = Client(api_key="YOUR_KEY")

task = client.maps.run(
    query="dental clinics",
    location="Houston, TX",
    radius_km=8,
    max_rows=200,
)
rows = task.wait().rows()
print(f"{len(rows)} rows · {task.credits_used} credits")
IDE & editor

Tools that love our spec.