
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@agentseo/sdk
Advanced tools
Official JavaScript SDK for AgentSEO.
npm install @agentseo/sdk
Create demo.mjs:
import { AgentSEO } from "@agentseo/sdk";
const client = new AgentSEO({
apiKey: process.env.AGENTSEO_API_KEY!,
baseUrl: "https://www.agentseo.dev",
projectId: "client-alpha",
workflowId: "nightly-refresh",
});
const job = await client.analyzeSerp({
keyword: "seo agency austin",
location: "Austin, TX",
location_code: 1026201,
});
console.log(job.jobId);
console.log(await client.getJob(job.jobId));
Run it:
export AGENTSEO_API_KEY="sk_live_your_key"
node demo.mjs
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.jobId);
Set projectId and workflowId once on the client when you want usage, jobs, and budgets grouped by agent workflow. You can also override them per request:
await client.search(
{ query: "best crm software" },
{ projectId: "client-beta", workflowId: "manual-research" },
);
For geo-targeted endpoints, pass location_code when you need deterministic targeting:
await client.search({
query: "best crm software",
location: "Austin, TX",
location_code: 1026201,
limit: 5,
});
For AI Overview checks, pass target_domain when the agent needs to know whether your site is present in the sampled candidate set:
await client.aiOverviewExtract({
keyword: "best seo agency",
location: "Austin, TX",
location_code: 1026201,
target_domain: "example.com",
});
import { 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);
}
}
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)
getJob(jobId, { projectId, workflowId }) if you want poll requests grouped separately from the client defaultsync?: boolean Open a short inline processing window when true. If the job is not ready yet, the API may still return 202 with a job payload.idempotencyKey?: string Prevent duplicate job creation on retries.projectId?: string Group usage and jobs under a project.workflowId?: string Group usage and jobs under a workflow.import, not require.FAQs
Official JavaScript SDK for AgentSEO API
The npm package @agentseo/sdk receives a total of 4 weekly downloads. As such, @agentseo/sdk popularity was classified as not popular.
We found that @agentseo/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.