API
텔레그램 API
텔레그램은 10억 명 이상의 월간 활성 사용자가 메시지, 채널, 그룹, 음성 메시지, 봇 및 미디어를 공유하여 직접 배포, 커뮤니티 관리 및 빠르게 변화하는 뉴스 청중에게 중요한 플랫폼입니다.
API 참조 버전: 1.0.0 7 엔드포인트 인증
기본 URL
https://api.pressmonitor.com 인증
모든 요청은 Bearer 토큰 인증을 사용합니다. 각 호출에 Authorization 헤더를 추가하세요.
Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID GET
/bot-info 봇 정보
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| username | string | query | 예 | 사용자 이름 |
코드 예제
curl -X GET "https://api.pressmonitor.com/bot-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/channel-info 채널 정보
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| username | string | query | 예 | 사용자 이름 |
코드 예제
curl -X GET "https://api.pressmonitor.com/channel-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/get-messages 메시지 가져오기
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| username | string | query | 예 | 사용자 이름 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/get-messages?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/group-info 그룹 정보
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| username | string | query | 예 | 사용자 이름 |
코드 예제
curl -X GET "https://api.pressmonitor.com/group-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| keyword | string | query | 예 | 키워드 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search?keyword=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search-hashtag 해시태그 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| hashtag | string | query | 예 | 해시태그 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search-hashtag?hashtag=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/user-info 사용자 정보
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| username | string | query | 예 | 사용자 이름 |
코드 예제
curl -X GET "https://api.pressmonitor.com/user-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공