用 Agent 搜索和阅读小红书笔记
围绕一个选题搜索笔记、阅读正文,再从评论中提取读者的问题。三个步骤可以分别报价和执行。
한국어로 보기价格核对时间 ·
redbook.note.search
输入关键词,从 items[] 选择一条 note_id。要翻页,递增 page,带回上一页返回的 search_id 和 search_session_id。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.note.search","input":{"keyword":"coffee","page":1}}'redbook.note.detail
把选中的 ID 作为 noteId 传入,读取正文、作者和互动数据。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.note.detail","input":{"noteId":"<note_id>"}}'redbook.note.comments
把同一个 ID 作为 note_id 传入。has_more 为真时,用返回的 cursor 获取下一页。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.note.comments","input":{"note_id":"<note_id>"}}'
一次执行只取一页或一条笔记,每页数量由来源决定。翻页需要单独报价并批准执行。has_more 为假时停止。
作者资料、作者笔记与会话搜索
redbook.account.search
按关键词查找作者。用作者的 user_id 查询资料或笔记。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.account.search","input":{"keyword":"coffee"}}'redbook.account.detail
传入 user_id,读取作者资料。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.account.detail","input":{"user_id":"<user_id>"}}'redbook.account.notes
传入 user_id,列出该作者发布的笔记。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.account.notes","input":{"user_id":"<user_id>"}}'redbook.note.search_session
首次搜索传入 keyword 和 page 1。翻页时递增 page,并传回本操作上一页返回的 search_id 和 search_session_id。
$0.02 / 1 次请求
curl -sS https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"redbook.note.search_session","input":{"keyword":"coffee","page":2,"search_id":"<search_id>","search_session_id":"<search_session_id>"}}'