Practical overview
When it fits
Use Agent Fetch when a local CLI or TypeScript component needs to retrieve web-page content for an agent, research, RAG or content-ingestion workflow, especially when structured article output is useful.
Who it is for
- AI-agent builders who need fetched page content for downstream processing.
- Research and RAG workflow builders who want structured Markdown rather than a short summary.
- Content teams or developers who need CLI or programmatic web-page extraction.
Documented uses
- Fetch an article and retain its headings, links and other structure in Markdown.
- Retrieve page content as plain text, JSON or raw HTML.
- Crawl multiple pages with controls for depth, limits, URL patterns, concurrency and delays.
- Extract text from a local PDF file.
- Use cookies or CSS selectors when a page requires an authenticated session or a narrower extraction target.
Requirements & limits
The README documents local operation without API keys or cloud dependencies. The repository identifies the project as MIT-licensed and specifies Node.js 20, 22 and 25 in its badges.
- The repository describes browser impersonation and multiple extraction strategies to address differing or truncated responses from standard HTTP clients.
- Available output modes include Markdown, plain text, JSON and raw HTML.
- Crawl options include depth and page limits, URL inclusion and exclusion patterns, concurrency, request delays and cross-origin crawling.
- Cookies, custom CSS selectors and TLS fingerprint presets are documented options.
- The documented implementation is TypeScript for Node.js; the repository badges specify Node.js versions 20, 22 and 25.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Extract a web page as Markdown with the CLI
Fetch a page and produce its extracted article content in Markdown.
Before you start
- Node.js 20, 22 or 25, as specified by the repository badges.
- A page URL.
Steps
Run the command below to output extracted Markdown.
npx agent-fetch https://example.com/articleUse
-qto output Markdown content without the metadata header, or--jsonfor JSON output containing title, content, Markdown and metadata.
Expected outcome
Markdown article content, with headings and links preserved where extraction succeeds; JSON output is also documented.
Guide limitations
- The README describes the extraction workflow but does not guarantee complete extraction for every page.
- The default timeout is documented as 20 seconds; a custom timeout can be set with
--timeout. - This guide covers CLI extraction, not integration into a separate agent or pipeline.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- teng-lin/agent-fetch · Official homepage title · retained in its source language

