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

# get

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/functions.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/functions.ts)

Get the function metadata together with its download URL, the
counterpart of `client.functions.get()` in Python.

```typescript theme={null}
NotteFunction.get(options?: FunctionGetOptions): Promise<FunctionWithLinkResponse>;
```

## Parameters

<ParamField body="options" type={"FunctionGetOptions"}>
  Optional version selector; omitted means the latest version.

  Default:

  ```typescript theme={null}
  {}
  ```
</ParamField>

## Returns

```typescript theme={null}
Promise<FunctionWithLinkResponse>
```

Function metadata, version history, and the download link returned by the API.

## Raises

* NotteAPIError if the function cannot be retrieved.

## Example

```typescript theme={null}
const { latest_version, versions } = await fn.get();
```

## Related types

* [FunctionGetOptions](/typescript-sdk-reference/types/functiongetoptions)
* [FunctionWithLinkResponse](/typescript-sdk-reference/types/functionwithlinkresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.