Pay per event example
by mhamas
A practical example actor demonstrating Apify's pay-per-event pricing. You pay only for the actor start and each trivia fact generated, not for platform runtime.
Opens on Apify.com
About Pay per event example
Ever wondered how pay-per-event pricing actually works on Apify? This example actor is built to show you exactly that. Instead of getting charged for compute time or memory usage, you only pay for two specific things: the initial start of the actor and for each trivia fact it generates. It's a transparent model that's perfect for low-volume, event-driven tasks where you want costs to directly match output. I use this actor to demonstrate the concept to other developers and to test integration points for systems that should trigger on-demand. The main benefit is cost predictability; you know your bill will be tied directly to the number of "events" (in this case, fun facts) produced, not to how long the code runs in the background. It’s a straightforward, hands-on way to understand a pricing approach that can be more efficient for certain types of micro-tasks or data generation workflows.
What does this actor do?
Pay per event example 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
Pay per event example
Overview
This Actor demonstrates Apify's pay-per-event billing model. It generates trivia facts about popular movies. You're charged only for specific events (like starting the Actor or generating trivia), not for general platform usage during the run.
Key Features
- Event-based pricing: Pay only for triggered events, not compute time
- Cost control: Set a maximum spend limit per run in USD
- Three trivia categories: Star Wars, Harry Potter, and Lord of the Rings
- Configurable output: Specify how many facts to generate per category (up to 10 each)
Pricing
| Event | Cost |
|---|---|
| Actor start | $0.10 |
| Star Wars trivia | $0.20 |
| Harry Potter trivia | $0.30 |
| Lord of the Rings trivia | $0.50 |
How to Use
- Configure your maximum budget in the run options
- Provide input specifying which trivia categories and how many facts you want
- Run the Actor - you'll only be charged for events that actually occur
Input
The input is a JSON array where each object contains:
- name: trivia category ("star-wars", "harry-potter", or "lord-of-the-rings")
- count: number of facts to generate (1-10)
Example:
[
{ "name": "lord-of-the-rings", "count": 1 },
{ "name": "harry-potter", "count": 5 },
{ "name": "star-wars", "count": 10 }
]
Output
Generated trivia facts are stored in the default dataset. You can also view them in the run logs, which include details about charges incurred during execution.
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 Pay per event example now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- mhamas
- Pricing
- Paid
- Total Runs
- 489
- Active Users
- 7
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