> ## 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, cache) or game:HttpGetAsync(url, cache) 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, cache?: boolean | number): string
  ```

  ## Argümanlar

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

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

  <ParamField path={"cache"} type={"boolean | number"}>
    Optional cache control. true or numeric 1 enables the URL cache.
  </ParamField>

  ## Dönüşler

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

  ## Örnek

  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>
