Back to APIs
Rednote public data

Rednote Public Data APIs

Retrieve public profiles and notes, search notes or users, collect comments and nested replies, and capture one home recommendation page.

Available Rednote APIs

Choose from eight APIs for profile, note, comment, reply, search, and recommendation workflows.

What Rednote data can you retrieve?

The Rednote catalog returns normalized account, post, and comment records from public source data.

Profiles and user notes

Resolve one public profile or collect one source page of notes using a supported account URL or user_id.

Note details and discovery

Retrieve one token-bearing note URL, search notes with supported filters, or collect a home recommendation page.

User search

Search the fixed first source page of public accounts with one non-empty query.

Comments and replies

Collect one public comment page for a note or one reply page for a known comment ID.

Rednote API contracts at a glance

Each endpoint has a bounded source request and rejects undeclared parameters.

API groupStarting inputSource boundary
Profile and user notesurl or user_idOne profile or one source page; no results_limit
Note detailSupported URL with note path and xsec_tokenAt most one note record
SearchNon-empty query and supported optional enumsFixed first source page; no results_limit
Comments and repliesSupported note URL; replies also require comment_idOne source response page
Home recommendationsAll fields optionalOne page with results_limit 1–40, default 20

How the Rednote APIs work

All eight endpoints use the same asynchronous submit, poll, and stored-result workflow.

  1. 1. Choose the endpoint

    Select the profile, note, search, comment, reply, or recommendation endpoint for your public-data task.

  2. 2. Submit valid input

    POST only the declared fields and save the returned task_id.

  3. 3. Read normalized results

    Poll the task to a terminal state, then read data.results.items and use next_cursor only for stored-result pagination.

Search public Rednote notes

Authenticate with a SocQ API key and submit a query with supported optional filters. Each successful Rednote task costs a fixed 1 credit.

curl -X POST "https://api.socq.ai/v1/rednote/search-notes" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"travel guide","sort_by":"general","media_type":"all"}'

# Poll GET /v1/tasks/{task_id}
# Read data.results.items after success

Common Rednote API use cases

Creator and content research

Combine public account identity with a bounded page of authored notes.

Topic discovery

Compare note search, user search, and home recommendation snapshots with collection timestamps.

Conversation review

Inspect a public note's comments and a selected comment's nested replies as normalized records.

Limits and public-data policy

These endpoints read public data through bounded source requests and do not provide account actions or private access.

  • Supported URL hosts are xiaohongshu.com, xhslink.com, and their subdomains; Note Detail additionally requires an /explore/{id} or /discovery/item/{id} path and a non-empty xsec_token.
  • user_id and comment_id accept 1–256 ASCII letters, numbers, colons, underscores, or hyphens.
  • Search Notes accepts sort_by, media_type, and published_within only from the listed enum values; Search Users accepts query only.
  • Only Home Recommendations accepts results_limit, with a range of 1–40 and a default of 20.
  • Every successful Rednote task costs a fixed 1 credit.

Rednote API frequently asked questions

What are the Rednote APIs?

The Rednote APIs retrieve public profiles, notes, comments, nested replies, search results, and home recommendations as normalized records.

Which endpoint accepts results_limit?

Only Home Recommendations accepts results_limit, as an integer from 1 to 40. The other Rednote endpoints reject it.

Does Note Detail accept any Rednote URL?

No. It requires an accepted host, an /explore/{id} or /discovery/item/{id} path, and a non-empty xsec_token query value.

How are Rednote requests priced?

Each successful task costs a fixed 1 SocQ credit.

Bring public profiles, content, and engagement data from different platforms into one workflow to track brands, creators, and topics and run cross-platform monitoring and analysis more efficiently.