Skip to content

API Reference

Complete reference documentation for the UnWeb API.

Base URL

https://api.unweb.info

Authentication

UnWeb supports two authentication methods:

API Key Authentication

Include your API key in the X-API-Key header:

bash
X-API-Key: unweb_your_api_key_here

Use API keys for:

  • CLI tools
  • Backend services
  • Scripts and automation
  • Any programmatic access

JWT Bearer Authentication

Include your JWT token in the Authorization header:

bash
Authorization: Bearer your_jwt_token_here

Use JWT tokens for:

  • Dashboard web application
  • Short-lived access (60 minute expiry)
  • User-facing applications

Learn more about authentication →

Quick Reference

Conversion Endpoints

MethodEndpointDescriptionAuth
POST/api/convert/pasteConvert HTML from JSON bodyAPI Key or JWT
POST/api/convert/uploadConvert HTML from file uploadAPI Key or JWT
POST/api/convert/urlConvert HTML from URLAPI Key or JWT

View Conversion API →

Crawler Endpoints

MethodEndpointDescriptionAuth
POST/api/crawlStart a new crawl jobAPI Key or JWT
GET/api/crawlList crawl jobsAPI Key or JWT
GET/api/crawl/{id}/statusGet crawl job statusAPI Key or JWT
GET/api/crawl/{id}/downloadDownload crawl resultsAPI Key or JWT
DELETE/api/crawl/{id}Cancel crawl jobAPI Key or JWT

View Crawler API →

Usage Endpoints

MethodEndpointDescriptionAuth
GET/api/usage/currentCurrent billing cycle usageJWT
GET/api/usage/statsUsage statistics with daily breakdownJWT
GET/api/usage/historyRecent usage recordsJWT

View Usage API →

Authentication Endpoints

MethodEndpointDescriptionAuth
POST/api/auth/registerUser registrationNone
POST/api/auth/loginUser loginNone
POST/api/auth/change-passwordChange passwordJWT
GET/api/auth/meGet current userJWT
PUT/api/auth/profileUpdate profileJWT

API Key Management

MethodEndpointDescriptionAuth
GET/api/keysList API keysJWT
POST/api/keysCreate new API keyJWT
DELETE/api/keys/{id}Revoke API keyJWT

Subscription Management

MethodEndpointDescriptionAuth
GET/api/subscriptionGet current subscriptionJWT
POST/api/subscription/checkoutCreate checkout URLJWT
POST/api/subscription/cancelCancel subscriptionJWT

Rate Limits & Quotas

All accounts have monthly credit quotas based on their subscription tier:

TierMonthly CreditsPrice
Free500$0
Starter2,000$12/month
Pro15,000$39/month
Scale60,000$99/month

Learn more about rate limits →

Response Format

All API endpoints return JSON responses:

Success Response (200 OK):

json
{
  "data": { ... },
  "message": "Success"
}

Error Response (4xx or 5xx):

json
{
  "error": "Error message",
  "details": "Additional error details"
}

HTTP Status Codes

CodeMeaningDescription
200OKRequest succeeded
201CreatedResource created successfully
202AcceptedRequest accepted (async processing)
400Bad RequestInvalid request parameters
401UnauthorizedMissing or invalid authentication
403ForbiddenQuota exceeded or insufficient permissions
404Not FoundResource not found
413Payload Too LargeFile upload exceeds 5MB limit
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error

Code Examples

See complete code examples in multiple languages:

Need Help?