1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "profile",
12 "searchQuery": "bluesky",
13 "searchSort": "latest",
14 "searchTags": [],
15 "language": "",
16 "authorFeedFilter": "posts_with_replies",
17 "includePins": false,
18 "includeParents": false,
19 "threadDepth": 6,
20 "maxRepliesPerPost": 100,
21 "actor": "bsky.app",
22 "actors": [],
23 "postUris": [],
24 "postUrls": [],
25 "listUris": [],
26 "starterPackUris": [],
27 "feedPreset": "whats-hot",
28 "feedUris": [],
29 "discoveryType": "trendingTopics",
30 "excludeReplies": false,
31 "excludeReposts": false,
32 "mediaOnly": false,
33 "excludeLabeled": false,
34 "respectNoUnauthenticated": true,
35 "verifiedOnly": false,
36 "includeListMetadata": false,
37 "includeStarterPackMembers": true,
38 "hydrateAuthors": false,
39 "maxItems": 3
40};
41
42
43const run = await client.actor("nimbryxo-studio/bluesky-posts-profiles-feeds-and-threads-scraper").call(input);
44
45
46console.log('Results from dataset');
47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53