
Pay per event example
Pricing
Pay per event

Pay per event example
This is an example pay-per-event Actor. When running it, you don't pay for the underlying platform usage, just for the Actor start event, and trivia facts it generates.
0.0 (0)
Pricing
Pay per event
3
Monthly users
1
Runs succeeded
>99%
Last modified
6 months ago
Example pay-per-event Actor generating cool trivia facts
This actor features new Actor pay-per-event model. You can ask it to generate trivia facts about various popular movies (see below). When running this Actor, you do not pay for the underlying platform usage for the run, just for a specific events, such as starting the Actor, or generating a trivia fact from a specific category (see the pricing below).
In the run options of the run, you can also specify the maximum cost you are willing to pay for a run, in US dollars.
Pricing
Event | Cost |
---|---|
Actor start | $0.1 |
Star wars trivia | $0.2 |
Harry Potter trivia | $0.3 |
Lord of the Rings trivia | $0.5 |
Input
The input is array of object in form
1{ 2 "name": TRIVIA_NAME, 3 "count": COUNT 4}
where TRIVIA_NAME
can be anything from
- lord-of-the-rings
- harry-potter
- star-wars
and
COUNT
can be any number up to 10.
The trivia are generated in the order provided in the input.
Example input
1[ 2 { 3 "name": "lord-of-the-rings", 4 "count": 1 5 }, 6 { 7 "name": "harry-potter", 8 "count": 5 9 }, 10 { 11 "name": "star-wars", 12 "count": 10 13 } 14]
Output
The trivia facts the Actor generates are stored in a default dataset. You can also read them in logs, together with charges that have been performed.
Pricing
Pricing model
Pay per eventThis Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Actor start
$0.10
Flat charge for starting an Actor run.
Star wars trivia
$0.20
Generating Star Wars trivia.
Harry Potter trivia
$0.30
Generating Harry Potter trivia.
Lord of the Rings trivia
$0.50
Generating Lord of the Rings trivia.