# Playwright APIRequest

**URL:** <https://community.grafana.com/t/playwright-apirequest/152940>\
**Category:** Grafana k6\
**Tags:** k6-browser\
**Created:** [June 18, 2025, 7:07pm UTC](https://community.grafana.com/t/playwright-apirequest/152940 "2025-06-18T19:07:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mald](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/mald/32/52543_2.png) [@mald](https://community.grafana.com/u/mald)\
**Post date:** [June 18, 2025, 7:07pm UTC](https://community.grafana.com/t/playwright-apirequest/152940/1 "2025-06-18T19:07:59Z")

</div>

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

> **[API testing | Playwright](https://playwright.dev/docs/api-testing#sending-api-requests-from-ui-tests)**
>
> Introduction

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?

---

<div class="post-metadata">

**Author:** ![PaulM](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@PaulM](https://community.grafana.com/u/PaulM)\
**Post date:** [July 1, 2025, 10:50am UTC](https://community.grafana.com/t/playwright-apirequest/152940/2 "2025-07-01T10:50:03Z")

</div>

Hi, Mald!

Can the ‘http’ module for sending api requests help you?  
Here are examples for sending requests: [HTTP Requests | Grafana k6 documentation](https://grafana.com/docs/k6/latest/using-k6/http-requests/)  
The script will look like a hybrid of api requests and a browser.
