> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# HttpGet

> Performs a GET request for game:HttpGet(url, noCache) or game:HttpGetAsync(url, noCache) and returns the response body string. The URL must pass Real's URL restrictions.

<div className="real-function-page">
  ```lua theme={null}
  HttpGet(context: DataModel, url: string, noCache?: boolean | number): string
  ```

  ## Arguments

  <ParamField path={"context"} type={"DataModel"} required>
    Method-call self value. Use game:HttpGet(url, noCache) or game:HttpGetAsync(url, noCache).
  </ParamField>

  <ParamField path={"url"} type={"string"} required>
    URL string to request.
  </ParamField>

  <ParamField path={"noCache"} type={"boolean | number"}>
    Optional cache bypass. true or numeric 1 skips an existing cached response and performs a new request.
  </ParamField>

  ## Returns

  <ResponseField name={"body"} type={"string"}>
    Downloaded response body string, cached body string, or an empty string when the request cannot be opened.
  </ResponseField>

  ## ตัวอย่าง

  Run a DataModel-style GET request and return the response body string.

  ```lua theme={null}
  local body = game:HttpGet("https://example.com", true)
  print(body)
  ```
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.