Session/Login Extractor
Pricing
Pay per usage
Session/Login Extractor
Automates login flows and extracts session data. Supports MFA with TOTP code. You can use this actor if you need to access website with authentication.
0.0 (0)
Pricing
Pay per usage
0
Total users
16
Monthly users
8
Runs succeeded
98%
Last modified
2 months ago
You can access the Session/Login Extractor programmatically from your own 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 token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "steps": [12 {13 "action": "type",14 "selector": "#email",15 "value": "..."16 },17 {18 "action": "type",19 "selector": "#password",20 "value": "..."21 },22 {23 "action": "click",24 "selector": "#submit"25 }26 ],27 "cookieDomains": [],28 "gotoTimeout": 30,29 "proxyConfiguration": {30 "useApifyProxy": true31 },32 "storageName": "SESSION_DATA"33};34
35// Run the Actor and wait for it to finish36const run = await client.actor("pragmaticcoders/session-login-extractor").call(input);37
38// Fetch and print Actor results from the run's dataset (if any)39console.log('Results from dataset');40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);41const { items } = await client.dataset(run.defaultDatasetId).listItems();42items.forEach((item) => {43 console.dir(item);44});45
46// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Session/Login Extractor API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Session/Login Extractor 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: