SELF-HOSTED

OnlyFans API n8n Integration

Build self-hosted OnlyFans API n8n workflows with full control over your data and infrastructure. n8n is an open-source workflow automation platform you can run on your own server. Unlike cloud-hosted alternatives like Zapier or Make, your data never passes through a third party. Combined with OFAPI webhooks, you get real-time event processing with complete data sovereignty — ideal for agencies with strict compliance or privacy 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

1

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.

n8n Webhook URL URL
https://your-n8n-server.com/webhook/ofapi-events
2

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.

3

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:

n8n Workflow — Revenue Pipeline Nodes
# 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:    http://157.180.79.226:4024/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 }}"
4

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.

Full control, zero vendor lock-in

Self-host n8n and connect it to the OnlyFans API for unlimited automation at zero marginal cost.