Get Xiaohongshu topic detail · Xiaohongshu API
Get Xiaohongshu topic detail
curl https://api.unifapi.com/xiaohongshu/topics/{page_id} \
-H "Authorization: Bearer $UNIFAPI_KEY"Path parameters
- page_id
- The public Xiaohongshu identifier shown in the endpoint path. Use the URL-visible slug or platform id described in the docs for this operation.
This operation is part of the Xiaohongshu API in the social platforms category. It uses the same Bearer token, request tracing, error model, and billing envelope as every UnifAPI endpoint, so agents can switch between platforms without custom per-vendor glue code.
Use it when a workflow needs Xiaohongshu public data but should still keep one API key, one account balance, and one predictable JSON contract across social, live public-data sources.
Common agent workflows
- Look up public Xiaohongshu data for agents that need reliable open-web context.
- Give an AI agent a stable Xiaohongshu data source without building a per-platform integration.
- Normalize Xiaohongshu responses into the same UnifAPI envelope used across the catalog.
Unified envelope, platform-native fields
- Lookup responses return one canonical object in `data` with stable identifiers, source URLs where available, and platform-specific metadata normalized into predictable JSON.
- Successful responses include `request_id` for support/debugging and `billing` with credits charged, records charged, and remaining balance.
- A not-found or invalid-input condition uses the unified UnifAPI error shape, so callers do not need special handling for each upstream platform.
Billing
Every successful call costs at least one credit. List and search operations charge by billable records returned; single-object lookups charge one record when they succeed. Platform-caused failures can be refunded, and public responses include billing metadata with the credits charged and remaining workspace balance.
Errors and retries
Authentication, validation, rate-limit, not-found, and upstream errors use the unified UnifAPI error format. Agents should log `request_id`, retry only retryable failures, and treat invalid API keys, disabled keys, and expired keys as the same public `unauthorized` error type.
More Xiaohongshu operations
Combine endpoints from the same platform, then join the results with other UnifAPI categories without changing authentication or response parsing.
List Xiaohongshu creator inspiration items
List Xiaohongshu creator inspiration items
List hot Xiaohongshu creator inspiration items
List hot Xiaohongshu creator inspiration items
Get a Xiaohongshu note by id
Get a Xiaohongshu note by id
List comments on a Xiaohongshu note
List comments on a Xiaohongshu note