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.

597 runs
8 users
Try This Actor

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

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. 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

  1. Run the Actor: Execute the actor from the Apify Console, via API, or as part of a workflow.
  2. View Output: After execution, check the actor's run output. The environment variables will be printed in the log and available in the dataset.
  3. 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:

  1. Raw Environment Variables: The complete process.env object.
    js // Example snippet: { APIFY_ACTOR_RUN_ID: 'isBHoiJgoZxdFGedb', APIFY_PROXY_HOSTNAME: '10.0.83.204', APIFY_TOKEN: '*********', NODE_ENV: 'production', // ... many more }

  2. 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.

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 Trial

Actor Information

Developer
lukaskrivka
Pricing
Paid
Total Runs
597
Active Users
8
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support