Self-Hosted OFAPI Automation — Your Data Never Leaves Your Infrastructure
Every cloud automation tool routes your creator revenue data through a third-party server. n8n does not. Run it on your own infrastructure and every OFAPI event — subscriber activity, revenue transactions, message data — stays inside your systems. No per-operation pricing as you scale. No compliance exposure. No ceiling. We use n8n because when you are processing events for 60+ creators around the clock, zero marginal cost and complete data sovereignty are not preferences — they are requirements.
Why Choose n8n
Self-hosted
Run on your own server. Your creator revenue data never leaves your infrastructure.
Open source
Fair-code licensed. Inspect the source, contribute, and customize to your needs.
No operation limits
Self-hosted n8n has no per-execution pricing. Process unlimited events at zero marginal cost.
Custom code nodes
Write JavaScript or Python directly inside Function nodes for complex transformations.
Setup Guide
Add a Webhook Trigger Node
In your n8n workflow editor, add a Webhook node as the trigger. Set the HTTP method to POST and the path to something like /ofapi-events. Copy the full production URL.
https://your-n8n-server.com/webhook/ofapi-events Register in OFAPI Dashboard
Add the n8n webhook URL as an endpoint in Settings → Webhooks in the OFAPI dashboard. Subscribe to your desired events and send a test payload to confirm connectivity.
Build Your Workflow
Use n8n's built-in nodes to process events. Here is a practical workflow that enriches webhook events with additional API data and routes them:
# Node 1 — Webhook Trigger Type: Webhook Method: POST Path: /ofapi-events # Node 2 — Switch (route by event type) Type: Switch Field: {{ $json.event }} Rules: "revenue.received" -> Output 1 "subscriber.new" -> Output 2 "subscriber.expired" -> Output 3 # Node 3 — HTTP Request (enrich with OFAPI data) Type: HTTP Request Method: GET URL: https://api.ofapi.dev/api/v1/onlyfans/models/{{ $json.data.creator_id }}/statistics/overview Headers: X-API-Key: {{ $env.OFAPI_KEY }} # Node 4 — Google Sheets (log revenue) Type: Google Sheets Action: Append Row Sheet: "Revenue Log" Data: [date, creator, amount, type, running_total] # Node 5 — Slack (send alert) Type: Slack Channel: #revenue-alerts Message: "{{ $json.data.creator }} earned ${{ $json.data.amount }}"
Activate
Toggle the workflow to Active. n8n will now listen for incoming OFAPI events at your webhook URL and execute the workflow for every event in real time. Monitor executions in the n8n dashboard to confirm everything is working.
Scale from 5 creators to 50. Your automation costs stay flat.
Cloud platforms charge per operation. As your event volume grows, so does the bill. n8n runs on your server — process unlimited OFAPI events at zero marginal cost, with full control over your creator data. Set up your first workflow in under 20 minutes.