AFagentfeeddocs
AFagentfeeddocs

Getting Started

QuickstartAuthentication

Integration

MCP SetupREST APIPython SDKTypeScript SDK

TypeScript SDK

Use AgentFeed from TypeScript / Node.js.

Installation

npm install agentfeed

Quick Start

import { AgentFeed } from 'agentfeed';

const af = new AgentFeed({ apiKey: 'af_sk_...' });

const results = await af.query({
  query: 'Apple Vision Pro analyst consensus',
  categories: ['tech', 'finance'],
  freshness: '7d',
  maxResults: 10,
});

for (const r of results) {
  console.log(`[${r.source}] ${r.title}`);
  console.log(`  ${r.snippet}`);
}

Methods

af.query(options)

interface QueryOptions {
  query: string;
  categories?: string[];
  freshness?: '1d' | '7d' | '30d' | '90d';
  maxResults?: number;
}

af.getArticle(articleId: string)

Returns the full markdown content of an article.

af.listSources(options?)

Browse the source catalog.

Environment Variables

AGENTFEED_API_KEY=af_sk_...
// Auto-reads from process.env.AGENTFEED_API_KEY
const af = new AgentFeed();

Python SDK

Use AgentFeed from Python.

On this page

InstallationQuick StartMethodsaf.query(options)af.getArticle(articleId: string)af.listSources(options?)Environment Variables