> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples.md).

# Built-in methods and variables examples

n8n provides built-in methods and variables for working with data and accessing n8n data. This section provides usage examples.

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## In this section

* [execution](/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples/execution.md): set and get custom execution data.
* [getWorkflowStaticData](/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples/getworkflowstaticdata.md): access the static workflow data.
* [("node-name").all](/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples/node-name-.all.md): access all the items of the current or parent nodes.
* [vars](/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples/vars.md): access your environment's custom variables.

## Related resources <a href="#related-resources" id="related-resources"></a>

* [Cookbook](/build/code-in-n8n/cookbook.md)
* [Code node](/build/code-in-n8n/cookbook/code-node.md)
* [HTTP Request node](/build/code-in-n8n/cookbook/http-request-node.md)
* [Built-in methods and variables reference](/build/code-in-n8n/use-built-in-shortcuts.md)
* [Expressions](/build/work-with-data/expressions-versus-data-nodes.md)
* [Using the Code node](/build/code-in-n8n/using-the-code-node.md)
