> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-docs-clustered-top-nav.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync requests

You can make synchronous requests in your pre/post scripts. By synchronous, we mean that you can await a request in your scripting code.

Below is an inbuilt example of using `axios` library to

```js theme={null}
const axios = require("axios");

const response = await axios.get("https://api.github.com/users/usebruno");

bru.setVar("avatarUrl", response.data.avatar_url);
```

**Example:**

<img src="https://mintcdn.com/bruno-a6972042-docs-clustered-top-nav/CbaeV1HePvgPqDWg/images/screenshots/script/sync-requests.webp?fit=max&auto=format&n=CbaeV1HePvgPqDWg&q=85&s=f32f239b9e1223aa6ea8ae4b1356cf17" alt="sync requests" width="2472" height="1070" data-path="images/screenshots/script/sync-requests.webp" />

<img src="https://mintcdn.com/bruno-a6972042-docs-clustered-top-nav/CbaeV1HePvgPqDWg/images/screenshots/script/sync-requests-usage.webp?fit=max&auto=format&n=CbaeV1HePvgPqDWg&q=85&s=d495f7137763402a8aa7993ac6c9e562" alt="sync requests" width="2472" height="1070" data-path="images/screenshots/script/sync-requests-usage.webp" />
