VOOZH about

URL: https://apify.com/apify/example-secret-input

⇱ Example Secret Input Β· Apify


Pricing

Pay per usage

Go to Apify Store

Example Secret Input

This Apify actor showcases how to use secret fields in the actor input.

Pricing

Pay per usage

Rating

4.7

(3)

Developer

πŸ‘ Apify

Apify

Maintained by Apify

Actor stats

0

Bookmarked

48

Total users

1

Monthly active users

7 months ago

Last modified

Share

Example secret input actor

This Apify actor showcases how to use secret fields in the actor input.

Setting an input field as secret

To make an input field secret, just set "isSecret": true to the field in the actor's INPUT_SCHEMA.json, like this:

{
// ...
"properties": {
// ...
"password": {
"title": "Password",
"type": "string",
"description": "A secret, encrypted input field",
"editor": "textfield",
"isSecret": true
},
// ...
},
// ...
}

The editor for this input field will then turn into a secret input, and when you edit the field value, it will be stored encrypted. πŸ‘ Secret input editor

Reading secret input fields

When you read the actor input through Actor.getInput(), the encrypted fields are automatically decrypted, without any additional code needed.

>await Actor.getInput();
{
username:'username',
password:'password'
}

If you read the INPUT key from the actor run's default key-value store directly, you will still get the original, encrypted input value.

>await Actor.getValue('INPUT');
{
username:'username',
password:'ENCRYPTED_VALUE:Hw/uqRMRNHmxXYYDJCyaQX6xcwUnVYQnH4fWIlKZL2Vhtq1rZmtoGXQSnhIXmF58+DjKlMZpTlK2zN3YUXk1ylzU6LfXyysOG/PISAfwm27FUgy3IfdgMyQggQ4MydLzdlzefX0mPRyixBviRcFhRTC+K7nK9lkATt3wJpj91YAZm104ZYkcd5KmsU2JX39vxN0A0lX53NjIenzs3wYPaPYLdjKIe+nqG9fHlL7kALyi7Htpy91ZgnQJ1s9saJRkKfWXvmLYIo5db69zU9dGCeJzUc0ca154O+KYYP7QTebJxqZNQsC8EH6sVMQU3W0qYKjuN8fUm1fRzyw/kKFacQ==:VfQd2ZbUt3S0RZ2ciywEWYVBbTTZOTiy'
}

Further information

You can find out more about the secret input feature in the secret input docs.

You might also like

Python Example

apify/python-example

Example Actor written in Python, showing how to read the Actor input and push to the Actor's default dataset.

Example Call

apify/example-call

A simple example showing how to call another actor from an actor. Note that this actor doesn't accept any input and doesn't generate any output.

Actor in Go example

jirimoravcik/go-actor-example

Example actor written in Go.

πŸ‘ User avatar

JiΕ™Γ­ Moravčík

16

Keboola Input Mapping

drobnikj/keboola-input-mapping

It parses the input table from Apify <> Keboola extractor and maps the data into another task or actor input.

πŸ‘ User avatar

Jakub DrobnΓ­k

25

Zentra Actor Supply Chain Inspector

zentrafoundry/zentra-actor-supply-chain-inspector

Audit Actor codebases for supply-chain, dependency, Dockerfile, license, and secret risks.

Clearancejobs Scraper

parseforge/clearancejobs-scraper

Scrape security clearance job listings from ClearanceJobs.com. Search by keyword, location, clearance level (Secret, Top Secret, TS/SCI), polygraph, job type, remote work, and experience level. Extract job title, company, salary, clearance requirements, description, and application details.

Dynamic Input

useful-tools/dynamic-input

Actor for calling other Actors with dynamic input

26

Example MCP Server

apify/example-mcp-server

This is an example MCP Server Actor written in Typescript. It doesn't do much; it just reads two numbers from its input, sums them, and pushes the result to the Actor's default dataset.

Related articles

Instagram location scraping: complete guide
Read more
How to build and monetize an AI agent on Apify
Read more
Why you should be using Actor schemas
Read more