---
title: "HttpGet"
description: "Performs a synchronous HTTP GET and returns the response body."
---

```lua
HttpGet(url: string): string
```

---

## Aliases

None.

---

## Arguments

<ParamField body="url" type="string" required>
  The endpoint URL, including its protocol.
</ParamField>

---

## Returns

<ResponseField name="body" type="string">
  The response body, or a Luau comment string describing the failure.
</ResponseField>

Only http/https URLs. Blocks the calling VM path. Non-2xx/network failures produce a Luau comment string, not a structured status or necessarily an exception. Native receiver-style calls are also supported.

**Related types:** [HTTP types & behavior](/reference/http/types).

---

## Example

```lua
local body = HttpGet("https://example.com")
print(body:sub(1, 80))
```
