> ## 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.

# PFEntityGetAPIEndpointSize

> Gets the size of the buffer needed to hold the API endpoint string from an entity handle.

Gets the size of the buffer needed to hold the API endpoint string from an entity handle.

## Syntax

```cpp theme={null}
HRESULT PFEntityGetAPIEndpointSize(  
    PFEntityHandle entityHandle,  
    size_t* apiEndpointSize  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle returned from a auth call.

**`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:** PFEntity.h

## See also

[PFEntity members](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [PFEntityGetAPIEndpoint](/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [Entity Handles](/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PartyEndpoint::GetEntityId](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
- [PartyEndpoint::GetEntityType](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentitytype.md)
