website_download
Download and mirror a publicly accessible website, including HTML pages and required frontend assets, and return a machine-readable manifest and optional downloadable archive.
When to use
Use when an agent needs an offline mirror of a public website and its frontend assets.
Selection guidance
Role: supporting. Use when an agent needs an offline mirror of a public website and its frontend assets.
Use cases
- download website
- mirror website
- offline website archive
- save public website
Access
- REST:
POST https://rafid-agent-api.vercel.app/api/v1/websites/download - x402:
POST https://rafid-agent-api.vercel.app/api/v1/x402/websites/download - MCP tool:
website_download - Free preview:
POST https://rafid-agent-api.vercel.app/api/v1/preview/website_download
Price: $0.75 USD per call. Payment options are deployment-configured; inspect /api/v1/payment-methods. Prices and payment semantics are unchanged from the canonical registry.
Get the full result
0.75 USD per call
Try free preview · limited information, no charge
curl -X POST 'https://rafid-agent-api.vercel.app/api/v1/preview/website_download' -H 'Content-Type: application/json' --data '{"url":"https://example.com","maxDepth":1,"includeAssets":true,"convertLinks":true,"adjustExtensions":true,"sameDomainOnly":true,"maxSizeMb":10,"maxFiles":100,"timeoutSeconds":30,"output":"manifest"}'Pay with USDC · request an x402 challenge
curl -X POST 'https://rafid-agent-api.vercel.app/api/v1/x402/websites/download' -H 'Content-Type: application/json' --data '{"url":"https://example.com","maxDepth":1,"includeAssets":true,"convertLinks":true,"adjustExtensions":true,"sameDomainOnly":true,"maxSizeMb":10,"maxFiles":100,"timeoutSeconds":30,"output":"manifest"}'Authorized x402 client · signed retry request
curl -X POST 'https://rafid-agent-api.vercel.app/api/v1/x402/websites/download' -H 'Content-Type: application/json' -H 'PAYMENT-SIGNATURE: <PAYMENT_SIGNATURE_FROM_AUTHORIZED_CLIENT>' -H 'X-Rafid-Payment-Journey: <PAYMENT_JOURNEY_FROM_CHALLENGE>' -H 'Idempotency-Key: <UNIQUE_REQUEST_ID>' --data '{"url":"https://example.com","maxDepth":1,"includeAssets":true,"convertLinks":true,"adjustExtensions":true,"sameDomainOnly":true,"maxSizeMb":10,"maxFiles":100,"timeoutSeconds":30,"output":"manifest"}'Use an x402-compatible client to parse PAYMENT-REQUIRED and authorize payment before retrying the same input with PAYMENT-SIGNATURE. Copying a request does not pay.
No crypto wallet? Use Rafid Credits
curl -X POST 'https://rafid-agent-api.vercel.app/api/v1/websites/download' -H 'Content-Type: application/json' -H 'Authorization: Bearer <RAFID_API_KEY>' -H 'X-Rafid-Payment-Method: credits' -H 'Idempotency-Key: <UNIQUE_REQUEST_ID>' -H 'X-Rafid-Payment-Journey: <PAYMENT_JOURNEY_FROM_CHALLENGE>' --data '{"url":"https://example.com","maxDepth":1,"includeAssets":true,"convertLinks":true,"adjustExtensions":true,"sameDomainOnly":true,"maxSizeMb":10,"maxFiles":100,"timeoutSeconds":30,"output":"manifest"}'Create an API key instantly via POST https://rafid-agent-api.vercel.app/api/v1/account/signup or at https://rafid-agent-api.vercel.app/get-started, then fund by card (Stripe) or USDC and save with monthly plans ($10–$500/mo).
Existing account balance: GET https://rafid-agent-api.vercel.app/api/v1/account/balance.
MCP Credits integration
POST https://rafid-agent-api.vercel.app/mcp/credits
Authorization: Bearer <OAUTH_ACCESS_TOKEN>
Idempotency-Key: <UNIQUE_REQUEST_ID>
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_download",
"arguments": {
"url": "https://example.com",
"maxDepth": 1,
"includeAssets": true,
"convertLinks": true,
"adjustExtensions": true,
"sameDomainOnly": true,
"maxSizeMb": 10,
"maxFiles": 100,
"timeoutSeconds": 30,
"output": "manifest"
}
}
}OAuth metadata: authorization server · protected resource. Operator authorization and an existing funded account are required; OAuth does not grant credits.
Payment instructions and onboarding · API docs and schemas
These are copyable API integration requests. They do not open a checkout or execute a paid tool.
Related tools
Example input
{
"url": "https://example.com",
"maxDepth": 1,
"includeAssets": true,
"convertLinks": true,
"adjustExtensions": true,
"sameDomainOnly": true,
"maxSizeMb": 10,
"maxFiles": 100,
"timeoutSeconds": 30,
"output": "manifest"
}Example output
{
"success": true,
"sourceUrl": "https://example.com/",
"finalUrl": "https://example.com/",
"pagesDownloaded": 1,
"assetsDownloaded": 0,
"totalFiles": 1,
"totalSizeBytes": 1256,
"durationMs": 1200,
"archive": null,
"manifest": {
"files": [
{
"localPath": "example.com/index.html",
"type": "html",
"contentType": null,
"sizeBytes": 1256
}
]
},
"warnings": []
}Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"maxDepth": {
"default": 3,
"type": "integer",
"minimum": 0,
"maximum": 10
},
"includeAssets": {
"default": true,
"type": "boolean"
},
"convertLinks": {
"default": true,
"type": "boolean"
},
"adjustExtensions": {
"default": true,
"type": "boolean"
},
"sameDomainOnly": {
"default": true,
"type": "boolean"
},
"maxSizeMb": {
"default": 100,
"type": "integer",
"minimum": 1,
"maximum": 1024
},
"maxFiles": {
"default": 2000,
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"timeoutSeconds": {
"default": 120,
"type": "integer",
"minimum": 5,
"maximum": 900
},
"output": {
"default": "archive_and_manifest",
"type": "string",
"enum": [
"manifest",
"archive",
"archive_and_manifest"
]
}
},
"required": [
"url",
"maxDepth",
"includeAssets",
"convertLinks",
"adjustExtensions",
"sameDomainOnly",
"maxSizeMb",
"maxFiles",
"timeoutSeconds",
"output"
],
"additionalProperties": false
}Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"const": true
},
"sourceUrl": {
"type": "string"
},
"finalUrl": {
"type": "string"
},
"pagesDownloaded": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"assetsDownloaded": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalFiles": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"totalSizeBytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"archive": {
"anyOf": [
{
"type": "object",
"properties": {
"available": {
"type": "boolean",
"const": true
},
"format": {
"type": "string",
"const": "zip"
},
"sizeBytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"fileId": {
"type": "string"
},
"downloadUrl": {
"type": "string"
}
},
"required": [
"available",
"format",
"sizeBytes",
"fileId",
"downloadUrl"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"manifest": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"localPath": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"html",
"css",
"javascript",
"image",
"font",
"json",
"document",
"media",
"other"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"sizeBytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"localPath",
"type",
"contentType",
"sizeBytes"
],
"additionalProperties": false
}
}
},
"required": [
"files"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"success",
"sourceUrl",
"finalUrl",
"pagesDownloaded",
"assetsDownloaded",
"totalFiles",
"totalSizeBytes",
"durationMs",
"archive",
"manifest",
"warnings"
],
"additionalProperties": false
}Category: Website Intelligence · hierarchy: supporting · idempotent: no · side effects: yes