Feed your retrieval index pages that are actually content.
Crawl the URLs your assistant should know, get markdown back, and let the receipt tell you which pages are real content before they're chunked and embedded.
The job
- 1.
Queue the pages
Send up to 100 URLs per call to POST /v1/crawls/batch with output_format set to markdown, and a webhook_url for completion.
- 2.
Gate on content_check
Index only tasks whose receipt says content_check is substantive. A blocked page upgrades to the Rendered or Protected fetch level on its own; a page no level can get comes back with a receipt and costs $0.
- 3.
Chunk with provenance
Carry source_url, fetched_at and content_sha256 onto every chunk so each answer can cite its page and its fetch time.
- 4.
Re-crawl and compare
On the next crawl, compare content_sha256. Unchanged pages don't need re-embedding.
Fields you'll use
- content.markdown
- Page content with headings, lists, tables and code blocks preserved.
- content_check
- substantive, blocked, login_wall, error_page or empty_shell, for the level that returned the page.
- content_check_reasons
- Machine-readable codes behind the verdict, such as status:429 or visible_text_chars:84.
- content_sha256
- Hash of the fetched content. Skip re-embedding when it hasn't changed.
- source_url, fetched_at
- The citation and the freshness stamp for every chunk.
Example
for task in envelope["tasks"]:
r = task["receipt"]
if task["status"] != "completed" or r["content_check"] != "substantive":
continue # held back, billed $0
if seen_hash.get(r["source_url"]) == r["content_sha256"]:
continue # unchanged since last crawl
for chunk in split_markdown(task["content"]["markdown"]):
index.upsert(chunk, metadata={
"source_url": r["source_url"],
"fetched_at": r["fetched_at"],
"receipt_id": r["receipt_id"],
})What it costs
| Unit | Price |
|---|---|
| Standard page | $0.00011 |
| Blocked, empty or error page | $0 |
Index pages you can cite.
Crawl a few of your sources at the published rate and read the receipts before anything reaches your index.