Playground Sign in Start free
Crawl API

Start URLs in. The whole site out.

Give the crawler a few start URLs and your rules. It follows the links, reads every page with the same rendering, proxies and block handling as the Scrape API, and hands each page back as Markdown or HTML, with its links and an honest status. You set the cap; the job never goes past it.

2,000
pages per job
1 to 30
credits per page, by format and proxy
Free
URL listing (sitemap mode)
POST /crawl
POST /crawl
{
  "urls": ["https://docs.example.com/"],
  "scope": {
    "include": ["/guides/**"],
    "max_depth": 3,
    "max_pages": 200
  },
  "format": "markdown",
  "max_credits": 2000
}

→ 202 Accepted
{ "job_id": "c_…", "status": "pending" }

GET /crawl/{id}/pages?after=0&limit=50
→ {
  "pages": [
    { "url": "…/guides/setup",
      "state": "done", "depth": 1,
      "credits": 10, "title": "Setup" },
    …
  ],
  "next_after": 50
}
How it works

A crawl is a job you control

Start it, follow its progress, read the pages as they come in. Every page is one read by our API, billed like a direct call.

Your scope, your rules

Up to 20 start URLs, the hosts to stay on (with or without subdomains), include and exclude path patterns, a maximum depth and a maximum number of pages.

Markdown or HTML

Markdown with the fit, raw or bm25 filters, or the page HTML. JavaScript rendering, the proxy type and what to wait for are set once for the whole job.

A hard credit cap

Ask for a quote before you start. max_credits stops the job before it would go past your cap, so a crawl never surprises the account.

Honest page states

Every page says what happened: done, blocked, not found, timeout, robots, duplicate. A site that refuses the crawler reads as blocked, never as an empty site.

Sitemap mode, free

List a site's in-scope URLs from its sitemaps without reading a single page, at no credit cost. Or use the sitemap to seed a crawl.

Polite by default

robots.txt and Crawl-delay are honoured, pages in flight are bounded per job, and the crawler never solves CAPTCHAs on the sites it reads.

Three calls

Start, poll, read

# 1. Start the job
curl -X POST https://api.ujeebu.com/crawl \
  -H "ApiKey: $UJEEBU_KEY" -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://docs.example.com/"],
    "scope": {"include": ["/guides/**"], "max_depth": 3, "max_pages": 200},
    "format": "markdown",
    "max_credits": 2000
  }'

# 2. Check it (status, counts, credits_used)
curl https://api.ujeebu.com/crawl/$JOB_ID -H "ApiKey: $UJEEBU_KEY"

# 3. Read the pages, 50 at a time, with their content
curl "https://api.ujeebu.com/crawl/$JOB_ID/pages?after=0&limit=50&content=true" -H "ApiKey: $UJEEBU_KEY"
import os, time, requests

BASE = "https://api.ujeebu.com/crawl"
H = {"ApiKey": os.environ["UJEEBU_KEY"]}

job = requests.post(f"{BASE}", headers=H, json={
    "urls": ["https://docs.example.com/"],
    "scope": {"include": ["/guides/**"], "max_depth": 3, "max_pages": 200},
    "format": "markdown",
    "max_credits": 2000,
}).json()

while not requests.get(f"{BASE}/{job['job_id']}", headers=H).json()["finished"]:
    time.sleep(10)

after = 0
while True:
    r = requests.get(f"{BASE}/{job['job_id']}/pages", headers=H,
                     params={"after": after, "limit": 50, "content": "true"}).json()
    for page in r["pages"]:
        print(page["state"], page["url"])
    if not r["has_more"]:
        break
    after = r["next_after"]
const BASE = "https://api.ujeebu.com/crawl";
const H = { ApiKey: process.env.UJEEBU_KEY, "Content-Type": "application/json" };

const job = await (await fetch(`${BASE}`, {
  method: "POST", headers: H,
  body: JSON.stringify({
    urls: ["https://docs.example.com/"],
    scope: { include: ["/guides/**"], max_depth: 3, max_pages: 200 },
    format: "markdown",
    max_credits: 2000,
  }),
})).json();

let status;
do {
  await new Promise(r => setTimeout(r, 10000));
  status = await (await fetch(`${BASE}/${job.job_id}`, { headers: H })).json();
} while (!status.finished);

for (let after = 0; ;) {
  const r = await (await fetch(`${BASE}/${job.job_id}/pages?after=${after}&limit=50&content=true`, { headers: H })).json();
  r.pages.forEach(p => console.log(p.state, p.url));
  if (!r.has_more) break;
  after = r.next_after;
}
Use cases

What a crawl is good for

Docs and help centers into a RAG index

Crawl a documentation site to Markdown with the fit filter, include only the guides, and refresh the index on your own schedule.

Read the use case
Whole directories, not page by page

Read every listing and detail page of a business directory, a conference site or a job board with include patterns and a page cap.

Site inventories and audits

Sitemap mode lists every in-scope URL for free; crawl mode adds the status, title, canonical address and outbound links of each page.

Read the use case
Catalog snapshots

Category pages with pagination as HTML, without JavaScript at 1 credit a page, ready for your own parser.

Read the use case
Questions

What people ask before they build.

What is a crawl API?

A crawl API reads a whole website for you. You give it start URLs and rules, it follows the links and returns every page it reads. Ujeebu runs a crawl as an asynchronous job: start it, check its progress, then read the pages as Markdown or HTML, each with its links and status.

How much does a crawl cost?

Each page costs what the same page costs as a direct call: 10 credits as Markdown, 1 credit as HTML without JavaScript, 5 with JavaScript rendering. A job that names a premium or residential proxy pays that proxy's price for every page, up to 30 credits a page. Failed, blocked and timed-out pages are free, and so are pages skipped by robots.txt; listing a site's URLs in sitemap mode is free too. POST /quote gives the price per page and the ceiling before you start, and max_credits stops the job before it would go past your cap.

Does the crawler respect robots.txt?

Yes. robots.txt is read for the UjeebuBot token, then for the generic rules. A disallowed page is skipped and never fetched, and a Crawl-delay is honoured up to 30 seconds per host.

How big can a crawl be?

Up to 2,000 pages per job (max_pages, 100 by default) and up to 20 links deep from the start URLs (max_depth, 3 by default), from 1 to 20 start URLs. A job runs for at most 6 hours, and an account can run 2 jobs at the same time.

Can I list a site's URLs without reading every page?

Yes. With mode "sitemap" the job lists the in-scope addresses from the site's sitemaps, with no page calls and no credits. In crawl mode, use_sitemap also starts from those addresses.

What happens when a site blocks the crawler?

Every page says why it has no content: blocked, not_found, timeout, robots, duplicate, busy or stopped, with a message. A site that refuses every page reads as blocked, never as an empty site, and blocked pages are not billed. The crawler never asks for a CAPTCHA to be solved: a bot check is recorded as blocked.

How do I get the results?

Poll the job for its status and counts, then read the pages in order, up to 50 at a time with a cursor, so a reader that stops can pick up where it left off. A webhook can tell you when the job ends, and every finished job also has an archive to download (a manifest plus one file per page). Results are kept for 72 hours.

Crawl your first site

Every plan includes Crawl, the free trial too. Quote a site for free, then crawl it with a hard credit cap.