# n8n & OnlyFans - Quickstart (/integrations/n8n)























import {
  SiDigitalocean,
  SiHostinger,
  SiN8n,
} from "@icons-pack/react-simple-icons";
import { BoxIcon, ServerIcon, TerminalIcon } from "lucide-react";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Card, Cards } from "fumadocs-ui/components/card";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";

import {ZapIcon} from "lucide-react";

<Callout title="This integration supports every OnlyFans API endpoint!" type="success" icon={<ZapIcon size={18} className="text-(--callout-color)"/>}>
  Our n8n integration is our most actively maintained integration, and it supports every single endpoint in our API.
</Callout>

<Callout title="Available in official n8n node library or self-hosted instances" type="success">
  Currently, our n8n integration is available in the official n8n nodes library or as a self-hosted instance.
</Callout>

## Prerequisites

To get started, you must have:

<Cards>
  <Card icon={<TerminalIcon className="text-fd-primary" />} href="https://app.onlyfansapi.com" title="An OnlyFans API account">
    If you don't have one yet, registering takes just a few seconds.

    <a className="flex flex-row items-center gap-1 w-fit">
      » Create a free account
    </a>
  </Card>

  <Card icon={<SiN8n color="default" />} title="A n8n instance">
    You can either use n8n's native infrastructure, or a one-click provider. Some popular options are:

    <a className="flex flex-row items-center gap-1 w-fit" href="https://n8n.partnerlinks.io/onlyfans" target="_blank">
      <SiN8n size={16} color="default" />

      <span>
        n8n Cloud (native)
      </span>
    </a>

    <a className="flex flex-row items-center gap-1 mt-2 w-fit" href="https://www.hostinger.com/self-hosted-n8n?REFERRALCODE=onlyfans" target="_blank">
      <SiHostinger size={16} color="default" />

      <span>
        Hostinger (20% off)
      </span>
    </a>

    <a className="flex flex-row items-center gap-1 mt-2 w-fit" href="https://marketplace.digitalocean.com/apps/n8n?refcode=4192ba3a094a" target="_blank">
      <SiDigitalocean size={16} color="default" />

      <span>
        DigitalOcean (Get $200 in credit)
      </span>
    </a>

    <a className="flex flex-row items-center gap-1 mt-2 w-fit" href="https://docs.n8n.io/hosting" target="_blank">
      <ServerIcon size={16} className="text-fd-primary" />

      <span>
        Self-hosted
      </span>
    </a>
  </Card>
</Cards>

## Installing the OnlyFans API node

<Callout type="info" title="Limited to n8n instance owners">
  Only the n8n instance owner can install and manage verified community nodes.
  The instance owner is the person who sets up and manages user management.
  All members of an n8n instance can use already installed community nodes in their workflows.
</Callout>

To install the OnlyFans API node in your n8n instance:

<Steps>
  <Step>
    Log in to your n8n instance.
  </Step>

  <Step>
    Create a new workflow by clicking on **"Create workflow"** in the top right corner.
  </Step>

  <Step>
    Go to the Canvas and open the nodes panel (either by selecting '+' or pressing `Tab`).
        <img alt="Open nodes panel" src={__img0} placeholder="blur" />
  </Step>

  <Step>
    Search for "OnlyFans API" in the nodes panel, and select it. This takes you to a detailed view of the OnlyFans API node, showing all the supported actions.
        <img alt="Select OnlyFans API node" src={__img1} placeholder="blur" />
  </Step>

  <Step>
    Next to our logo, click on the **"Install node"** button.
    This will install the node for your instance and enable all members to use it in their workflows.
        <img alt="Install OnlyFans API node" src={__img2} placeholder="blur" />
  </Step>

  <Step>
    That's it! You can now add the node to your workflows.
  </Step>
</Steps>

## Updating the OnlyFans API node

We frequently release updates to our n8n node, adding new features and fixing bugs. To update to the latest version, follow the instructions below:

<Accordions type="single" orientation="vertical">
  <Accordion title="Using the n8n interface">
    <Steps>
      <Step>
        Access the **"Community nodes"** page through the n8n settings
      </Step>

      <Step>
        Find the OnlyFans API node in the list of installed nodes, and click on the **"Update"** button next to it
      </Step>

      <Step>
        Follow the prompts to complete the update process.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Manually from the command line">
    <Steps>
      <Step>
        Access your Docker shell:

        ```bash
        docker exec -it n8n sh
        ```
      </Step>

      <Step>
        Update our node through your package manager:

        ```bash
        npm update @onlyfansapi/n8n-nodes-onlyfansapi
        ```
      </Step>
    </Steps>
  </Accordion>
</Accordions>

## Connecting your OnlyFans API account to n8n

<Steps>
  <Step>
    Head to your n8n instance's homepage, and click on **"Create Credential"**
    in the **"Create Workflow"** dropdown.     <img
          alt="Add
    credentials"
          src={__img3}
          placeholder="blur"
        />
  </Step>

  <Step>
    Select **"OnlyFans API"** from the list of available credential types, and
    click **"Continue"**.     <img
          alt="Add credential
    modal"
          src={__img4}
          placeholder="blur"
        />
  </Step>

  <Step>
    ### Create a new API key from the OnlyFans API Console \[!toc]

    <Steps>
      <Step>
        #### Go to the OnlyFans API console -> API Keys \[!toc]

                <img alt="" src={__img5} placeholder="blur" />
      </Step>

      <Step>
        #### Create a new API key from the OnlyFans API Console \[!toc]

                <img alt="" src={__img6} placeholder="blur" />
      </Step>

      <Step>
        #### Give it a name, and press "Add" \[!toc]

                <img alt="" src={__img7} placeholder="blur" />
      </Step>

      <Step>
        #### Copy the API key to your clipboard \[!toc]

                <img alt="" src={__img8} placeholder="blur" />
      </Step>
    </Steps>
  </Step>

  <Step>
    Paste the API key into the **"API Key"** field, and click **"Save"**.
        <img alt="Enter credentials" src={__img9} placeholder="blur" />
  </Step>
</Steps>
