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

# GetQuota

> Reference for the XGameSave wrapper Provider.GetQuota method, which returns the amount of save-data storage still available to the current user.

Returns the amount of data available to store using the Save game wrapper.

## Syntax

```cpp theme={null}
int64_t GetQuota();
```

### Return value

Type: int64\_t

Returns the number of bytes still available within the storage space.

## Remarks

Each game has a limited quota on how much data they can save for a given user. If this quota is exceeded, attempting to save additional data will fail with E\_GS\_QUOTA\_EXCEEDED. To give an accurate view we always make sure that any outstanding writes, updates or deletes are handled first before returning since any of these can change the remaining quota.

## Requirements

**Header:** xgamesavewrappers.hpp

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles


## Related topics

- [Port Steam Cloud storage to the XBOX GDK](https://docs.xbox.com/build/steam-porting-guide/features/steam-cloud.md)
- [Microsoft.Xbox.Wrappers.XGameSave.Provider reference](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)
- [Get Title Multiplayer Servers Quotas](https://docs.xbox.com/services/playfab/api-references/rest/multiplayer/multiplayer-server/get-title-multiplayer-servers-quotas.md)
- [XGameSaveGetRemainingQuota](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavegetremainingquota.md)
- [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
