← Back to Hub · Dataset Directory (47) · Embed Widgets
P2 Data Lab B2B Pro API & MCP Quickstart
Authenticate with any Polar.sh Pro License Key (single-portal or All-Portals Master Pass) against https://p2-core-api.evsmtoken.workers.dev.
1. Verify License Key
curl -X POST https://p2-core-api.evsmtoken.workers.dev/v1/license/verify \
-H "Content-Type: application/json" \
-d '{"key":"YOUR_POLAR_LICENSE_KEY"}'
2. Fetch Live Pro Dataset (cURL)
curl -H "Authorization: Bearer YOUR_POLAR_LICENSE_KEY" \ https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-gpu-llm-index/dataset
3. Python & TypeScript Snippets
import requests
res = requests.get(
"https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-tariff-hscode-calc/dataset",
headers={"Authorization": "Bearer YOUR_POLAR_LICENSE_KEY", "User-Agent": "p2-data-lab/1.0"}
)
print(res.json())
const res = await fetch("https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-saas-seat-consolidation-calc/dataset", {
headers: { Authorization: "Bearer YOUR_POLAR_LICENSE_KEY" }
});
const data = await res.json();
4. Claude / Cursor MCP & OpenAPI Discovery
{
"openapi_catalog": "https://p2-b2b-hub.pages.dev/agent-catalog.json",
"openapi_spec": "https://p2-b2b-hub.pages.dev/openapi.json",
"auth_header": "Authorization: Bearer "
}