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

# useParticipant

> useParticipant returns a participant object for a given participant session_id.

<Badge color="yellow">Deprecated 0.17.0</Badge>

`useParticipant(params): Object | null`

If no participant is found for the given `session_id`, returns `null`.

`useParticipant` can also be used to set up optional callbacks for [`participant-left`](/reference/daily-js/events/participant-events#participant-left) and [`participant-updated`](/reference/daily-js/events/participant-events#participant-updated) events.

## Parameters

<ParamField body="session_id" type="string" required>
  A unique identifier for the participant
</ParamField>

<ParamField body="onParticipantLeft" type="Function">
  Callback for the [`participant-left`](/reference/daily-js/events/participant-events#participant-left) event
</ParamField>

<ParamField body="onParticipantUpdated" type="Function">
  Callback for the [`participant-updated`](/reference/daily-js/events/participant-events#participant-updated) event
</ParamField>

## Return value

Returns an `Object | null` containing detailed information about the participant. See [participant properties](/reference/daily-js/types/daily-participant). If no participant is found for a given `session_id`, `useParticipant` returns `null`.

## Example

```jsx theme={null}
import { useParticipant } from '@daily-co/daily-react';

export const UseParticipantDemo = (params) => {
  const sessionID = params.session_id;
  const participant = useParticipant(sessionID);

  return <div>Participant {participant ? 'found' : 'not found'}</div>;
};
```

## See also

<CardGroup>
  <Card title="Hooks" icon="code" iconType="solid">
    * [useParticipantProperty()](/reference/daily-react/use-participant-property)
    * [useLocalSessionId()](/reference/daily-react/use-local-session-id)
    * [useParticipantIds()](/reference/daily-react/use-participant-ids)
    * [useParticipantCounts()](/reference/daily-react/use-participant-counts)
    * [useActiveParticipant()](/reference/daily-react/use-active-participant)
    * [useActiveSpeakerId()](/reference/daily-react/use-active-speaker-id)
    * [useLocalParticipant()](/reference/daily-react/use-local-participant)
    * [useWaitingParticipants()](/reference/daily-react/use-waiting-participants)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [participant-left](/reference/daily-js/events/participant-events#participant-left)
    * [participant-updated](/reference/daily-js/events/participant-events#participant-updated)
  </Card>
</CardGroup>
