# 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.

Documentation: https://openany.si/xiaohongshu/xiaohongshu-rednote-share-link-resolution-api-v1/
API ID: 6cb44574-ff2d-40f9-903d-b113168f507a
Provider: justoneapi
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/share-url-transfer/v1
Page update time: 2026-12-03T01:54:35.421Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.023077 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T01:54:35.421Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "23077",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## 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.

## 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](https://openany.si/market/apis/xiaohongshu/xiaohongshu-search-notes/).

## 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.

```
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](https://openany.si/api/v1/agent-apis/6cb44574-ff2d-40f9-903d-b113168f507a) 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.

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Xiaohongshu (RedNote) Share Link Resolver API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "shareUrl": {
          "type": "string",
          "description": "A Xiaohongshu (RedNote) short share URL beginning with http://xhslink.com/ or https://xhslink.com/."
        }
      },
      "required": [
        "shareUrl"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "redirect_url": {
          "type": "string"
        }
      }
    },
    "message": {
      "type": "null"
    },
    "recordTime": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Historical response; independent request temp
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## 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.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
