URL Content Extractor
Extract clean, readable content from any webpage URL — built for AI agents to consume programmatically.
Paid per-use via Nevermined x402 protocol. $1 for 100 extracts (1¢ each). Pre-paid credits never expire.
How It Works
POST /extract
Authorization: Bearer <your-api-key>
Content-Type: application/json
{ "url": "https://example.com/article" }
Response:
{
"url": "https://example.com/article",
"title": "Article Title",
"content": "Clean extracted text without ads, nav, or scripts...",
"credits_remaining": 95
}
For AI Agents
This API is designed to be called by other AI agents:
- x402 payments — agent pays per-request automatically
- Clean output — no HTML, no ads, just the content
- Fast — sub-second extraction for most pages
- Credit-based — 100 credits per purchase, 1 credit per extract
MCP Integration
This service is also available as an MCP server — Claude Desktop, Claude Code, Cursor, and any MCP-compatible client can use it.
Claude Desktop config:
{
"mcpServers": {
"url-content-extractor": {
"command": "python",
"args": ["/path/to/mcp_server.py"],
"env": {
"NVM_API_KEY": "live:your-key",
"NVM_AGENT_ID": "your-agent-id",
"NVM_PLAN_ID": "your-plan-id"
}
}
}
}
Tools:
extract_url(url)— Extract clean text from any webpage (requires purchased credits)extract_url_raw(url)— Check service status
For Humans
- Purchase credits at nevermined.app
- Get your API key
- Call
POST /extractwith your URL
Tech Stack
- FastAPI — async Python web framework
- BeautifulSoup — content extraction
- Nevermined payments-py — x402 payment verification
- httpx — async HTTP client
Deployment
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8080
License
MIT