Company pages
Company website to JSON
Use this for lead research, competitor positioning, vendor pages, and public business metadata.
curl https://hauntapi.com/v1/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: PASTE" \
-d '{
"url": "https://example.com",
"prompt": "Extract the company name, positioning, product categories, pricing link, and contact page link. Use null for missing fields."
}'
GitHub
GitHub repository intelligence
Prefer the dedicated route for repo metadata. It is cheaper and cleaner than generic page extraction.
curl "https://hauntapi.com/v1/github/repo?owner=browserbase&repo=stagehand" \
-H "X-API-Key: PASTE"
Products
Product or pricing page extraction
Good for public plan tables, pricing cards, product lists, and competitor packaging checks.
curl https://hauntapi.com/v1/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: PASTE" \
-d '{
"url": "https://example.com/pricing",
"prompt": "Extract plan names, prices, monthly limits, and highlighted features as structured JSON."
}'
Docs
Docs page extraction
Turn docs and API references into concise structured facts for agents, QA, and onboarding.
curl https://hauntapi.com/v1/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: PASTE" \
-d '{
"url": "https://docs.example.com/quickstart",
"prompt": "Extract the install command, authentication steps, required environment variables, and first API call."
}'
Reddit
Reddit thread extraction
Use Haunt's dedicated Reddit route. Generic Reddit page scraping is intentionally not the reliable path.
curl https://hauntapi.com/v1/reddit \
-H "Content-Type: application/json" \
-H "X-API-Key: PASTE" \
-d '{"subreddit":"webscraping","sort":"hot","limit":5}'
Hacker News
Hacker News item extraction
Use the public item route for story metadata, points, comment count, author, and source URL.
curl https://hauntapi.com/v1/hackernews/item/40310896 \
-H "X-API-Key: PASTE"