Generate sign, x-bc, x-of-rev, x-hash and time
Generates the signed OnlyFans header bundle for one target request.
/sign
- url — target OnlyFans API path (e.g. /api2/v2/users/me)
- useragent — browser User-Agent string used for the request
Request signing API
Call the OnlyFans API directly with your own sessions: send the target path and your User-Agent, and get back the signed header set — sign, x-bc, x-of-rev, x-hash and time — ready to attach to the request.
Overview
Endpoints
Generates the signed OnlyFans header bundle for one target request.
/sign
Quick start
Send your account API key in the X-API-Key header, as an Authorization: Bearer token or as the api_key query parameter. Every response is JSON.
curl -X POST \
-H "X-API-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"url": "/api2/v2/users/me", "useragent": "Mozilla/5.0 ..."}' \
"https://api.mirai-api.com/onlyfans-signer/sign"
Already on RapidAPI? Call the same endpoints with your RapidAPI key and host headers.
curl -X POST \
-H "X-RapidAPI-Key: <your-rapidapi-key>" \
-H "X-RapidAPI-Host: onlyfans-signer.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"url": "/api2/v2/users/me", "useragent": "Mozilla/5.0 ..."}' \
"https://onlyfans-signer.p.rapidapi.com/sign"
Good to know
Use cases
Keep your own sessions and request logic while we take care of request signing.
Sign every request of a scheduler, bot or internal tool with one HTTP call.
Stop maintaining signing code whenever the platform changes its rules.
FAQ
sign, x-bc, x-of-rev, x-hash and time — the set needed for a direct OnlyFans API request.
url (the target OnlyFans API path) and useragent (the browser User-Agent you will send). Both must be non-empty.
Generate a new set for every request: the signature is bound to the target URL and the time.
Create an account on mirai-api.com, choose a plan for the OnlyFans Signer and copy your API key from the Settings page. Send it in the X-API-Key header, as an Authorization: Bearer token or as the api_key query parameter.
Yes. The same endpoints are published on RapidAPI, so you can also subscribe there and call them with your RapidAPI key.
More APIs
Creator profiles, bulk lookups, posts, social links, a searchable creators catalog and search by face photo.
The full OnlyFans creator catalog as regularly refreshed, gzip-compressed JSON Lines files.
Creator profiles, posts, creator search, the monthly leaderboard, a creators catalog and search by face photo.
Create an account to get your API key, documentation with live request examples and direct developer support.