> For the complete documentation index, see [llms.txt](https://ans-dev.gitbook.io/datareplicator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ans-dev.gitbook.io/datareplicator/api-reference/client-side-api/request.md).

# :Request

Requests data from the server for a specific `realKey` on a one-time basis. The server will check authorization before sending the data. The received data is also cached locally.

***

**`DataReplicator:Request(realKey: string)`**

***

{% tabs %}
{% tab title="Parameters" %}

* `realKey`: [string](https://create.roblox.com/docs/luau/strings)

  The key of the data to update. The key must have been previously created or registered.
  {% endtab %}

{% tab title="Returns" %}
`any | nil` - The data received from the server, or `nil` if the request failed (e.g., timed out, was denied by the server, or the key doesn't exist).
{% endtab %}

{% tab title="Example" %}
{% code title="RequestData.luau" %}

```lua
-- Requesting a table of game settings from the server.
local gameSettings = DataReplicator:Request("Public_GameSettings")

if gameSettings then
	print("Game settings loaded successfully. Volume is:", gameSettings.Volume)
	-- Apply settings to the game...
else
	warn("Could not retrieve game settings from the server.")
end
```

{% endcode %}
{% endtab %}
{% endtabs %}
