OpenAny
Get API keyAPI Key
APISocial MediaData

xiaohongshu logo
Xiaohongshu (RedNote) Share Link Resolver API

Resolve Xiaohongshu (RedNote / 小红书) share links via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as shareUrl, and retrieve structured data including resolved destination URL to normalize shared references, prepare note retrieval, and deduplicate a reading queue, ready for production pipelines and AI agent automation.

Selected price
$0.023077 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Xiaohongshu (RedNote) Share Link Resolver API

Prepare your request, then continue with your agent.

Selected price

$0.023077 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
Xiaohongshu (RedNote) Share Link Resolver API

Xiaohongshu (RedNote) Share Link Resolver API

Send a supported xhslink.com URL in the shareUrl query parameter. The response returns data.redirect_url with a business status code; retrieve note content separately when your workflow needs it.

Quick Facts

Fact Value
Platform xiaohongshu
Access Methods REST / OpenAny MCP
Pricing Model Pay per call; see Selected price
Authentication OpenAny API key
Core Inputs shareUrl: supported xhslink.com URL
Selected Implementation JustOneAPI
Available Providers JustOneAPI
Returned Data Resolved destination URL; Business status, separate from HTTP status

What You Can Build with the Xiaohongshu (RedNote) Share Link Resolver API

  • Normalize shared references: Resolve short URLs before storing a canonical source reference.
  • Prepare note retrieval: Inspect the destination and obtain the required note input for a separate details call.
  • Deduplicate a reading queue: Compare resolved destinations while preserving the original source mapping.

Pass returned records to a downstream Agent for organization, comparison or reporting; additional data retrieval is a separate operation.

Xiaohongshu (RedNote) Share Link Resolver API Returned Data Fields & Response Coverage

The payload returns data.redirect_url, while code, message and recordTime describe the response status. message and recordTime can be null; use the destination URL for the next step in your workflow.

Field Meaning
data.redirect_url Resolved destination URL
code Business status, separate from HTTP status

For content discovery, inspect the Xiaohongshu Note Search API.

Quick Start: Call the Xiaohongshu (RedNote) Share Link Resolver API via REST

  1. Configure OPENANY_API_KEY securely in your local environment and select JustOneAPI.
  2. Set XHS_SHARE_URL locally to the supported share link you want to resolve.
  3. Check Selected price before running the command; execution sends a real request under the current contract.
bash
curl --request GET \
  "https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/share-url-transfer/v1" \
  --header "Authorization: Bearer ${OPENANY_API_KEY}" \
  --get \
  --data-urlencode "shareUrl=${XHS_SHARE_URL}"

Understanding Response Examples

Example Provenance and scope
Official example · Historical response; independent request Historical response supplied in the catalog; the request is an independent template, not a paired observed call.

Use the documented request as a calling template; consult the public API contract and the actual response for fields and status.

Connect AI Agents via OpenAny MCP

Connect to https://mcp.openany.si, discover with search_apis, then read the current contract and api_version with get_api. Use run_api only after approval of inputs, price and call count; keep the key in secure client configuration.

Agent prompt: Resolve my supported Xiaohongshu short share URL using the JustOneAPI contract. Show the current cost and request execution approval first, then return the resolved destination with sensitive query values masked; do not fetch note content automatically.

Pricing & Billing Rules

  • No subscription; check the selected implementation’s contract and Selected price for the current amount and unit.
  • Browsing, preparing inputs and viewing examples do not execute the API; curl and run_api do.
  • Extra pages, retries and chained requests are separate executions; review their billing and spending limit first.

Frequently Asked Questions

View FAQ

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
A Xiaohongshu (RedNote) short share URL beginning with http://xhslink.com/ or https://xhslink.com/.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
justoneapiCurrent
Xiaohongshu (RedNote) Share Link Resolver API · GET · View API reference
$0.023077 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · justoneapiUSD / call
Unit price
$0.023077

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.

calls

Total $2.3077

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/share-url-transfer/v1
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
shareUrlURL query parametersquerystringYes

A Xiaohongshu (RedNote) short share URL beginning with http://xhslink.com/ or https://xhslink.com/.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • codeinteger
  • dataobject
    • redirect_urlstring
  • messagenull
  • recordTimenull

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Historical response; independent request temp

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    shareUrl
    A Xiaohongshu (RedNote) short share URL beginning with http://xhslink.com/ or https://xhslink.com/.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/share-url-transfer/v1?shareUrl=%3CREPLACE_SHAREURL%3E' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "code": 0,
      "data": {
        "redirect_url": "https://www.xiaohongshu.com/discovery/item/630c7446000000000900e794?app_platform=ios&app_version=9.17.2&share_from_user_hidden=true&xsec_source=app_share&type=normal&xsec_token=CBUR7MS4QW_mp_BOBVLhjRDIlrI0ByhntI06Z0yOK6y84=&author_share=1&xhsshare=CopyLink&shareRedId=ODlEMkhHRTs2NzUyOTgwNjg6OTlFPDlM&apptime=1768400394&share_id=e38a8c6690984d19b88269c59e5833f1"
      },
      "message": null,
      "recordTime": null
    }

Common questions

Do I need a JustOneAPI subscription or platform cookie?

No separate subscription or buyer-supplied platform cookie is required by this OpenAny request contract. Use an OpenAny API key; each execution follows the current selected price.

Which share URLs are supported?

The documented input accepts http://xhslink.com/ and https://xhslink.com/ short URLs. Supply the actual URL as shareUrl, rather than pasting an entire share message.

Does this return note content or a downloadable video?

No. The confirmed payload is a redirect URL. Any subsequent content or media lookup is a separate API operation with its own contract.

How should I read the response status?

Check the HTTP status and business code before using data.redirect_url. Continue to the destination or a content lookup only when the response contains a usable URL.

Why can a destination URL contain extra query parameters?

A resolved share destination may preserve source parameters. Retain what the next operation actually requires and avoid publishing token-like values in logs or shared examples.

How should I handle an unusable or expired share link?

Check HTTP status, business code and redirect_url before continuing. Correct the input or obtain a current supported link; a retry is another execution governed by current billing rules.

Use Xiaohongshu (RedNote) Share Link Resolver API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.