Sign In

@agentseo/sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentseo/sdk

Official JavaScript SDK for AgentSEO API

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

@agentseo/sdk

Official JavaScript SDK for AgentSEO.

Install

npm install @agentseo/sdk

Quick Start

import { AgentSEO } from "@agentseo/sdk";

const client = new AgentSEO({
  apiKey: process.env.AGENTSEO_API_KEY!,
  baseUrl: "https://api.agentseo.dev"
});

const result = await client.localAudit(
  { domain: "example.com", location: "New York, NY" },
  { sync: true }
);

console.log(result);

Async Jobs

By default, requests are queued (sync: false) and return a job object.

const job = await client.contentGap({
  url: "https://example.com/blog/post",
  keyword: "best project management software"
});

const result = await client.getJob(job.id);

Error Handling

import { AgentSEO, AgentSEOError } from "@agentseo/sdk";

try {
  await client.search({ query: "agentic seo tools" }, { sync: true });
} catch (error) {
  if (error instanceof AgentSEOError) {
    console.error(error.status, error.message, error.details);
  }
}

API Surface

  • localAudit(input, options?)
  • contentGap(input, options?)
  • search(input, options?)
  • analyzeSerp(input, options?)
  • aiOverviewExtract(input, options?)
  • localVisibilityTrack(input, options?)
  • llmMentionsTrack(input, options?)
  • contentDecayDetect(input, options?)
  • keywordClusterBuild(input, options?)
  • getJob(jobId)

Request Options

  • sync?: boolean Run inline and return final result when true.
  • idempotencyKey?: string Prevent duplicate job creation on retries.

Keywords

agentseo

FAQs

Package last updated on 16 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts