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

# PFServiceConfigGetAPIEndpointSize

> Gets the size of the buffer needed to hold the API endpoint for a service configuration.

Gets the size of the buffer needed to hold the API endpoint for a service configuration.

## Syntax

```cpp theme={null}
HRESULT PFServiceConfigGetAPIEndpointSize(  
    PFServiceConfigHandle handle,  
    size_t* apiEndpointSize  
)  
```

### Parameters

**`handle`**   PFServiceConfigHandle

ServiceConfig handle.

**`apiEndpointSize`**   size\_t\*<br />*output*

Buffer size required for the API endpoint string (including null terminator).

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFServiceConfig.h

## See also

[PFServiceConfig members](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

- [PFServiceConfigGetAPIEndpoint](/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggetapiendpoint.md)
- [Services C API overview - PFServiceConfig.h](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)
- [SDK Lifecycle](/services/playfab/sdks/c/lifecycle.md)
- [PFServiceConfigGetTitleIdSize](/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggettitleidsize.md)
- [PartyLocalEndpoint::GetEndpointStatistics](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_getendpointstatistics.md)
