Example Web Server
Pricing
Pay per usage
Example Web Server
This example demonstrates how to use web server in actor as communication channel with outer world. Read more at Apify docs https://docs.apify.com/actors/running#container-web-server
Pricing
Pay per usage
Rating
4.8
(3)
Developer
Apify
Maintained by ApifyActor stats
5
Bookmarked
68
Total users
5
Monthly active users
14 days ago
Last modified
Categories
Share
example-web-server
Demonstrates how to run an HTTP server inside an actor using the container web server feature.
The actor starts an Express.js app on the port provided by ACTOR_WEB_SERVER_PORT. A simple web form lets you submit URLs; the actor screenshots each one with Puppeteer and stores the images in the default Key-Value Store, showing thumbnails in the UI.
Use this as a template for actors that need to accept external input or display progress while running.


