Skip to content

Quickstart

  1. Get your token.

    Sign in to app.rayobyte.com and open Scraping API → Get Started. Your token is under API Token. One is created for you the first time you open that page.

  2. Scrape a page.

    Terminal window
    curl "http://api.scraping.rayobyte.com/?token=YOUR_TOKEN&url=https://example.com"
  3. Check your balance.

    Terminal window
    curl "http://api.scraping.rayobyte.com/balance?token=YOUR_TOKEN"

The url parameter is a URL inside a URL. If your target has its own query string, encode it or everything after the first & is read as a parameter of our request, not yours.

Terminal window
# Wrong. "page=2" is parsed as an argument to the Scraping API.
curl "http://api.scraping.rayobyte.com/?token=T&url=https://example.com/s?q=x&page=2"
# Right.
curl -G "http://api.scraping.rayobyte.com/" \
--data-urlencode "token=T" \
--data-urlencode "url=https://example.com/s?q=x&page=2"

We may render the page in a real browser and retry it several times before answering. A request can legitimately take tens of seconds. A 10-second client timeout will fail requests that were about to succeed.

Was this page helpful?