api_url and use your ZapFetch API key.
Quickstart
Quickstart: Python
Use the official Firecrawl Python SDK against ZapFetch.
The Firecrawl Python SDK works against ZapFetch with two changes: swap the
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the official Firecrawl Python SDK against ZapFetch.
api_url and use your ZapFetch API key.
pip install firecrawl-py
from firecrawl import FirecrawlApp
app = FirecrawlApp(
api_key="YOUR_ZAPFETCH_API_KEY",
api_url="https://api.zapfetch.com",
)
result = app.scrape_url(
"https://example.com",
params={"formats": ["markdown"]},
)
print(result["markdown"])
# Blocking helper — waits for the crawl to finish and returns all pages.
job = app.crawl_url(
"https://docs.example.com",
params={"limit": 50},
wait_until_done=True,
)
for page in job["data"]:
print(page["metadata"]["sourceURL"])
schema = {
"type": "object",
"properties": {
"stories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {"type": "string"},
"points": {"type": "integer"},
"author": {"type": "string"},
},
},
},
},
}
data = app.extract(
urls=["https://news.ycombinator.com"],
params={
"prompt": "Top 5 stories with points and author.",
"schema": schema,
},
)
print(data)