New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@geekflare/api-node

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geekflare/api-node

Official Node.js / TypeScript SDK for Geekflare API

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
113
-41.45%
Maintainers
2
Weekly downloads
 
Created
Source

@geekflare/api-node

Official Node.js / TypeScript SDK for the Geekflare API.

Installation

npm install @geekflare/api-node

Quick Start

import { GeekflareClient } from "@geekflare/api-node";

const client = new GeekflareClient({
  apiKey: "your-api-key",
});

const result = await client.webScrape({
  url: "https://toscrape.com/",
});

console.log(result);

Available Methods

MethodDescription
client.webScrape(body)Scrape web page content
client.search(body)Perform a web search
client.metaScrape(body)Scrape meta tags from a URL
client.brand(body)Get structured brand and company information for a domain
client.dnsRecord(body)Look up DNS records
client.screenshot(body)Take a screenshot of a URL
client.siteStatus(body)Check if a site is up or down
client.redirectCheck(body)Check the redirect chain of a URL
client.brokenLink(body)Find broken links on a page
client.url2Pdf(body)Convert a URL to PDF
client.openPorts(body)Scan open ports on a host
client.tlsScan(body)Scan TLS/SSL configuration
client.loadTime(body)Test page load time
client.mixedContent(body)Check for mixed content issues
client.dnsSec(body)Check DNSSEC configuration
client.mtr(body)Perform an MTR network test
client.ping(body)Ping a host
client.lighthouse(body)Run a Lighthouse audit

Configuration

const client = new GeekflareClient({
  apiKey: "your-api-key", // required
  baseUrl: "https://api.geekflare.com", // optional, defaults to this
});

Error Handling

try {
  const result = await client.webScrape({
    url: "https://toscrape.com/",
  });

  console.log(result);
} catch (error) {
  console.error("API error:", error);
}

License

MIT

Keywords

geekflare

FAQs

Package last updated on 08 Sep 2026

Related posts