Skip to content

Xiaohongshu API for AI agents

Find notes about a topic, read a post and inspect its comments with three quoted calls.

한국어로 보기

Prices checked ·

  1. redbook.note.search

    Find notes by keyword. Pick an items[].note_id. For another page, increment page and reuse search_id and search_session_id when returned.

    $0.02 / 1 request

    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}}'
  2. redbook.note.detail

    Pass the selected ID as noteId to read the text, author and engagement counts.

    $0.02 / 1 request

    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>"}}'
  3. redbook.note.comments

    Pass the same ID as note_id. When has_more is true, send the returned cursor to request the next page.

    $0.02 / 1 request

    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>"}}'

Each execution retrieves one page or note. The source determines page size. Each additional page requires its own quote and approved execution. Stop when has_more is false.

Author profiles, author notes and search sessions

  • redbook.account.search

    Search for an author by keyword and use their user_id for the profile and notes requests.

    $0.02 / 1 request

    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

    Pass user_id to read the author’s profile.

    $0.02 / 1 request

    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

    Pass user_id to list the author’s notes.

    $0.02 / 1 request

    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

    Start with keyword and page 1. To request another page, reuse the search IDs returned by this operation.

    $0.02 / 1 request

    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>"}}'
Execute an approved quote

Your next API call starts here.