nansen-web-fetch

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Web Fetch

Web Fetch

Fetch and analyze content from one or more URLs using Gemini 2.5 Flash with URL context.
bash
nansen web fetch https://nansen.ai --question "What products does Nansen offer?"
nansen web fetch --url https://example.com --url https://other.com --question "Compare these two sites"
nansen web fetch https://docs.uniswap.org/contracts/v4/overview --question "What changed in v4?"
Positional args and
--url
flags can be combined — all become URLs to fetch.
FlagValuesDefaultPurpose
--url
URLURL to fetch (repeatable for multiple URLs, up to 20)
--question
stringrequiredQuestion to answer about the URL content
--pretty
flagoffHuman-readable JSON
Returns:
  • analysis
    — AI-generated answer to your question
  • retrieved_urls
    — URLs successfully fetched
  • failed_urls
    — URLs that could not be retrieved
Tip: Combine with
web search
— search first to find relevant URLs, then fetch to get full content.
bash
undefined
使用带有URL上下文的Gemini 2.5 Flash抓取并分析一个或多个URL的内容。
bash
nansen web fetch https://nansen.ai --question "What products does Nansen offer?"
nansen web fetch --url https://example.com --url https://other.com --question "Compare these two sites"
nansen web fetch https://docs.uniswap.org/contracts/v4/overview --question "What changed in v4?"
位置参数与
--url
参数可以结合使用——所有参数都会作为待抓取的URL。
参数取值默认值用途
--url
URL待抓取的URL(可重复添加多个URL,最多支持20个)
--question
字符串必填关于URL内容的待回答问题
--pretty
标记关闭生成人类可读的JSON格式
返回内容:
  • analysis
    — AI生成的问题答案
  • retrieved_urls
    — 成功抓取的URL
  • failed_urls
    — 无法抓取的URL
小贴士:
web search
搭配使用——先搜索找到相关URL,再进行抓取以获取完整内容。
bash
undefined

Find and analyze in two steps

分两步完成查找与分析

nansen web search "uniswap v4 launch" --num-results 3 --fields link nansen web fetch https://blog.uniswap.org/... --question "What are the key changes?"

**Note:** 30s timeout. Paywalled or bot-blocked pages may appear in `failed_urls`.
nansen web search "uniswap v4 launch" --num-results 3 --fields link nansen web fetch https://blog.uniswap.org/... --question "What are the key changes?"

**注意:** 超时时间为30秒。带有付费墙或被机器人拦截的页面可能会出现在`failed_urls`中。