All SDKs
Node.js

Node.js SDK

Official Node.js SDK with TypeScript support. Works in Node 18+ and modern runtimes.

Install

npm install serpii

Quick start

example.ts
import { Serpii } from 'serpii';

const serpii = new Serpii(process.env.SERPII_API_KEY!);

const results = await serpii.search({
  q: 'best coffee shops in austin',
  location: 'Austin, TX',
  num: 10,
});

console.log(results.organic_results);
console.log(results.intent);
← Back to SDKs