AI Agent Web Research: Search the Web, Read a Page, Then Check Xiaohongshu Notes

Have an agent search the web, read one page, then search Xiaohongshu notes on the same topic. Three calls, about $0.007, each finding sourced.

Give an agent a research topic and let it find sources itself, in three steps per round: the web search tool runs a web search, read turns a chosen page into clean text, and xiaohongshu/search checks what Xiaohongshu (RedNote) users post about the same topic. At catalog price they are $0.000694, $0.000694 and $0.005556, about $0.007 a round. Web search and page reading go through POST /api/v1/search, Xiaohongshu through POST /api/v1/social, with the same key.

The calls below ran live on November 29, 2026, on the topic of a camping gear checklist for beginners. The query is that phrase in Chinese, sent exactly as written.

StepEndpointCatalog price
1web$0.000694
2read$0.000694
3xiaohongshu/search$0.005556
Step 1: curl
curl -X POST https://api.everyinfra.com/api/v1/search \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"web","q":"新手露营装备清单"}'

Request body:

Request body
{
  "tool": "web",
  "q": "新手露营装备清单"
}

Pick one url from results for step 2. This run skipped the forum threads and Q&A pages near the top and chose a checklist article; if a page yields no text, move to the next one.

Response excerpt
{
  "title": "新手露营者,求一份第一次露营必备品的清单。 : r/CampingGear",
  "url": "https://www.reddit.com/r/CampingGear/comments/12r3mh7/beginn…",
  "snippet": "两个帐篷,椅子,电池灯、丙烷灯或液化燃料灯,营地炉子(丙烷、液化燃料或异丁烷都可以),一些野营炊具(你也可以带一些家里…"
}

Step 2: Read the page text

Request body
{
  "tool": "read",
  "url": "https://www.dealmoon.com/post/1486941"
}

The text is in content, as Markdown. Step 3 takes no field from here; it keeps the same topic and shortens the keyword to the Chinese for camping gear.

Response excerpt
{
  "title": "湾区⛺️入门级露营装备清单▫️新手必备 | 社区运动保健精选",
  "url": "https://www.dealmoon.com/post/1486941",
  "content": "# 湾区⛺️入门级露营装备清单▫️新手必备\n\nLabor Day的小长假终于迈出了露营第一步,感兴趣的小伙伴欢迎戳我的…"
}

When a page yields no text, the call returns an empty result and that call's charge is refunded.

Step 3: Search Xiaohongshu notes

Request body
{
  "platform": "xiaohongshu",
  "action": "search",
  "params": {
    "keyword": "露营装备"
  }
}

Returned notes include likes, saves and comment counts. To read one in full, call xiaohongshu/note with its url.

Response excerpt
{
  "id": "6aed9f31000000000901b3f5",
  "url": "https://www.xiaohongshu.com/explore/6aed9f31000000000901b3f5…",
  "title": "花不到20元自制火锅烧烤围炉煮茶装备!省事省力还不用刷锅。#实用好物 #露营必备",
  "like_count": 1603,
  "collect_count": 1068,
  "comment_count": 29,
  "share_count": 897,
  "posted_at": "2026-11-06T09:34:41+00:00",
  "is_video": true
}

What to do with the data

  • Have the agent write each finding next to its source url, labeling web pages and Xiaohongshu notes separately, so readers can click through and check the original.
  • Deduplicate web results by url, and cache each url you have read with its text so the same research round never reads a page twice.
  • Sort Xiaohongshu notes by collect_count, read the most-saved ones in detail, and use posted_at to drop stale content.

FAQ

How much does one round of agent web research cost?

Web search and page reading are $0.000694 each, and Xiaohongshu search is $0.005556, about $0.007 a round. Each extra page the agent reads adds $0.000694.

Am I charged if a page yields no text?

No. When the read comes back empty, the charge is refunded. Failed requests, invalid parameters and authentication failures are not charged either.

Do I need my own search engine API key or proxies?

No. Web search, page reading and Xiaohongshu data all use the same EveryInfra API key. There is no separate search engine key to get, and no scraper or proxy to maintain.

How do I use this in Claude or Cursor?

Add https://api.everyinfra.com/mcp to the remote MCP settings with an Authorization: Bearer header and your key. The agent uses everyinfra_search for web search and page reading and everyinfra_call_api for Xiaohongshu, with no code on your side.

Can the web search be restricted to one site or a date range?

Yes. Besides q, web accepts site to restrict to a site, after and before for a date range, location for a region, and page and num for paging and result count.

Reference UC-10

Google Analytics needs consent. Privacy