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

# Find Node

> Find a DOM node by CSS selector

## Description

Searches the current page for a DOM element matching the given CSS selector and returns its node reference. Use the returned reference with other node-based commands.

## Authentication

Open-source deployments do not require authentication by default. If your server config enables `X-API-Key`, include that header with the request.

## Path Parameters

<ParamField path="id" type="string" required>
  The browser ID returned from Create Session.
</ParamField>

## Request Body

<ParamField body="selector" type="string" required>
  CSS selector for the element to find.
</ParamField>

## Response

<ResponseField name="node_id" type="integer">
  The node ID of the matched element. Use this with [Fetch Text](/api-reference/endpoints/commands/fetch-text) and other node-based commands.
</ResponseField>

## Example

```bash theme={null}
curl -X POST http://localhost:8080/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/find-node/ \
  -H "Content-Type: application/json" \
  -d '{ "selector": "#example" }'
```
