Yes, you can do that too.
One thing to note, is that sometimes the scraping services do more than just fetch the resulting page - they might also do error handling, or retries, or bypass firewall (Cloudflare), etc., so it can be more reliable.
If you read about ScrapeNinja on their website,
ScrapeNinja handles headless browsers, proxies, timeouts, retries, and helps with data extraction, so you can just get the data in JSON.
Rotating Proxies, Unlimited Volume.
ScrapeNinja uses high quality proxies under the hood, so you don’t spend time managing and monitoring them, and it won’t break your bank.
Chrome Fingerprint Emulation
Getting blocked when scraping using CURL or PHP? ScrapeNinja emulates real Chrome request, without Puppeteer overhead (but JS evaluation is available, too!).
Smart Retries
ScrapeNinja retries based on timeout, response code and page text.
JS Evaluation
Choose if you want to evaluate JS (launch real headless browser) or perform raw network request (to get best performance and lowest latency possible). Experiment and switch between 2 network engines of ScrapeNinja on the fly.
Extract pure data from HTML. Faster.
Rapidly write & test simple JS snippets in online editor, to extract JSON from arbitrary HTML, via JS Extractors feature.
Build and test scrapers right in your browser.
Rapidly build and test web scraper in online builder, without writing a single line of code. Copy&paste generated web scraper code to your environment when you are done.