> ## Documentation Index
> Fetch the complete documentation index at: https://getanyapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# RedNote (Xiaohongshu) Profile

> Sell rednote.profile on AnyAPI: the request your endpoint receives, the response it must return, and what the real-request check judges.

Look up a RedNote (Xiaohongshu) profile by user ID and return normalized profile details.

This page is the seller-facing summary of one catalog API, `rednote.profile`. The transport rules that apply to every API a seller serves - signed requests, the response envelope, timeouts, and body limits - are on [the operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md).

## The price you compete with

AnyAPI publishes this API from **\$10.00 per 1,000 requests**. That is the price a buyer sees today, so it is the price your endpoint has to come in under to win traffic.

## The request your endpoint receives

| Field | Type | Required | What it means |
| - | - | - | - |
| `requireFields` | array | no | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `verifyType`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. |
| `userId` | string | yes | RedNote (Xiaohongshu) user ID. |

> [accordion] Full input JSON Schema
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/rednote.profile.input.json",
>   "example": {
>     "userId": "56b0a4491c07df6365277af7"
>   },
>   "title": "RedNote (Xiaohongshu) Profile input",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "userId"
>   ],
>   "properties": {
>     "userId": {
>       "type": "string",
>       "minLength": 1,
>       "description": "RedNote (Xiaohongshu) user ID."
>     },
>     "requireFields": {
>       "type": "array",
>       "uniqueItems": true,
>       "items": {
>         "type": "string",
>         "enum": [
>           "verifyType"
>         ]
>       },
>       "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `verifyType`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge."
>     }
>   }
> }
> ```

## The response your endpoint must return

| Field | Type | Always present | What it means |
| - | - | - | - |
| `data` | null or object | yes | |
| `data.collectedCount` | integer | no | |
| `data.description` | string | no | |
| `data.followers` | integer | no | |
| `data.following` | integer | no | |
| `data.gender` | integer | no | |
| `data.image` | string | no | |
| `data.likedCount` | integer | no | |
| `data.location` | string | no | |
| `data.nickname` | string | no | |
| `data.postedNotes` | integer | no | |
| `data.redId` | string | no | |
| `data.shareUrl` | string | no | |
| `data.userId` | string | yes | |
| `data.verified` | boolean | no | |
| `data.verifyType` | integer or null | no | |
| `found` | boolean | yes | |

Extra fields are kept, missing declared fields fail.

> [accordion] Full output JSON Schema
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/rednote.profile.output.json",
>   "title": "RedNote (Xiaohongshu) profile output",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "found",
>     "data"
>   ],
>   "properties": {
>     "found": {
>       "type": "boolean"
>     },
>     "data": {
>       "oneOf": [
>         {
>           "type": "null"
>         },
>         {
>           "type": "object",
>           "required": [
>             "userId"
>           ],
>           "properties": {
>             "userId": {
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "nickname": {
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "redId": {
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "description": {
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "image": {
>               "x-anyapi-domain": [
>                 "xhscdn.com",
>                 "rednotecdn.com"
>               ],
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "followers": {
>               "type": "integer"
>             },
>             "following": {
>               "type": "integer"
>             },
>             "likedCount": {
>               "type": "integer"
>             },
>             "collectedCount": {
>               "type": "integer"
>             },
>             "postedNotes": {
>               "type": "integer"
>             },
>             "location": {
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             },
>             "gender": {
>               "type": "integer"
>             },
>             "verified": {
>               "type": "boolean"
>             },
>             "verifyType": {
>               "type": [
>                 "integer",
>                 "null"
>               ]
>             },
>             "shareUrl": {
>               "x-anyapi-domain": [
>                 "xiaohongshu.com",
>                 "rednote.com",
>                 "xhslink.com"
>               ],
>               "x-anyapi-must-populate": true,
>               "type": "string"
>             }
>           }
>         }
>       ]
>     }
>   }
> }
> ```

## Fields that must never come back empty

* `description`
* `image`
* `location`
* `nickname`
* `redId`
* `shareUrl`
* `userId`

The repository marks these fields as ones every source must be able to fill. An empty value is only correct when the entity itself genuinely has nothing there.

## Not found, and how it differs from empty

When the entity does not exist, answer 2xx with the not-found shape:

```json theme={"dark"}
{
  "found": false,
  "data": null
}
```

This output schema declares no `reason` field, so `found: false` is the whole not-found answer.

## Example request

```json theme={"dark"}
{
  "userId": "56b0a4491c07df6365277af7"
}
```

The registration tests send this example to your endpoint, with the API's other test inputs. After that, the real-request check sends your endpoint real past customer inputs, and an AI reviewer compares each answer with AnyAPI's own answer to the same input.

## Next

* [The operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md) for signing, budgets, and the real-request check.
* [Every API open to sellers](https://getanyapi.com/docs/sell/apis/index.md).
* Want to sell an API that is not on that list? Email [support@getanyapi.com](mailto:support@getanyapi.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.