ONLYFANS Scraper πͺΆ
7 days trial then $30.00/month - No credit card required now
ONLYFANS Scraper πͺΆ
7 days trial then $30.00/month - No credit card required now
β€οΈππππ Scrape OnlyFans.com πͺ½
You can access the ONLYFANS Scraper πͺΆ programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, youβll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "query": [
12 "square pants",
13 "@onlyfans/video",
14 "@oftv/profile",
15 "https://www.onlyfans.com/oftv",
16 "https://www.onlyfans.com/search?type=posts&q=sponge%20bob"
17 ],
18 "limit": 5,
19 "dev_custom_headers": [
20 {
21 "key": "user-agent",
22 "value": ""
23 },
24 {
25 "key": "x-bc",
26 "value": ""
27 }
28 ],
29 "dev_custom_cookies": [
30 {
31 "key": "sess",
32 "value": ""
33 }
34 ]
35};
36
37// Run the Actor and wait for it to finish
38const run = await client.actor("jupri/onlyfans-scraper").call(input);
39
40// Fetch and print Actor results from the run's dataset (if any)
41console.log('Results from dataset');
42console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48// π Want to learn more π? Go to β https://docs.apify.com/api/client/js/docs
Onlyfans Scraper API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use ONLYFANS Scraper πͺΆ API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
npm install apify-client
Other API clients include:
Actor Metrics
44 monthly users
-
4 stars
98% runs succeeded
28 days response time
Created in Apr 2023
Modified 2 months ago