Skip to content
Meta Ad Library scraper is live, spy on any brand's adsExplore
All docs
Reference / Python SDK

Python SDK

A thin, typed client over the REST API. Sync and async, automatic retries, and helpers for crawl pagination.

Install

pip install arrowcrawl

Scrape

from arrowcrawl import ArrowCrawl

ac = ArrowCrawl(api_key="ac_live_...")

result = ac.scrape(
    url="https://www.flipkart.com/product/p/itm123",
    formats=["markdown", "json"],
    schema={"name": "string", "price": "number"},
)
print(result.json)

Async

import asyncio
from arrowcrawl import AsyncArrowCrawl

async def main():
    ac = AsyncArrowCrawl(api_key="ac_live_...")
    res = await ac.scrape("https://example.com")
    print(res.markdown)

asyncio.run(main())

Crawl with pagination

for page in ac.crawl("https://example.com", max_depth=2, limit=500):
    print(page.url, len(page.markdown))

Marketplace

product = ac.marketplace("amazon_in",
                         url="https://amazon.in/dp/B0...", mode="rich")
print(product.title, product.price, product.variants)
NextWebhooks & Live Scrapers