API
Wikidata API
위키데이터는 인물, 기관, 장소, 작품, 개념 등 1억 2100만 개 이상의 항목을 협업으로 관리하는 지식 기반입니다.
API 참조 버전: 1.0.0 10 엔드포인트 인증
기본 URL
https://api.pressmonitor.com 인증
모든 요청은 Bearer 토큰 인증을 사용합니다. 각 호출에 Authorization 헤더를 추가하세요.
Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID GET
/suggest-entities 엔티티 제안
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| query_text | string | query | 예 | 쿼리 텍스트 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/suggest-entities?query_text=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search/by-label 라벨로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| query_text | string | query | 예 | 쿼리 텍스트 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search/by-label?query_text=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search/by-description 설명으로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| query_text | string | query | 예 | 쿼리 텍스트 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search/by-description?query_text=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search/by-type 유형으로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| type | string | query | 예 | 유형 |
| query_text | string | query | 아니요 | 쿼리 텍스트 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search/by-type?type=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search/by-claim 클레임 값으로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| property | string | query | 예 | 속성 |
| value | string | query | 아니요 | 값 |
| mode | string | query | 아니요 | 모드 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search/by-claim?property=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/find/by-property 속성으로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| property | string | query | 예 | 속성 |
| value | string | query | 아니요 | 값 |
| qualifier | string | query | 아니요 | 한정자 |
| rank | string | query | 아니요 | 등급 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/find/by-property?property=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/search/temporal 날짜 범위로 엔티티 검색
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| property | string | query | 예 | 속성 |
| from | string | query | 아니요 | 시작 |
| to | string | query | 아니요 | 종료 |
| value | string | query | 아니요 | 값 |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/search/temporal?property=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/entities/$0 ID로 엔티티 가져오기
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| wikidata_id | string | query | 예 | Wikidata ID |
| lang | string | query | 아니요 | 언어 |
코드 예제
curl -X GET "https://api.pressmonitor.com/entities/$0?wikidata_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/entities/$0/claims 엔티티 클레임 가져오기
매개변수
| 이름 | 유형 | 위치 | 필수 | 설명 |
|---|---|---|---|---|
| wikidata_id | string | query | 예 | Wikidata ID |
| lang | string | query | 아니요 | 언어 |
| limit | string | query | 아니요 | 제한 |
| offset | string | query | 아니요 | 오프셋 |
코드 예제
curl -X GET "https://api.pressmonitor.com/entities/$0/claims?wikidata_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공
GET
/properties 속성 가져오기
코드 예제
curl -X GET "https://api.pressmonitor.com/properties" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" 응답
200 성공