UNPKG

n8n-nodes-google-pagespeed

Version:

n8n community node for Google PageSpeed Insights API with comprehensive performance, accessibility, and SEO analysis

44 lines 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GooglePageSpeedApi = void 0; class GooglePageSpeedApi { constructor() { this.name = 'googlePageSpeedApi'; this.displayName = 'Google PageSpeed API'; this.documentationUrl = 'https://developers.google.com/speed/docs/insights/v5/get-started'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Google PageSpeed Insights API key. Get it from Google Cloud Console.', placeholder: 'AIzaSyC...', }, ]; this.authenticate = { type: 'generic', properties: { qs: { key: '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://www.googleapis.com/pagespeedonline/v5', url: '/runPagespeed', method: 'GET', qs: { url: 'https://www.google.com', strategy: 'mobile', category: 'performance', }, }, }; } } exports.GooglePageSpeedApi = GooglePageSpeedApi; //# sourceMappingURL=GooglePageSpeedApi.credentials.js.map