# n8n

Call discover and run from n8n's HTTP Request node, with your OrcaRouter key as a header credential, to put catalog tools into any workflow.

|  |  |
| --- | --- |
| Kind | workflow |
| Connects through | rest |
| Docs | <https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/> |

## Install

1. Create a Header Auth credential named `Authorization` whose value is `Bearer` followed by your OrcaRouter API key.
2. Add an HTTP Request node, choose Import cURL, paste the discover command below and select the credential.
3. Add a second HTTP Request node for the run call; its URL takes the tool id from the first node with the expression below.

## Code

### Find a tool (Import cURL)

```shell
curl -X POST https://api.orcarouter.ai/v1/tools/discover \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "tiktok user profile", "limit": 3}'
```

### Run it (Import cURL)

```shell
curl -X POST "https://api.orcarouter.ai/v1/tools/$TOOL_ID/run" \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"username": "nasa"}}'
```

### Run URL as an n8n expression

```text
https://api.orcarouter.ai/v1/tools/{{ $json.data.results[0].id }}/run
```

## Recipes

- [Track competitor TikTok accounts](https://www.orcarouter.ai/tools/recipes/track-competitor-tiktok-accounts.md): Pull each competitor's TikTok profile, find its latest videos and read what viewers say, in three tool calls an agent can repeat every week.
- [Monitor brand mentions on the web and TikTok](https://www.orcarouter.ai/tools/recipes/monitor-brand-mentions.md): Search the web and TikTok for your brand, then read the comments under the posts that mention it: a daily brand check an agent can run on its own.
- [Enrich a lead list](https://www.orcarouter.ai/tools/recipes/enrich-a-lead-list.md): Turn a list of company domains into firmographics, a contact's work email and a recent news hook, with one API key.

## Related integrations

- [Dify](https://www.orcarouter.ai/tools/integrations/dify.md): Import an OpenAPI schema for discover, inspect and run as a Dify custom tool, then use the catalog from Dify agents and workflows.
- [LangChain](https://www.orcarouter.ai/tools/integrations/langchain.md): Load OrcaRouter tools as LangChain tools from the functions export and give them to any LangChain agent; each call runs the tool through OrcaRouter.
- [Claude Code](https://www.orcarouter.ai/tools/integrations/claude-code.md): Add the OrcaRouter MCP server to Claude Code with one command; Claude can then search the tool catalog and run tools while it works.

---

Markdown version of https://www.orcarouter.ai/tools/integrations/n8n
