Skip to main content

Call it with no key

This real response is cut to a few fields.
That is the page as markdown. Search, scrape, map and parse work like this with no key, up to 10 calls a minute and 50 a day. See Rate limits.

Get a key

Sign up at stophy.dev/signup. Your account starts with 5,000 free credits, and most calls cost 1 credit. Create a key and save it as STOPHY_API_KEY. An agent can get a key with no human at the keyboard: Sign up returns a link for its person to approve.

Call it with your key

This real response is cut to one result per source.
creditsUsed is what the call cost in credits. This search of web and news cost 4: 2 credits for each source. See Pricing.

Read a site as JSON

To get a site’s own data, send its page to scrape with a parser:
The posts come back in data.json. See Parsers.

Crawl a site

Crawl reads many pages in the background. Start it, poll about every 2 seconds until it is completed, then read the pages. Send scrapeOptions.formats to read more than markdown, for example ["markdown","links"], and each page in data has every format the crawl read. Starting is free, and each page costs 1 credit.
A status answer holds up to 100 finished pages. If it has next, call that URL for the rest. See Page through results.

Scrape many pages

Batch scrape takes a list of URLs and works the same way. Poll https://api.stophy.dev/v1/batch/scrape/<id> about every 2 seconds until status is completed. Each page in data has the same shape as a scrape.

Next

Parsers

Read Reddit, YouTube, Google Maps and 100 more sites as JSON.

Crawl a site

Read every page of a site in the background.