Pay per event example avatar
Pay per event example

Pricing

Pay per event

Go to Store
Pay per event example

Pay per event example

mhamas/pay-per-event-example

Developed by

Matej Hamas

Maintained by Community

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%

Response time

88 days

Last modified

5 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

EventCost
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 event 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Actor start

$0.100

Flat charge for starting an Actor run.

Star wars trivia

$0.200

Generating Star Wars trivia.

Harry Potter trivia

$0.300

Generating Harry Potter trivia.

Lord of the Rings trivia

$0.500

Generating Lord of the Rings trivia.