**Best practice example on how to
Best practice example on how to implement PPE princing
There are quite some questions on how to correctly implement PPE charging.
This is how I implement it. Would be nice if someone at Apify or community developers could verify the approach I'm using here or suggest improvements so we can all learn from that.
The example fetches paginated search results and then scrapes detailed listings.
Some limitations and criteria:
- We only use synthetic PPE events: apify-actor-start and apify-default-dataset-item
- I want to detect free users and limit their functionality.
- We use datacenter proxies.
6 Replies
super helpful, thanks for sharing Louis!
An improvement to my code: it's better to first collect new request in an array and push them in 1 go, instead of adding 1 request each time, which might overload the Apify API.
Previously, I used the charging-manager.ts Has the API changed?
I replied to the Reddit thread https://www.reddit.com/r/apify/comments/1padi9y/best_practice_example_on_how_to_implement_ppe/
Previously, I used the charging-manager.ts Has the API changed?There is now option to let Apify platform charge apify-actor-start and apify-default-dataset-item on its own so you don't need to charge them in code. But you loose some flexibility with that.