Skip to content

Commit ed58c59

Browse files
Apply suggestions from code review
Co-authored-by: Michał Olender <[email protected]>
1 parent d532341 commit ed58c59

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

sources/platform/actors/publishing/monetize/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Apify Store allows you to monetize your web scraping, automation and AI Agent pr
1818

1919
Actors in Apify Store can be published under one of the following pricing models:
2020

21-
1. **Free**: Users can run the Actor without any additional charges beyond the platform usage costs generated by the Actor.
22-
2. **Rental**: Users pay for the platform usage costs. However, after a trial period, they need to pay a flat monthly fee to the developer to continue using the Actor.
23-
3. **Pay per result (PPR)**: Users don't pay for the platform usage costs. Instead, they pay the developer based on the number of results produced by the Actor.
24-
4. **Pay per event (PPE)**: Users don't pay for the platform usage cost the Actor generates. Instead, they pay based on specific events that are programmatically triggered from the Actor's source code. These events are defined by the developer and can include actions such as generating a single result or starting an Actor.
21+
1. _Free_: Users can run the Actor without any additional charges beyond the platform usage costs generated by the Actor.
22+
2. _Rental_: Users pay for the platform usage costs. However, after a trial period, they need to pay a flat monthly fee to the developer to continue using the Actor.
23+
3. _Pay per result (PPR)_: Users don't pay for the platform usage costs. Instead, they pay the developer based on the number of results produced by the Actor.
24+
4. _Pay per event (PPE)_: Users don't pay for the platform usage cost the Actor generates. Instead, they pay based on specific events that are programmatically triggered from the Actor's source code. These events are defined by the developer and can include actions such as generating a single result or starting an Actor.
2525

2626
For a detailed comparison of pricing models from the perspective of your users, refer to [Actors in Store](/platform/actors/running/actors-in-store) page.
2727

@@ -107,7 +107,7 @@ All metrics can be exported as JSON for custom analysis and reporting.
107107

108108
## Promoting your Actor
109109

110-
Create serach-engine-optimized descriptions and README files to improve search engine visibility. Share your Actor on multiple channels:
110+
Create search-engine-optimized descriptions and README files to improve search engine visibility. Share your Actor on multiple channels:
111111

112112
- Post on Reddit, Quora, and social media platforms
113113
- Create tutorial videos demonstrating key features

sources/platform/actors/publishing/monetize/pay_per_event.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Pay per event (PPE)
2+
title: Pay per event
33
description: Learn how to monetize your Actor with pay-per-event (PPE) pricing, charging users for specific actions like Actor starts, dataset items, or API calls, and understand how to set profitable, transparent event-based pricing.
44
slug: /actors/publishing/monetize/pay-per-event
55
sidebar_position: 3
@@ -114,7 +114,7 @@ await Actor.exit();
114114
</TabItem>
115115
<TabItem value="Python" label="Python">
116116

117-
```python
117+
```py
118118
from apify import Actor
119119

120120
async def charge_for_actor_start():
@@ -139,7 +139,7 @@ async def main():
139139

140140
:::note Actor migrations and charging
141141

142-
Actors can migrate between servers during execution, which restarts the process and clears memory. When using PPE charging, avoid charging the start event multiple times after a migration by checking your charging state.
142+
Actors can migrate between servers during execution, which restarts the process and clears memory. When using PPE pricing model, avoid charging the start event multiple times after a migration by checking your charging state.
143143

144144
:::
145145

@@ -196,7 +196,7 @@ await Actor.exit();
196196
</TabItem>
197197
<TabItem value="Python" label="Python">
198198

199-
```python
199+
```py
200200
from apify import Actor
201201
import requests
202202

@@ -237,7 +237,7 @@ async def main():
237237

238238
### Respect user spending limits
239239

240-
Finish the Actor run once charging reaches user-configured Maximum cost per run. Apify SDKs (JS and Python) return ChargeResult that helps determine when to finish.
240+
Finish the Actor run once charging reaches user-configured Maximum cost per run. Apify SDKs (JS and Python) return `ChargeResult` that helps determine when to finish.
241241

242242
The `eventChargeLimitReached` property checks if the current event type can be charged more. If you have multiple event types, analyze the `chargeableWithinLimit` property to see if other events can still be charged before stopping the Actor.
243243

@@ -277,7 +277,7 @@ await Actor.exit();
277277
</TabItem>
278278
<TabItem value="Python" label="Python">
279279

280-
```python
280+
```py
281281
from apify import Actor
282282

283283
async def charge_for_api_product_detail():

sources/platform/actors/publishing/monetize/pay_per_result.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Pay per result (PPR)
2+
title: Pay per result
33
description: Learn how to monetize your Actor with pay-per-result (PPR) pricing, charging users based on the number of results produced and stored in the dataset, and understand how to set profitable, transparent result-based pricing.
44
slug: /actors/publishing/monetize/pay-per-result
55
sidebar_position: 2
@@ -122,7 +122,7 @@ export const pushDataMaxAware = async (data: Parameters<Actor['pushData']>[0]):
122122
</TabItem>
123123
<TabItem value="Python" label="Python">
124124

125-
```python
125+
```py
126126
import os
127127
import asyncio
128128
from apify import Actor
@@ -205,9 +205,9 @@ Example scenarios:
205205

206206
This ensures that every run generates at least one result, guaranteeing that users are charged appropriately for using your Actor.
207207

208-
## Example of a pay-per-result pricing model
208+
## Example of pay-per-result pricing model
209209

210-
You make your Actor pay-per-result and set the price to be **$1/1,000 results**. During the first month, three users use your Actor:
210+
You make your Actor pay-per-result and set the price to be _$1/1,000 results_. During the first month, three users use your Actor:
211211

212212
- _User 1 (paid plan)_: Gets 50,000 results, costing them $50
213213
- _User 2 (paid plan)_: Gets 20,000 results, costing them $20

sources/platform/actors/publishing/monetize/pricing_and_costs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Platform usage by _FREE_ tier users is covered by Apify and does not contribute
2121

2222
:::
2323

24-
To calculate your costs in dollars for a specific run by paying user, multiply the unit cost of each service by the quantity consumed. For example, if a _BRONZE_ tier user run uses 10 compute units (CUs) at $0.4/CU, your cost would be $4.
24+
To calculate your costs for a specific run by paying user, multiply the unit cost of each service by the quantity consumed. For example, if a _BRONZE_ tier user run uses 10 compute units (CUs) at $0.4/CU, your cost would be $4.
2525

2626
As highlighted in the [How to attract larger customers of PPE and PPR Actors](#how-to-attract-larger-customers-of-ppe-and-ppr-actors) section, if your Actor uses tiered pricing, the user's discount tier determines the unit costs applied to their runs. Your costs are lower for higher tiers, enabling you to offer more competitive pricing to these customers, while sustaining healthy profit margins.
2727

sources/platform/actors/publishing/monetize/rental.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Based on the reasons mentioned in [Disadvantages of the rental pricing model](#d
4949

5050
## Example of a rental pricing model
5151

52-
You make your Actor rental with **7-day free trial** and then **$30/month**. During the first calendar month, three users start to use your Actor:
52+
You make your Actor rental with _7-day free trial_ and then _$30/month_. During the first calendar month, three users start to use your Actor:
5353

5454
- _User 1 (paid plan)_: Starts free trial on the 15th
5555
- _User 2 (paid plan)_: Starts free trial on the 25th

0 commit comments

Comments
 (0)