You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

seoai-client

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seoai-client

Official client for the SEOAI Blog API. Fetch and render real-time, SEO-optimized blog content directly into your website or app.

1.1.9
latest
npmnpm
Version published
Weekly downloads
100
-59.18%
Maintainers
0
Weekly downloads
 
Created
Source

SEOAI Client

Official client for the SEOAI Blog API. Fetch and render real-time, SEO-optimized blog content directly into your website or app.

Features

  • Fetch articles by page and limit
  • Retrieve articles by category or tag
  • Access detailed information about a specific article
  • Built-in slugify and transliteration utilities

Installation

npm install seoai-client

Usage

import { SeoAiClient } from 'seoai-client';

// Initialize the client with your API key
const client = new SeoAiClient('your_api_key_here');

// Fetch topics (paginated)
const topics = await client.getTopics(0, 10);
console.log('Topics:', topics);

// Fetch a single article by topic ID
const article = await client.getArticle(123);
console.log('Article:', article);

API

SeoAiClient

  • constructor(apiKey: string)
  • getArticles(page?: number, limit?: number): Promise<IArticle[]>
  • getCategoryArticles(categorySlug: string, page?: number, limit?: number): Promise<IArticle[]>
  • getTagArticles(tagSlug: string, page?: number, limit?: number): Promise<IArticle[]>
  • getArticle(slug: string): Promise<IArticle>

Utilities

  • slugify(text: string): string
  • transliterate(text: string): string

Types

See src/types.ts for all exported types: IArticle, ICategory, ITag, IRelatedPost.

License

MIT

FAQs

Package last updated on 28 Jul 2025

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