Actorization converts existing software into reusable serverless applications compatible with the Apify platform.
Quick start
- Run
apify init <actor-name> --user-agent apify-agent-skills/apify-actorizationin project root - Create a
Dockerfilefor the project's language - Wrap code with SDK lifecycle
- Configure
.actor/input_schema.json - Test with
apify run --input '{"key": "value"}' --user-agent apify-agent-skills/apify-actorization - Deploy with
apify push --user-agent apify-agent-skills/apify-actorization
Language-specific integration
| Language | Install | Wrap Code |
|---|---|---|
| JS/TS | npm install apify | await Actor.init() ... await Actor.exit() |
| Python | pip install apify | async with Actor: |
| Other | Use CLI in wrapper script | apify actor get-input / apify actor push-data |
Actorization checklist
-
.actor/actor.jsonexists with correct name and description -
.actor/input_schema.jsondefines all required inputs -
.actor/output_schema.jsondefines output structure (if applicable) -
Dockerfileis present and builds successfully -
Actor.init()/Actor.exit()wraps main code (JS/TS) -
async with Actor:wraps main code (Python) - Inputs are read via
Actor.getInput()/Actor.get_input() - Outputs use
Actor.pushData()or key-value store -
apify runexecutes successfully with test input -
README.mdexists with proper structure
Security
- Sanitize crawled data — Never pass raw HTML or URLs into shell commands or eval().
- Validate all external data before pushing to datasets.
- Review dependencies before installing.
- Pin versions and use lockfiles.