ONLYFANS Scraper πŸͺΆ avatar
ONLYFANS Scraper πŸͺΆ
Under maintenance
Try for free

7 days trial then $30.00/month - No credit card required now

View all Actors
This Actor is under maintenance.

This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

See alternative Actors
ONLYFANS Scraper πŸͺΆ

ONLYFANS Scraper πŸͺΆ

jupri/onlyfans-scraper
Try for free

7 days trial then $30.00/month - No credit card required now

β€οΈπŸ’›πŸ’šπŸ’™πŸ’œ Scrape OnlyFans.com πŸͺ½

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "query": [
11        "square pants",
12        "@onlyfans/video",
13        "@oftv/profile",
14        "https://www.onlyfans.com/oftv",
15        "https://www.onlyfans.com/search?type=posts&q=sponge%20bob"
16    ],
17    "limit": 5,
18    "dev_custom_headers": [
19        {
20            "key": "user-agent",
21            "value": ""
22        },
23        {
24            "key": "x-bc",
25            "value": ""
26        }
27    ],
28    "dev_custom_cookies": [
29        {
30            "key": "sess",
31            "value": ""
32        }
33    ]
34};
35
36(async () => {
37    // Run the Actor and wait for it to finish
38    const run = await client.actor("jupri/onlyfans-scraper").call(input);
39
40    // Fetch and print Actor results from the run's dataset (if any)
41    console.log('Results from dataset');
42    console.log(`πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43    const { items } = await client.dataset(run.defaultDatasetId).listItems();
44    items.forEach((item) => {
45        console.dir(item);
46    });
47})();
48
49// πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 65 monthly users
  • 2 stars
  • 94.0% runs succeeded
  • Created in Apr 2023
  • Modified 15 days ago