![API / JSON scraper avatar](https://images.apifyusercontent.com/HTSnOzpsqEamRA3u_7P_Y-p8RTXK6P5GPXTV9NQqtik/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9SUUY0UEJaR24zbjRxcklMaS9vbnQ2ZENmdktiWkpRalloSi1qc29uLnBuZw.webp)
API / JSON scraper
1 day trial then $5.00/month - No credit card required now
![API / JSON scraper](https://images.apifyusercontent.com/HTSnOzpsqEamRA3u_7P_Y-p8RTXK6P5GPXTV9NQqtik/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9SUUY0UEJaR24zbjRxcklMaS9vbnQ2ZENmdktiWkpRalloSi1qc29uLnBuZw.webp)
API / JSON scraper
1 day trial then $5.00/month - No credit card required now
Scrape any API / JSON URLs directly to the dataset, and return them in CSV, XML, HTML, or Excel formats. Transform and filter the output. Enables you to follow pagination recursively from the payload without the need to visit the HTML page.
getting "cannot read properties of undefined" (reading statusCode)
The error message makes it sound like this is coming from the error handler function, but I'm doing a null check on response before trying to pull the statusCode, so I'm not sure if this error is actually coming from somewhere inside the scraper code
![pocesar avatar](https://apify-image-uploads-prod.s3.amazonaws.com/aurPRTH47KhmiaPNJ/wp2eHWY9Wr5Kw7WtT-461084.jpg)
you should be able to get the statusCode from inside the handler now, it's forwarding the response there as well
Actor Metrics
18 monthly users
-
6 stars
>99% runs succeeded
Created in May 2022
Modified a year ago