n8n-nodes-outscraper
Version:
n8n node to integrate with Outscraper API
47 lines • 1.53 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OutscraperApi = void 0;
class OutscraperApi {
constructor() {
this.name = 'outscraperApi';
this.displayName = 'Outscraper API';
this.documentationUrl = 'https://app.outscraper.com/api-docs';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
typeOptions: {
password: true,
},
required: true,
description: 'The API key from your Outscraper account',
},
{
displayName: 'API URL',
name: 'apiUrl',
type: 'string',
default: 'https://api.outscraper.cloud',
required: true,
description: 'The base URL for the Outscraper API',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'X-API-KEY': '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials.apiUrl}}',
url: '/maps/search-v3?query=test&limit=1&async=false&apiKey={{$credentials.apiKey}}',
},
};
}
}
exports.OutscraperApi = OutscraperApi;
//# sourceMappingURL=OutscraperApi.credentials.js.map