Posts
샤오홍슈의 탐색 피드를 가져옵니다. 지금 추천하는 노트와 작성자, 표지, 좋아요 수.
GET | POST /v1/xiaohongshu/posts파라미터는 GET의 쿼리 문자열로도, POST의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.
요청
curl "https://gateway.apinoa.com/v1/xiaohongshu/posts" \
-H "x-api-key: $APINOA_API_KEY"넘길 값
| 넘기는 값 | 읽는 것 | 비고 |
|---|---|---|
| 없음 | 탐색 피드 | 샤오홍슈가 지금 방문자에게 추천하는 노트, 약 30개 |
파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
username | string | Not served: the profile page lists a creator's posts without their ids. Ask profile, whose ext.posts lists them. |
같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.
응답
data에 Post의 Page를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"platform": "xiaohongshu",
"items": [
{
"platform": "xiaohongshu",
"id": "6a730db50000000033011c29",
"url": "https://www.xiaohongshu.com/explore/6a730db50000000033011c29",
"author": {
"platform": "xiaohongshu",
"id": "641305180000000012012c22",
"displayName": "干完这票就碎觉",
"url": "https://www.xiaohongshu.com/user/profile/641305180000000012012c22",
"avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31pnjhj14kk005p0j0kc4ib12…",
"ext": {
"xsecToken": "AByHSjvm2GViDK9ORqlP8Vshbv1Tg0fd5xEEEy03JJo2k="
}
},
"title": "share🫧两位数get的波点草莓刘海梳!ꈍᗜꈍ",
"ext": {
"type": "video",
"cover": {
"type": "image",
"url": "http://sns-web-i10.rednotecdn.com/202611270748/e56035417575c2c5e7743851c3a996…",
"width": 1290,
"height": 1720,
"thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/ce04d5acb7f45ca2386e7ff4064f3a…",
"variants": [
{
"url": "http://sns-web-i10.rednotecdn.com/202611270748/ce04d5acb7f45ca2386e7ff4064f3a…",
"quality": "WB_PRV"
},
{
"url": "http://sns-web-i10.rednotecdn.com/202611270748/e56035417575c2c5e7743851c3a996…",
"quality": "WB_DFT"
}
]
},
"videoDurationSec": 32,
"metricsText": {
"likes": "28.9K"
},
"translation": {
"title": "share🫧Got this polka dot strawberry com"
},
"xsecToken": "ABnB-G86g96Km7WPUmitMAA99VGEbK1DDT-jTUeQI2msg="
},
"media": []
},
{
"platform": "xiaohongshu",
"id": "6ae89201000000002c01a61f",
"url": "https://www.xiaohongshu.com/explore/6ae89201000000002c01a61f",
"author": {
"platform": "xiaohongshu",
"id": "5746e9ea84edcd0e83e3f956",
"displayName": "琛宝的精致小厨房",
"url": "https://www.xiaohongshu.com/user/profile/5746e9ea84edcd0e83e3f956",
"avatarUrl": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo322ipun667u0048cmtvkuluam…",
"ext": {
"xsecToken": "ABN3EoBxnINmkfELcjl2HIomAPJUHpWRzUgxLNhst-huo="
}
},
"title": "在家自制宝宝火腿肠!巨香!巨好吃!",
"metrics": {
"likes": 320
},
"ext": {
"type": "video",
"cover": {
"type": "image",
"url": "http://sns-web-i10.rednotecdn.com/202611270748/13e65727db9498a360f057f3f6247a…",
"width": 2880,
"height": 3840,
"thumbnailUrl": "http://sns-web-i10.rednotecdn.com/202611270748/14240279651d9e5f8292df0b6e6c8c…",
"variants": [
{
"url": "http://sns-web-i10.rednotecdn.com/202611270748/14240279651d9e5f8292df0b6e6c8c…",
"quality": "WB_PRV"
},
{
"url": "http://sns-web-i10.rednotecdn.com/202611270748/13e65727db9498a360f057f3f6247a…",
"quality": "WB_DFT"
}
]
},
"videoDurationSec": 49,
"translation": {
"title": "DIY Baby Ham Sausages at Home! So fragra"
},
"xsecToken": "ABlGmzOS3GInWUNbvuM4MkcN__A92ZATOkBP30l-4SxhA="
},
"media": []
}
]
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났습니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_CREDITS | 크레딧이 이 호출 비용에 모자랍니다. 대시보드에서 플랜을 고르거나 충전하세요. |
| 404 | NOT_FOUND | 계정·게시물·그룹이 없거나, 비공개·삭제·연령 제한 상태입니다. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 플랫폼이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 1 크레딧. 플랜과 크레딧