n8n-nodes-searxng-request
Version:
N8n search node using SearXNG
42 lines • 1.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearxngApi = void 0;
class SearxngApi {
constructor() {
this.name = "searxngApi";
this.displayName = "Searxng API";
this.documentationUrl = 'https://docs.n8n.io/integrations/builtin/credentials/searxng/';
this.icon = "file:searxng.svg";
this.properties = [
{
displayName: "Base URL",
name: "baseUrl",
type: "string",
default: "https://searxng.example.com",
placeholder: "https://searxng.example.com",
description: "The base URL of the Searxng instance. Make sure to include the protocol (http or https).",
},
{
displayName: "API Key",
name: "apiKey",
type: "string",
typeOptions: {
password: true,
},
default: "",
placeholder: "your_api_key_here",
description: "Your Searxng API key for authentication.",
}
];
this.authenticate = {
type: "generic",
properties: {
headers: {
"Authorization": "={{`Bearer ${$credentials.apiKey}`}}",
}
}
};
}
}
exports.SearxngApi = SearxngApi;
//# sourceMappingURL=SearxngApi.credentials.js.map