API

레딧 API

레딧은 포럼, 스레드, 텍스트 게시물, 링크, 이미지 및 댓글을 통해 약 1억 2천 1백만 명의 일일 활성 사용자에게 서비스를 제공하여 커뮤니티 통찰력, 평판 추적, 제품 피드백 및 틈새 발견에 중요한 역할을 합니다.

API 참조 버전: 1.0.0 14 엔드포인트 인증
레딧

기본 URL

https://api.pressmonitor.com

인증

모든 요청은 Bearer 토큰 인증을 사용합니다. 각 호출에 Authorization 헤더를 추가하세요.

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /comments-by-username

사용자별 댓글

코드 예제

curl -X GET "https://api.pressmonitor.com/comments-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /get-cursor

커서 가져오기

코드 예제

curl -X GET "https://api.pressmonitor.com/get-cursor" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /new-subreddits

신규 서브레딧

코드 예제

curl -X GET "https://api.pressmonitor.com/new-subreddits" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /post-details

게시물 상세

매개변수

이름 유형 위치 필수 설명
post_url string query 게시물 URL

코드 예제

curl -X GET "https://api.pressmonitor.com/post-details?post_url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /posts-by-subreddit

서브레딧별 게시물

코드 예제

curl -X GET "https://api.pressmonitor.com/posts-by-subreddit" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /posts-by-username

사용자별 게시물

코드 예제

curl -X GET "https://api.pressmonitor.com/posts-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /search-posts

게시물 검색

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리

코드 예제

curl -X GET "https://api.pressmonitor.com/search-posts?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /search-subreddits

서브레딧 검색

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리

코드 예제

curl -X GET "https://api.pressmonitor.com/search-subreddits?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /top-comments-by-username

사용자별 최고 댓글

코드 예제

curl -X GET "https://api.pressmonitor.com/top-comments-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /top-posts-by-username

사용자별 최고 게시물

코드 예제

curl -X GET "https://api.pressmonitor.com/top-posts-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공