Reddit 상세 정보 API

POST

API 상태

24시간 상태
정상
  • 양호 / 정상
  • 사용 가능
정상

최근 24시간

최근 30일

Reddit 사용자 한 명의 프로필을 단일 객체로 가져옵니다. username은 필수이며 spez, u/spez 또는 프로필 링크로 호출당 한 명을 지정합니다. 필드: user_id(t2_로 시작), username, display_name, url, bio, avatar_url, banner_url, karma(합계), post_karma, comment_karma, post_count, comment_count(두 개수는 Reddit이 약 24시간마다 업데이트하며, 일부 요청에서는 빠진 채 반환됨), created_at(가입일, 일 단위까지만 정확), is_premium, is_admin(Reddit 직원 계정), is_nsfw, content_hidden, trophy_count, achievement_count, moderated_communities. content_hidden이 true이면 user_posts, user_comments, user_subreddits는 빈 결과를 반환합니다. Reddit이 팔로워 수를 표시하지 않으므로 팔로워 수는 없습니다. 존재하지 않거나 차단된 사용자는 빈 결과를 반환합니다.

POST https://api.everyinfra.com/api/v1/social을 보내고 platform은 reddit, action은 profile로 설정합니다. 요금은 요청 1,000개당 $0.79(호출당 $0.000792)입니다. 실패한 호출과 빈 결과에는 과금하지 않습니다. 동기 방식입니다. 오래 걸리는 작업은 요청 본문에 "mode": "async"를 추가하고 job_id를 받아 폴링하세요.

AI 프롬프트

#
EveryInfra Reddit 상세 정보 엔드포인트(reddit/profile)를 사용하는 데이터 수집 스크립트 작성을 도와주세요.

엔드포인트 사용 방법:
- 요청: Authorization: Bearer <API 키> 헤더와 함께 POST https://api.everyinfra.com/api/v1/social로 보냅니다. 키는 EVERYINFRA_API_KEY 환경 변수에서 읽고, 절대 하드코딩하지 마세요.
- 요청 본문에서 platform은 reddit, action은 profile로 설정하고, 파라미터는 params 안에 넣습니다.
- 필수 파라미터:
  - username: One Reddit user: spez, u/spez or a profile link. One user per call.
- 단일 객체를 반환합니다. 주요 필드: user_id, username, display_name, url, bio, avatar_url, banner_url (Image URL of the banner on the communit…), karma (The user's total karma (profile)), post_karma (Karma the user earned from posts (profi…), comment_karma (Karma the user earned from comments (pr…), post_count, comment_count; 전체 필드 20개, 전체 목록은 https://api.everyinfra.com/api/v1/social/catalog?platform=reddit.
- 요청 본문 예시:
{
  "platform": "reddit",
  "action": "profile",
  "params": {
    "username": "spez"
  }
}
- 요금: 요청 1,000개당 $0.79. 실패하거나 빈 결과에는 과금하지 않습니다.
- 대상이 수십~수백 개라면 요청 본문에 "mode": "async"를 추가하세요. job_id를 즉시 받은 뒤 GET https://api.everyinfra.com/api/v1/jobs/{job_id}를 폴링해 결과를 가져옵니다.
- 422가 반환되면 오류에 제시된 파라미터 이름과 허용 값을 참고해 요청을 수정하고, 429 또는 503이 반환되면 Retry-After만큼 기다린 뒤 다시 시도합니다.

코드를 작성하기 전에 필요한 대상과 수량, 필드, 원하는 출력 형식을 먼저 물어봐 주세요. 그런 다음 계획과 대략적인 비용을 저와 확인해 주세요.

요청 파라미터

#
이름위치타입필수기본값설명
Authorizationheaderstring예-Bearer 뒤에 API 키를 붙여 입력합니다. API 키는 콘솔에서 생성하며, URL이나 코드 저장소에 절대 넣지 마세요.
platformbodystring예reddit플랫폼 식별자이며 고정값입니다.
actionbodystring예profile기능 식별자이며 고정값입니다.
usernamebody.paramsstring예-One Reddit user: spez, u/spez or a profile link. One user per call.

코드 샘플

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "reddit",
  "action": "profile",
  "params": {
    "username": "spez"
  }
}'

OpenAPI 정의(JSON)샘플 코드는 EVERYINFRA_API_KEY 환경 변수에서 키를 읽으므로, 복사한 코드에는 API 키가 포함되지 않습니다.

응답 예시

#
이 파라미터에 대한 샘플 응답이 아직 없습니다. 이 미리보기는 API 정의에 따른 응답 형태와 필드를 보여 주며, …는 자리표시자입니다. 실제 호출 결과가 아닙니다.
json
{  "id": "req_…",  "platform": "reddit",  "action": "profile",  "results": {    "user_id": …,    "username": …,    "display_name": …,    "url": …,    "bio": …,    "avatar_url": …,    "banner_url": …,    "karma": …,    "post_karma": …,    "comment_karma": …,    "post_count": …,    "comment_count": …,    "created_at": …,    "is_premium": …,    "is_admin": …,    "is_nsfw": …,    "content_hidden": …,    "trophy_count": …,    "achievement_count": …,    "moderated_communities": …,    "platform": …  },  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

응답 필드

#

비즈니스 데이터는 results에 담깁니다. 아래 표는 레코드에 포함될 수 있는 필드를 나열하며, 플랫폼에 표시되지 않는 값을 임의로 만들어 넣지 않습니다.

필드의미
user_id플랫폼에서 사용자의 고유 ID입니다.
username사용자 이름(@handle)입니다.
display_name표시 이름으로, username과 다를 수 있습니다.
url플랫폼에서 해당 레코드로 연결되는 링크입니다.
bio계정이 작성한 프로필 소개로, 줄바꿈과 이모지가 포함될 수 있습니다.
avatar_url프로필 이미지 링크입니다. 일부 플랫폼은 크기가 지정된 CDN 링크를 반환하며, 이 링크는 만료될 수 있습니다.
banner_urlImage URL of the banner on the community page (subreddit_info, subreddit_rules) or on the user's profile (profile).
karmaThe user's total karma (profile); post_karma and comment_karma give the parts earned from posts and from comments.
post_karmaKarma the user earned from posts (profile).
comment_karmaKarma the user earned from comments (profile).
post_count전체 게시물 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다.
comment_count댓글 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다.
created_at생성 시각으로, posted_at과 같은 형식입니다.
is_premiumWhether the user has Reddit Premium (profile).
is_adminWhether the account belongs to Reddit staff (profile).
is_nsfwWhether the community (search_suggest) or the user (profile) is marked NSFW.
content_hiddenWhether the user has hidden their posts and comments (profile). When true, user_posts, user_comments and user_subreddits return empty results.
trophy_countHow many older trophies the user has in the Trophy Case on their profile (profile).
achievement_countHow many achievements the user has unlocked (profile). The list is in user_trophies.
moderated_communitiesNames of the communities the user moderates, without the r/ prefix (profile): an array.
platform출처 플랫폼 식별자로, 요청의 platform과 같습니다(예: xiaohongshu, tiktok).

오류 및 과금

#
401
키가 없거나 유효하지 않습니다.
402
잔액이 부족합니다. 먼저 충전하세요.
422
파라미터 이름 또는 값이 올바르지 않습니다. 오류에 제시된 제안을 참고해 수정하세요. 과금되지 않습니다.
429
분당 요청 속도 제한에 도달했습니다. Retry-After만큼 기다린 뒤 다시 시도하세요.
503
처리를 완료하지 못했습니다. 보류된 금액은 잔액으로 반환됩니다. 결과가 불확실하면 재시도하기 전에 먼저 확인하세요.
200 빈 결과
데이터가 없습니다. 과금되지 않습니다.

오류

Google Analytics는 동의 필요. 개인정보