RAG Snapshot Guard
Pricing
$0.50 / 1,000 compared pages
RAG Snapshot Guard
Compare two Website Content Crawler runs to see which pages to re-embed and which are safe to review for deletion, without modifying your search index.
RAG Snapshot Guard
Pricing
$0.50 / 1,000 compared pages
Compare two Website Content Crawler runs to see which pages to re-embed and which are safe to review for deletion, without modifying your search index.
You can access the RAG Snapshot Guard programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "baseline": {12 "scopeId": "docs-v1",13 "allowedOrigins": [14 "https://example.test"15 ],16 "runId": "baseline",17 "capturedAt": "2026-10-31T00:00:00.000Z",18 "mode": "full",19 "complete": true,20 "expectedUrls": [21 "https://example.test/a",22 "https://example.test/b",23 "https://example.test/c"24 ],25 "records": [26 {27 "url": "https://example.test/a",28 "status": "ok",29 "httpStatus": 200,30 "text": "a"31 },32 {33 "url": "https://example.test/b",34 "status": "ok",35 "httpStatus": 200,36 "text": "b"37 },38 {39 "url": "https://example.test/c",40 "status": "ok",41 "httpStatus": 200,42 "text": "c"43 }44 ]45 },46 "current": {47 "scopeId": "docs-v1",48 "allowedOrigins": [49 "https://example.test"50 ],51 "runId": "current",52 "capturedAt": "2026-10-31T00:00:01.000Z",53 "mode": "full",54 "complete": true,55 "expectedUrls": [56 "https://example.test/a",57 "https://example.test/b"58 ],59 "records": [60 {61 "url": "https://example.test/a",62 "status": "ok",63 "httpStatus": 200,64 "text": "a"65 },66 {67 "url": "https://example.test/b",68 "status": "ok",69 "httpStatus": 200,70 "text": "b"71 }72 ]73 }74};75
76// Run the Actor and wait for it to finish77const run = await client.actor("venture_lab/rag-snapshot-guard").call(input);78
79// Fetch and print Actor results from the run's dataset (if any)80console.log('Results from dataset');81console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);82const { items } = await client.dataset(run.defaultDatasetId).listItems();83items.forEach((item) => {84 console.dir(item);85});86
87// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use RAG Snapshot Guard API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: