Posts
Reddit의 어떤 목록에서든 게시물을 나열합니다: 사용자, 커뮤니티, 검색, 특정 id, 또는 인기 피드.
GET | POST /v1/reddit/posts파라미터는 GET의 쿼리 문자열로도, POST의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.
넘길 값
| 넘기는 값 | 읽는 것 | 비고 |
|---|---|---|
username | 사용자의 게시물 | sort: new, hot, top, controversial |
community | 커뮤니티의 게시물 | sort: hot, new, top, rising, controversial |
query | 게시물 검색 | sort: relevance, hot, top, new, comments; community를 추가하면 그 커뮤니티 안에서 검색 |
ids | 특정 게시물들, 한 번의 호출에 최대 100개 | |
| 없음 | 인기 피드 | country로 국가별 피드 선택; sort: hot, new, top, rising |
호출마다 소스는 하나만 넘기세요. 모든 식별자는 페이지 URL도 받습니다.
파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
community | string | A community's posts: name (with or without r/) or URL. With query, narrows the search to it. | |
country | string | Default feed only: the country whose popular feed to read (ISO alpha-2). | |
cursor | string | Opaque cursor from the previous page's cursor. Pass it alone for the next page. | |
ids | string list | Specific posts: ids, fullnames (t3_…) or URLs, 1–100 in one call. | |
limit | integer 1–100 | Items per page, 1–100. | |
period | enum | Time window for sort top or controversial: hour, day, week, month, year or all. hour day week month year all | |
query | string | Search posts by keyword. | |
sort | enum | Order. username: new, hot, top, controversial · community: hot, new, top, rising, controversial · query: relevance, hot, top, new, comments · default feed: hot, new, top, rising. hot new top rising controversial relevance comments | |
username | string | A user's posts: username (with or without u/) or profile URL. |
요청
curl "https://gateway.apinoa.com/v1/reddit/posts?community=technology&sort=top&period=week&limit=3" \
-H "x-api-key: $APINOA_API_KEY"응답
data에 Post Page를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"platform": "reddit",
"items": [
{
"platform": "reddit",
"id": "1xcg8as",
"url": "https://www.reddit.com/r/technology/comments/1xcg8as/pure_arrogance_anger_in_finland_as_google/",
"author": {
"platform": "reddit",
"handle": "WombatusMighty",
"id": "5dv971n4"
},
"title": "‘Pure arrogance’: anger in Finland as Google illegally fells 250,000 trees for datacentre",
"createdAt": "2026-10-22T11:41:24.000Z",
"media": [],
"metrics": {
"comments": 1760
},
"linkPreview": {
"url": "https://www.theguardian.com/environment/ng-interactive/2026/oct/22/finland-google-felling-trees-datacentre",
"domain": "theguardian.com",
"thumbnailUrl": "https://external-preview.redd.it/lFXQEMQFV6biLNRdb5GCAM5QH6hE_uoy07Oh_R_8gGY.jpeg?auto=webp&s=c2e26eb42ca63eb3b645fb216…"
},
"sensitive": false,
"ext": {
"fullname": "t3_1xcg8as",
"score": 43304,
"ups": 43304,
"upvoteRatio": 0.97,
"numCrossposts": 13,
"awards": 0,
"flair": "Society",
"flairTextColor": "dark",
"flairTemplateId": "80187d9a-a816-11e9-a79b-0ea66e3761e6",
"kind": "link",
"preview": {
"source": {
"url": "https://external-preview.redd.it/lFXQEMQFV6biLNRdb5GCAM5QH6hE_uoy07Oh_R_8gGY.jpeg?auto=webp&s=c2e26eb42ca63eb3b645fb216…",
"width": 1200,
"height": 630
},
"resolutions": [
{
"url": "https://external-preview.redd.it/lFXQEMQFV6biLNRdb5GCAM5QH6hE_uoy07Oh_R_8gGY.jpeg?width=108&crop=smart&auto=webp&s=207c…",
"width": 108,
"height": 56
},
{
"url": "https://external-preview.redd.it/lFXQEMQFV6biLNRdb5GCAM5QH6hE_uoy07Oh_R_8gGY.jpeg?width=216&crop=smart&auto=webp&s=4886…",
"width": 216,
"height": 113
}
],
"enabled": false
},
"thumbnailUrl": "https://external-preview.redd.it/lFXQEMQFV6biLNRdb5GCAM5QH6hE_uoy07Oh_R_8gGY.jpeg?width=320&crop=smart&auto=webp&s=34e6…",
"spoiler": false,
"locked": false,
"archived": false,
"community": {
"name": "technology",
"id": "2qh16",
"subscribers": 20595712,
"type": "public"
}
}
}
],
"cursor": "VScWoTDcqFrJzxjNiQLrLiERD67YI2Z7BDybCfuuuw7Y1fj0I93Td2ktHpxH3S9F2oDtrW8sALbYe5XxRjBp60ZNmeeKaDtyJYHrrIWz545u3odld5-ZK0P…"
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_CURSOR | 이 오퍼레이션이 돌려준 cursor가 아닙니다. cursor 없이 처음부터 다시 호출하세요. |
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났습니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_BALANCE | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 404 | NOT_FOUND | 계정·게시물·그룹이 없거나, 비공개·삭제·연령 제한 상태입니다. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 플랫폼이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 $0.001. 정가 기준이며, 하루 1,000회를 넘으면 단가가 내려갑니다.
참고
period(hour…all)는sort=top또는sort=controversial과 함께 적용됩니다.