Playwright APIRequest

In Playwright, I am able to send APIRequests from the browser using this technique:

My API needs some cookies and session state established within the browser before it can call the API Endpoints directly. So I’ve done this before with the playwright technique I linked above. But now I want to use k6/browser instead, but I cannot see the ability to send API Requests from the browser context. Is this possible with grafana k6/browser?

Hi, Mald!

Can the ‘http’ module for sending api requests help you?
Here are examples for sending requests: HTTP Requests | Grafana k6 documentation
The script will look like a hybrid of api requests and a browser.