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

# PlayFabMultiplayer.FindLobbies

> PlayFabMultiplayer.FindLobbies

## Method (1 of 2)

Search for lobbies on behalf of the local user.

```csharp theme={null}
public static void FindLobbies(PFEntityKey searchingEntity, 
    LobbySearchConfiguration searchConfiguration)
```

| parameter           | description                                                     |
| ------------------- | --------------------------------------------------------------- |
| searchingEntity     | The PlayFab entity performing the search.                       |
| searchConfiguration | The configuration used to filter and sort the searched lobbies. |

## Remarks (1 of 2)

This is an asynchronous operation. Upon successful completion, the title will be provided a [`OnLobbyFindLobbiesCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the with the `OnLobbyFindLobbiesCompleted result` field set to [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success). Upon a failed completion, the title will be provided a Upon a failed completion, the title will be provided a [`OnLobbyFindLobbiesCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the `OnLobbyFindLobbiesCompleted result` field set to a failed error code.

***

## Method (2 of 2)

Search for lobbies on behalf of the local user.

```csharp theme={null}
public static void FindLobbies(PlayFabAuthenticationContext searchingEntity, 
    LobbySearchConfiguration searchConfiguration)
```

| parameter           | description                                                     |
| ------------------- | --------------------------------------------------------------- |
| searchingEntity     | The PlayFab entity performing the search.                       |
| searchConfiguration | The configuration used to filter and sort the searched lobbies. |

## Remarks (2 of 2)

This is an asynchronous operation. Upon successful completion, the title will be provided a [`OnLobbyFindLobbiesCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the with the `OnLobbyFindLobbiesCompleted result` field set to [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success). Upon a failed completion, the title will be provided a Upon a failed completion, the title will be provided a [`OnLobbyFindLobbiesCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the `OnLobbyFindLobbiesCompleted result` field set to a failed error code.

## See Also

* class [PFEntityKey](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/overview)
* class [LobbySearchConfiguration](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbySearchConfiguration/overview)
* class [PlayFabMultiplayer](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/overview)
* namespace [PlayFab.Multiplayer](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference)


## Related topics

- [PlayFabMultiplayer.OnLobbyFindLobbiesCompleted](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted.md)
- [PlayFabMultiplayer.LobbyClientRequestedSearchResultCountUpperLimit](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/LobbyClientRequestedSearchResultCountUpperLimit.md)
- [PlayFabMultiplayer class](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/overview.md)
- [PlayFabMultiplayer.OnLobbyDisconnected](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyDisconnected.md)
- [PlayFabMultiplayer.OnLobbyUpdated](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyUpdated.md)
