> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/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/1O4OWJzDIk0uoLZ5/v2/images/screenshots/sync-requests.webp?fit=max&auto=format&n=1O4OWJzDIk0uoLZ5&q=85&s=b1b919d060d0225e54be08c505e0b88a" alt="sync requests" width="2708" height="1100" data-path="v2/images/screenshots/sync-requests.webp" />
