API

X (트위터) API

X는 실시간 통신, 미디어 가시성 및 평판 대응을 위해 약 6억 명의 월간 사용자에게 짧은 게시물, 생중계, 비디오 및 속보 대화를 통해 도달합니다.

API 참조 버전: 1.0.0 38 엔드포인트 인증
X

기본 URL

https://api.pressmonitor.com

인증

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

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /autocomplete

자동 완성

매개변수

이름 유형 위치 필수 설명
value string query
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /comments

댓글

매개변수

이름 유형 위치 필수 설명
pid string query Pid
ranking_mode string query 순위 모드
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/comments?pid=VALUE&ranking_mode=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /community-topics

커뮤니티 주제

매개변수

이름 유형 위치 필수 설명
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /community-tweets

커뮤니티 트윗

매개변수

이름 유형 위치 필수 설명
communityId string query 커뮤니티 ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/community-tweets?communityId=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /followers

팔로워

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /followers-ids

팔로워 ID

매개변수

이름 유형 위치 필수 설명
username string query 사용자 이름(@ 기호 제외, 예: 'elonmusk')
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/followers-ids?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /followings

팔로잉

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /followings-ids

팔로잉 ID

매개변수

이름 유형 위치 필수 설명
username string query 사용자 이름(@ 기호 제외, 예: 'elonmusk')
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/followings-ids?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /get-users

사용자 가져오기

매개변수

이름 유형 위치 필수 설명
users string query 사용자들
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /group-tweets

그룹 트윗

매개변수

이름 유형 위치 필수 설명
communityId string query 커뮤니티 ID
rankingMode string query 순위 모드
searchType string query 검색 유형
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/group-tweets?communityId=VALUE&rankingMode=VALUE&searchType=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /highlights

하이라이트

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /jobs-details

채용 상세 정보

매개변수

이름 유형 위치 필수 설명
jobId string query 채용 ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /jobs-locations-suggest

채용 위치 제안

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /likes

좋아요

매개변수

이름 유형 위치 필수 설명
pid string query Pid
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /list-details

목록 상세

매개변수

이름 유형 위치 필수 설명
listId string query 목록 ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /list-timeline

목록 타임라인

매개변수

이름 유형 위치 필수 설명
listId string query 목록 ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/list-timeline?listId=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /list-tweets

목록 트윗

매개변수

이름 유형 위치 필수 설명
list_id string query 목록 ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/list-tweets?list_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /org-affiliates

기관 제휴사

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/org-affiliates?user=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /quotes

인용구

매개변수

이름 유형 위치 필수 설명
pid string query Pid
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /retweets

리트윗

매개변수

이름 유형 위치 필수 설명
pid string query Pid
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /search-community

커뮤니티 검색

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /search-lists

목록 검색

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /searchold

이전 검색

매개변수

이름 유형 위치 필수 설명
query string query 검색 쿼리
type string query 유형
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /spaces

스페이스

매개변수

이름 유형 위치 필수 설명
id string query ID
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /tweet

트윗

매개변수

이름 유형 위치 필수 설명
pid string query Pid
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /tweet-by-ids

ID로 트윗 조회

매개변수

이름 유형 위치 필수 설명
tweetIDs string query 트윗 ID들
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/tweet-by-ids?tweetIDs=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /user

사용자

매개변수

이름 유형 위치 필수 설명
username string query 사용자 이름(@ 기호 제외, 예: 'elonmusk')
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /user-likes

사용자 좋아요

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /user-media

사용자 미디어

매개변수

이름 유형 위치 필수 설명
cusor string query 커서
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/user-media?cusor=VALUE&user=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /user-replies

사용자 답글

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /user-replies-v2

사용자 답글 V2

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/user-replies-v2?user=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공
GET /user-tweets

사용자 트윗

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

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

응답

200 성공
GET /verified-followers

인증된 팔로워

매개변수

이름 유형 위치 필수 설명
user string query 숫자형 사용자 ID(사용자 이름 아님). 사용자 이름으로 ID 조회는 'user' 엔드포인트 사용
count integer query 아니요 반환할 결과 수
cursor integer query 아니요 다음 페이지를 위한 페이지네이션 커서

코드 예제

curl -X GET "https://api.pressmonitor.com/verified-followers?user=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

응답

200 성공