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

# 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`](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the with the `OnLobbyFindLobbiesCompleted result` field set to [`Success`](https://docs.xbox.com/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`](https://docs.xbox.com/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`](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted) with the with the `OnLobbyFindLobbiesCompleted result` field set to [`Success`](https://docs.xbox.com/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`](https://docs.xbox.com/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](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/overview.md)
* class [LobbySearchConfiguration](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbySearchConfiguration/overview.md)
* class [PlayFabMultiplayer](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/overview.md)
* namespace [PlayFab.Multiplayer](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference.md)


## Related topics

- [PlayFabMultiplayer.OnLobbyFindLobbiesCompleted](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyFindLobbiesCompleted.md)
- [PlayFabMultiplayer.LobbyClientRequestedSearchResultCountUpperLimit](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/LobbyClientRequestedSearchResultCountUpperLimit.md)
- [PlayFabMultiplayer.JoinLobby](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/JoinLobby.md)
- [PlayFabMultiplayer.OnLobbyDisconnected](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyDisconnected.md)
- [PlayFabMultiplayer.OnLobbyUpdated](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbyUpdated.md)
