This free version is maintained and updated a few days after OFAPI subscribers have received them.
- Info about this repo
- If your use case requires the latest signing values, check out
Direct link: https://raw.githubusercontent.com/deviint/onlyfans-dynamic-rules/main/dynamicRules.json
Usage (JavaScript)
const time = +new Date()
const url = new URL(fullUrl)
const msg = [
dynamicRules["static_param"],
time,
url.pathname + url.search,
userId
].join("\n")
const shaHash = sha1(msg);
const hashAscii = Buffer.from(shaHash, 'ascii');
const checksum = dynamicRules["checksum_indexes"].reduce((result, value) => result + hashAscii[value], 0) + dynamicRules["checksum_constant"];
const sign = [dynamicRules["start"], shaHash, Math.abs(checksum).toString(16), dynamicRules["end"]].join(":")
// output: {sign, time}
For OnlyFans API inquiries, OnlyFans consulting, OnlyFans product/service advice email [email protected] . I have extensive knowledge of all things related to OnlyFans' inner workings and API.