Build software and automate on top of 4based
4based API is the developer platform for 4based.com. It exposes 200+ REST endpoints, webhooks, server-side ads tracking and an MCP server so agencies and developers can build CRMs, automations, AI agents and ad attribution on top of 4based.
Server-side tracking for every ad platform.
// meta-capi.ts - fire a server-side Subscribe event when a 4based fan converts
await fetch("https://api.4basedapi.com/v1/ads/meta/events", {
method: "POST",
headers: { "Authorization": "Bearer sk_live_...", "Content-Type": "application/json" },
body: JSON.stringify({
pixel_id: "1234567890",
event: {
event_name: "Subscribe",
event_time: Math.floor(Date.now() / 1000),
event_id: "4based_sub_abc123",
action_source: "website",
user_data: { em: ["<sha256(email)>"], fbc: "fb.1.1699.abc", fbp: "fb.1.1699.987" },
custom_data: { currency: "USD", value: 9.99, content_ids: ["4based:creator_xyz"] },
},
}),
});Build agency software, creator operations, AI workflows and ads attribution on top of 4based through one reliable developer platform.
API Automation
Automate every 4based workflow through one API
Connect subscriptions, tips, PPV, chats and fans to your CRM, data warehouse and internal tools. Event-driven, scheduled or in bulk.
Example endpoints
See all 200+ →- POSTConnect a 4based creator
- GETSubscriber revenue & churn
- POSTSend chat message
- GETMedia library
- POSTFire conversion event
- GETFan lifetime value
Ads Tracking
Pixel-perfect tracking and attribution for 4based
Fire server-side conversion events back to your ad accounts the moment a fan subscribes, tips or buys a PPV message on 4based. Meta Conversions API, TikTok Events API, Snapchat CAPI and Google Ads, deduplicated, hashed and signed.
- Meta Pixel + Conversions API with automatic deduplication
- TikTok Pixel + Events API v1.3 with ttclid passthrough
- Snapchat Pixel + Snap CAPI with hashed PII and event_id
- Google Ads enhanced conversions with gclid capture
- Per-creator ROAS, CPA and LTV cohorts in the dashboard
// meta-capi.ts - fire a server-side Subscribe event when a 4based fan converts
await fetch("https://api.4basedapi.com/v1/ads/meta/events", {
method: "POST",
headers: { "Authorization": "Bearer sk_live_...", "Content-Type": "application/json" },
body: JSON.stringify({
pixel_id: "1234567890",
event: {
event_name: "Subscribe",
event_time: Math.floor(Date.now() / 1000),
event_id: "4based_sub_abc123",
action_source: "website",
user_data: { em: ["<sha256(email)>"], fbc: "fb.1.1699.abc", fbp: "fb.1.1699.987" },
custom_data: { currency: "USD", value: 9.99, content_ids: ["4based:creator_xyz"] },
},
}),
});- 1
Ad click
fbclid / ttclid / ScCid / gclid
- 2
Tracking link
click ID saved
- 3
4based conversion
subscribe, tip, PPV
- 4
4based API
hash, dedupe, sign
- 5
Ad platforms
Meta, TikTok, Snap, Google
Everything you need to build powerful 4based tools
Not just an API - a complete development platform with dashboard, API keys, webhooks, playground and enterprise security.
Dashboard
Endpoints, logs and webhooks at a glance. Monitor usage and live metrics in real time.
1.2M
requests
99.98%
uptime
94ms
p50
API Keys
Create, rotate and revoke keys instantly. Scoped keys per project or per team member.
sk_live_a91f...c2active
sk_live_3c0e...7aactive
sk_test_78bd...9krevoked
Webhooks
Automations on new messages, sales, renewals or subscribers. HMAC-signed with retries.
fan.subscribed → yourapp.com 200 OK
Playground
Run any endpoint live in your browser. Test with confidence before shipping.
GET /v1/fans 200 · 148ms
Complete Security
AES-256 encryption, isolated systems and secret vaulting.
Team & Roles
Invite teammates with granular roles, per-creator scopes and audit logs.
Dedicated Proxies
Residential proxies rotated per creator. Never share fingerprints with another tenant.
Rate-limit Aware
Automatic backoff that respects 4based's limits so writes always land.
MCP & AI
Run your 4based agency from Claude, ChatGPT or Manus
Two-click install of the 4based API MCP server and your AI gets 200+ tools across every connected creator - live chats, revenue, fan lists and actions - without brittle scrapers.
{
"mcpServers": {
"4based": {
"command": "npx",
"args": ["-y", "@4basedapi/mcp"],
"env": { "FOURBASED_API_KEY": "sk_live_..." }
}
}
}No-Code
No-code automations
Native n8n node, Make.com and Zapier apps. Trigger any 4based event without a line of code.
n8n, Make & Zapier
Native integrations for the three biggest no-code platforms.
Pre-made scenarios
Blueprints for whale rescue, churn recovery, welcome flows and cross-sell.
Works with the tools you already use
Use cases
Discover how you can use 4based API to build powerful tools.
Creator CRM Platform
Manage fans, chats and revenue for whole agency rosters from a single dashboard.
Meta Ads Optimisation
Feed real revenue back to Meta CAPI. Kill losing ads and scale winners.
Custom Integration Tools
Internal tools with financial data, link tracking and automated retrieval.
Creator Discovery Platform
Build a 4based search engine with analytics and insights.
Housekeeping
Automatic mass messages, vault cleanup, price sync and stale-fan pruning.
AI Chatter Assist
AI drafts replies in the creator's tone; a human clicks send.
Stop wasting time on partial and unreliable services
One platform instead of scrapers, spreadsheets and guesswork.
| Feature | 4based API | DIY scrapers |
|---|---|---|
| Complete login (2FA) | Yes | No |
| Open Auth Module | Yes | No |
| No-code (n8n, Make, Zapier) | Native + guides | No |
| API coverage | Full, 200+ endpoints | Partial |
| Server-side ads tracking (Meta, TikTok, Snap, Google) | Yes | No |
| Tracking-link revenue attribution | Yes | No |
| Webhooks + realtime events | Yes | No |
| Data Download tool | One-click exports | No |
| Dedicated proxy infrastructure | Yes | No |
| Team management | Members, roles, audit | No |
| Support | Telegram, email, dedicated | None |
Build with 4based API
Ready to build?
Tell us what you want to automate, measure or build on top of 4based. Agencies, developers and automation teams all get a tailored next step from our team.