![Reddit Scraper avatar](https://images.apifyusercontent.com/hMSvFE3kBdF0jftxxDxZlWszr1gZ9ZUVkI5mnnpcYNQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9GZ0p0akR3SkNMaFJIOXNhTS94aHJ5UFFuZTgza2hMckNXeS1yZWRkaXRfcGFpZC5wbmc.webp)
1 day trial then $45.00/month - No credit card required now
![Reddit Scraper](https://images.apifyusercontent.com/hMSvFE3kBdF0jftxxDxZlWszr1gZ9ZUVkI5mnnpcYNQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9GZ0p0akR3SkNMaFJIOXNhTS94aHJ5UFFuZTgza2hMckNXeS1yZWRkaXRfcGFpZC5wbmc.webp)
Reddit Scraper
1 day trial then $45.00/month - No credit card required now
Unlimited Reddit web scraper to crawl posts, comments, communities, and users without login. Limit web scraping by number of posts or items and extract all data in a dataset in multiple formats.
Can't limit number of posts
Closed
I'd like to limit number of posts scraped, for example scrape 5 posts, but when I set maxPostCount to 5 - I get more posts scraped.
Is this expected behaviour and if yes - is there other way for me to specifically limit posts number?
![trudax avatar](https://apify-image-uploads-prod.s3.amazonaws.com/i4pLQa9FeyTq8RwTD/SLmmggbwZMqHzzE7a-Gustavo.jpg)
maxItems is set to 1000 in your input
![trudax avatar](https://apify-image-uploads-prod.s3.amazonaws.com/i4pLQa9FeyTq8RwTD/SLmmggbwZMqHzzE7a-Gustavo.jpg)
Do you want to scrape just 5 posts and all comments from them?
mykola_scrapes
Yes, just 5 posts and comments from them
![trudax avatar](https://apify-image-uploads-prod.s3.amazonaws.com/i4pLQa9FeyTq8RwTD/SLmmggbwZMqHzzE7a-Gustavo.jpg)
I am working on a fix
mykola_scrapes
Additional info: maxPostCount works as expected when using this as a startUrl: https://www.reddit.com/search/?q=pension+consolidation
![trudax avatar](https://apify-image-uploads-prod.s3.amazonaws.com/i4pLQa9FeyTq8RwTD/SLmmggbwZMqHzzE7a-Gustavo.jpg)
Sorry for the delay. It should be working now.
- 366 monthly users
- 37 stars
- 99.9% runs succeeded
- 1.2 days response time
- Created in Feb 2022
- Modified 9 days ago