Skip to content

n8n 公共 REST API#

¥n8n public REST API

Feature availability

n8n API 在免费试用期间不可用。请升级以使用此功能。

¥The n8n API isn't available during the free trial. Please upgrade to access this feature.

使用 n8n 的公共节点 API,你可以以编程方式执行许多与 GUI 中相同的任务。本节介绍 n8n 的 REST API,包括:

¥Using n8n's public API, you can programmatically perform many of the same tasks as you can in the GUI. This section introduces n8n's REST API, including:

¥How to authenticate

¥Paginating results

¥Using the built-in API playground (self-hosted n8n only)

¥Endpoint reference

n8n 提供 n8n API 节点 接口,用于在工作流中访问 API。

¥n8n provides an n8n API node to access the API in your workflows.

了解 REST API#

¥Learn about REST APIs

本 API 文档假定你熟悉 REST API。如果你还不了解,以下资源或许对你有所帮助:

¥The API documentation assumes you are familiar with REST APIs. If you're not, these resources may be helpful:

¥KnowledgeOwl's guide to working with APIs: a basic introduction, including examples of how to call REST APIs.

¥IBM Cloud Learn Hub - What is an Application Programming Interface (API): this gives a general, but technical, introduction to APIs.

¥IBM Cloud Learn Hub - What is a REST API?: more detailed information about REST APIs.

¥MDN web docs - An overview of HTTP: REST APIs work over HTTP and use HTTP verbs, or methods, to specify the action to perform.

Use the API playground

playground 中试用 API 可以帮助你了解 API 的工作原理。如果你担心更改实时数据,请考虑设置测试工作流或测试 n8n 实例,以便安全地进行探索。

¥Trying out the API in the playground can help you understand how APIs work. If you're worried about changing live data, consider setting up a test workflow, or test n8n instance, to explore safely.