@youdotcom-oss/n8n-nodes-youdotcom 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -9
- package/dist/credentials/YouDotComApi.credentials.js +42 -0
- package/dist/credentials/youdotcom.svg +9 -0
- package/dist/nodes/YouDotCom/YouDotCom.node.js +14149 -0
- package/dist/nodes/YouDotCom/YouDotCom.node.json +45 -0
- package/dist/nodes/YouDotCom/youdotcom.svg +9 -0
- package/package.json +7 -24
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# n8n-nodes-youdotcom
|
|
2
2
|
|
|
3
|
-
An n8n community node for integrating [You.com APIs](https://you.com/
|
|
3
|
+
An n8n community node for integrating [You.com APIs](https://you.com/apis) into your n8n workflows. Search the web, extract content from URLs, or get AI-powered answers with citations.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ Search the web and news using You.com's search API.
|
|
|
25
25
|
|
|
26
26
|
| Parameter | Required | Description |
|
|
27
27
|
| ---------------- | -------- | ------------------------------------------------------- |
|
|
28
|
-
| Query | Yes | The search query
|
|
28
|
+
| Query | Yes | The search query (supports search operators, see below) |
|
|
29
29
|
| Count | No | Maximum number of results per section (1-100) |
|
|
30
30
|
| Country | No | Country code for geographical focus (e.g., US, GB, DE) |
|
|
31
31
|
| Freshness | No | Filter by recency: day, week, month, or year |
|
|
@@ -34,10 +34,22 @@ Search the web and news using You.com's search API.
|
|
|
34
34
|
| Livecrawl Format | No | Format for livecrawled content (HTML or Markdown) |
|
|
35
35
|
| Offset | No | Pagination offset (0-9) |
|
|
36
36
|
| Safe Search | No | Content moderation: off, moderate, or strict |
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
|
|
38
|
+
**Search operators:**
|
|
39
|
+
|
|
40
|
+
Include these directly in your query to refine results. See [search operators documentation](https://docs.you.com/search/search-operators) for details.
|
|
41
|
+
|
|
42
|
+
| Operator | Example | Description |
|
|
43
|
+
| ---------- | ----------------------- | -------------------------------------------------- |
|
|
44
|
+
| `site:` | `site:github.com` | Restrict to a specific domain (including subdomains) |
|
|
45
|
+
| `filetype:`| `filetype:pdf` | Filter by file type |
|
|
46
|
+
| `+` | `+GAAP` | Require exact term in results |
|
|
47
|
+
| `-` | `-marketing` | Exclude exact term from results |
|
|
48
|
+
| `AND` | `Python AND PyTorch` | Logical AND to combine expressions |
|
|
49
|
+
| `OR` | `Python OR PyTorch` | Logical OR to combine expressions |
|
|
50
|
+
| `NOT` | `NOT site:example.com` | Negate an expression |
|
|
51
|
+
|
|
52
|
+
**Example:** `machine learning (Python OR PyTorch) -TensorFlow filetype:pdf` searches for ML content about Python or PyTorch, excluding TensorFlow, in PDF format.
|
|
41
53
|
|
|
42
54
|
### Get Contents
|
|
43
55
|
|
|
@@ -72,7 +84,7 @@ Get AI-generated answers with web search and citations. Perfect for RAG (Retriev
|
|
|
72
84
|
|
|
73
85
|
## Credentials
|
|
74
86
|
|
|
75
|
-
1. Visit [you.com/api](https://you.com/api) to get an API key
|
|
87
|
+
1. Visit [you.com/platform/api-keys](https://you.com/platform/api-keys) to get an API key
|
|
76
88
|
2. In n8n, go to **Credentials > New Credential**
|
|
77
89
|
3. Search for "You.com API"
|
|
78
90
|
4. Enter your API key and save
|
|
@@ -107,9 +119,10 @@ bun run check
|
|
|
107
119
|
## Resources
|
|
108
120
|
|
|
109
121
|
- [You.com API Documentation](https://docs.you.com/)
|
|
110
|
-
- [Search API Reference](https://docs.you.com/api-reference/search)
|
|
122
|
+
- [Search API Reference](https://docs.you.com/api-reference/search/v1-search)
|
|
123
|
+
- [Search Operators](https://docs.you.com/search/search-operators)
|
|
111
124
|
- [Contents API Reference](https://docs.you.com/api-reference/search/contents)
|
|
112
|
-
- [Express Agent Reference](https://docs.you.com/agents/
|
|
125
|
+
- [Express Agent Reference](https://docs.you.com/api-reference/agents/express-agent/express-agent-runs)
|
|
113
126
|
- [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
114
127
|
|
|
115
128
|
## License
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// credentials/YouDotComApi.credentials.ts
|
|
2
|
+
class YouDotComApi {
|
|
3
|
+
name = "youDotComApi";
|
|
4
|
+
displayName = "You.com API";
|
|
5
|
+
icon = { light: "file:youdotcom.svg", dark: "file:youdotcom.svg" };
|
|
6
|
+
documentationUrl = "https://docs.you.com/get-started/quickstart";
|
|
7
|
+
properties = [
|
|
8
|
+
{
|
|
9
|
+
displayName: "API Key",
|
|
10
|
+
name: "apiKey",
|
|
11
|
+
type: "string",
|
|
12
|
+
typeOptions: {
|
|
13
|
+
password: true
|
|
14
|
+
},
|
|
15
|
+
default: "",
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your You.com API key. Get one at <a href="https://you.com/platform/api-keys" target="_blank">you.com/platform/api-keys</a>'
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
authenticate = {
|
|
21
|
+
type: "generic",
|
|
22
|
+
properties: {
|
|
23
|
+
headers: {
|
|
24
|
+
"X-API-Key": "={{$credentials.apiKey}}"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
test = {
|
|
29
|
+
request: {
|
|
30
|
+
baseURL: "https://ydc-index.io",
|
|
31
|
+
url: "/v1/search",
|
|
32
|
+
method: "GET",
|
|
33
|
+
qs: {
|
|
34
|
+
query: "test",
|
|
35
|
+
count: 1
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
YouDotComApi
|
|
42
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="65" height="65" viewBox="0 0 65 65" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M27.4941 1.22885C30.6309 -0.409588 34.3672 -0.409644 37.5039 1.22885L59.1709 12.5521C62.7539 14.4242 65 18.1405 65 22.1937V30.6312H50.0488C41.4318 30.6311 34.4492 23.629 34.4492 14.9886V7.81869H30.5488V14.9886C30.5488 23.6289 23.5662 30.631 14.9492 30.6312H7.79785V34.5413H14.9492C23.5662 34.5415 30.5488 41.5479 30.5488 50.1839V65.0003C29.4968 64.8058 28.4686 64.4554 27.4941 63.9496L5.8291 52.6204C2.24614 50.7505 3.91808e-05 47.032 0 42.9788V22.1956C8.82192e-05 18.1426 2.2462 14.4263 5.8291 12.5521L27.4941 1.22885ZM64.9971 34.5413V42.9788C64.9971 47.0321 62.751 50.7506 59.168 52.6204L37.5029 63.9496C36.5285 64.4532 35.5002 64.8058 34.4482 65.0003V50.1839H34.4463C34.4463 41.5479 41.429 34.5415 50.0459 34.5413H64.9971Z" fill="url(#paint0_linear_9856_18465)"/>
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="paint0_linear_9856_18465" x1="65" y1="0" x2="-0.000328063" y2="65" gradientUnits="userSpaceOnUse">
|
|
5
|
+
<stop offset="0.15" stop-color="#A0A4EE"/>
|
|
6
|
+
<stop offset="0.8" stop-color="#596CED"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
</svg>
|