/users/me
but how do I get this info via my actor. Below is a skeletal implemention of the actor:import { Actor } from 'apify'; import { PuppeteerCrawler } from 'crawlee'; import { router } from './routes.js'; await Actor.init(); const input = await Actor.getInput(); const startUrls = input?.startUrls || [{ url: 'https://apify.com' }]; const proxyConfiguration = await Actor.createProxyConfiguration(); const crawler = new PuppeteerCrawler({ proxyConfiguration, requestHandler: router, }); await crawler.run(startUrls); await Actor.exit();
const user = await Actor.apifyClient.user().get();
isPaying
flag to check if user is paying or not. So you can have:const user = await Actor.apifyClient.user().get(); if (user.isPaying) { console.log('This user is paying') }
true
OR they cannot even use the actor, to begin with?isPaying
flag? I do not see it on the link you have posted.