ill-bronzeI
Apify & Crawlee3y ago
13 replies
ill-bronze

How to make a request within a handler

I'm using Crawlee + PlaywrightCrawler and PlaywrightRouter. I have scenarios where inside one of my link handlers I want to gather data from the page that I need to make a multiple API calls inside of that same page handler. I gather data from those API calls to addRequests for additional pages.

Obviously I could reach for a non crawlee http client like Axios but I was wondering if there was any suggested way for inline API requests.

Thanks for any help in advance
Was this page helpful?