Print env vars
by lukaskrivka
This open-source actor logs all environment variables from your run to dataset, KV store, and log for clear debugging and audit trails. Never guess what config your actor received again.
Opens on Apify.com
About Print env vars
Ever been stuck debugging an actor run because you weren't sure what environment variables it actually received? I've been there. The "Print env vars" actor is a simple, open-source utility I keep in my back pocket for exactly that. It does one job perfectly: it captures every environment variable passed to a run—both the raw input and the parsed, usable values—and logs the whole set for you. No more guessing. It automatically stores this data to the dataset and key-value store associated with the run, creating a permanent, searchable record. This is incredibly useful for post-mortem analysis, auditing configuration changes, or simply documenting the exact context of a run for your team. Whether you're troubleshooting a failed task, verifying secrets are being injected correctly, or ensuring consistency across development and production, having this snapshot saves hours. It's a developer tool that provides immediate clarity, turning what's often an opaque part of the runtime into transparent, inspectable data.
What does this actor do?
Print env vars is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Print env vars
An Apify actor that outputs all environment variables available during execution. Useful for debugging, verifying configurations, or understanding the runtime context within the Apify platform.
Overview
This actor simply retrieves and prints the complete set of environment variables from process.env and the parsed variables from Actor.getEnv(). It runs with no configuration and provides a snapshot of the runtime environment, which includes Apify-specific details (like IDs, tokens, proxy settings) and system-level information.
Key Features
- Dual Output: Displays both raw environment variables (
process.env) and the parsed, Apify-specific environment variables (Actor.getEnv()). - Zero Configuration: Runs immediately with default settings; no input is required.
- Open Source: The code is publicly available for inspection and modification.
- Developer Tool: Primarily useful for debugging actor runs, checking assigned resource IDs, and confirming environment variable availability.
How to Use
- Run the Actor: Execute the actor from the Apify Console, via API, or as part of a workflow.
- View Output: After execution, check the actor's run output. The environment variables will be printed in the log and available in the dataset.
- No Input Required: The actor functions without any specific input parameters.
Input/Output
Input: This actor does not require or use any input. You can run it with an empty input object {}.
Output: The actor produces a log containing two main JavaScript objects:
-
Raw Environment Variables: The complete
process.envobject.
js // Example snippet: { APIFY_ACTOR_RUN_ID: 'isBHoiJgoZxdFGedb', APIFY_PROXY_HOSTNAME: '10.0.83.204', APIFY_TOKEN: '*********', NODE_ENV: 'production', // ... many more } -
Parsed Environment Variables: The object returned by
Actor.getEnv(), which structures Apify-specific variables.
js // Example snippet: { actorRunId: 'isBHoiJgoZxdFGedb', apiBaseUrl: 'http://10.0.83.204:8010/', dedicatedCpus: 0, memoryMbytes: 256, // ... more }
The exact variables will differ with each run, reflecting the unique context of that execution (e.g., different Run IDs, proxy ports, or memory allocation). Sensitive values like tokens and passwords are automatically masked.
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Print env vars now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- lukaskrivka
- Pricing
- Paid
- Total Runs
- 597
- Active Users
- 8
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Website Content Crawler
by apify
Legacy PhantomJS Crawler
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support