About website-to-json
A DataLeads webpage-to-JSON API for developers extracting data with CSS selectors. A schema selects text, attributes, or HTML, and the API returns structured JSON.
Key features
- 01Extract with CSS selectors
- 02Select text, attributes, or HTML
- 03Return schema-based JSON
- 04Render pages in a real browser
Use cases
- 01Extract fields such as page titles
- 02Organize page data with a defined schema
MCP support
Available as a remote Streamable HTTP MCP server or through Docker over Stdio. MCP clients can call its webpage-to-JSON endpoint.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://data.dataleads.pro/mcp/website-to-jsonclaude mcp add --transport http dataleadspro-website-to-json https://data.dataleads.pro/mcp/website-to-json{"mcpServers":{"dataleadspro-website-to-json":{"type":"http","url":"https://data.dataleads.pro/mcp/website-to-json"}}}Open in Cursor{"servers":{"dataleadspro-website-to-json":{"type":"http","url":"https://data.dataleads.pro/mcp/website-to-json"}}}Open in VS Code{"mcpServers":{"dataleadspro-website-to-json":{"type":"http","url":"https://data.dataleads.pro/mcp/website-to-json"}}}{"mcpServers":{"dataleadspro-website-to-json":{"serverUrl":"https://data.dataleads.pro/mcp/website-to-json"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
1| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | No | |
| schema | array | No | |
| maxTimeout | integer | No |
Details
From the project READMEWebsite to JSON API (Schema Extraction)
Turn any webpage into structured JSON with CSS-selector schemas - strings select text, attributes, or HTML.
Part of the DataLeads API suite (Data category). Requests render in a real browser with anti-bot handling and protected-page support built in - no proxies to manage, no infrastructure to run.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /website-to-json | V1 Website To Json |
Quick start
curl -X POST https://data.dataleads.pro/v1/website-to-json \
-H 'Content-Type: application/json' \
-d '{"clientKey": "YOUR_CLIENT_KEY", "url": "https://news.ycombinator.com", "schema": {"titles": ".titleline"}}'
Replace YOUR_CLIENT_KEY with your key. Get one at https://data.dataleads.pro - free tier included.
MCP server
- Remote (Streamable HTTP):
https://data.dataleads.pro/mcp/website-to-json - Stdio (Docker):
docker run -e DATALEADS_API_KEY=yourkey ghcr.io/dataleads/website-to-json-mcp:latest
Pricing
| Tier | Price | Requests |
|---|---|---|
| Free | $0 | 500/mo |
| Starter | $9/mo | 5,000 |
| Pro | $29/mo | 25,000 |
| Business | $99/mo | 100,000 |
| Enterprise | custom | custom |
Full plan details at https://data.dataleads.pro.
License
MIT - see LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.