1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "input_text_list": [
12 "Well said. The right payment method isn’t one-size-fits-all, it should align with the project’s needs. Platforms that offer flexibility along with security definitely make collaboration smoother for both freelancers and clients.",
13 "Flexible payment systems are essential, but true accessibility comes from supporting freelancers globally, regardless of location. Expanding payment options would make an even bigger impact.",
14 "I hope to see the day we no longer celebrate World Parkinson’s Day. My father was diagnosed with Parkinson’s in his early 50’s and fought it for over 30 years. It slowly stripped him of the things he loved in life. I left my job for over a year to care for him until his death in 2022. Thank you for continuing the fight to identify and develop disease modifying treatments for patients like my father. ",
15 "Turning two years of midnight thoughts into a structured verdict on exponential vs. linear growth is a massive use case for LLMs. That 'splitting seven ways' insight is the common trap for high-performers. Focus is the only real lever.",
16 "Will have to check it out. Looks incredible. How you transitioned your digital work to prints and physical is inspiring. 🔥",
17 "Today is Father's Day in Portugal 🇵🇹\n2+ years of being 50% parenting, 50% freelancing.\nExhausting. But I get to spend quality time with my daughter every single day. \nSomething I won't be able to experience ever again. She grows fast, and I'm watching it in real-time ❤️"
18 ]
19};
20
21
22const run = await client.actor("dadhalfdev/ai-text-detector").call(input);
23
24
25console.log('Results from dataset');
26console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
27const { items } = await client.dataset(run.defaultDatasetId).listItems();
28items.forEach((item) => {
29 console.dir(item);
30});
31
32