API
Wikidata API
The AI-powered Wikidata Entities Monitor provides 360° Global Media Data & Intelligence on Wikidata is a collaboratively maintained knowledge base with more than 121 million items covering people, organizations, places, works, and concepts. It is important for entity resolution, knowledge graphs, search enrichment, and structured research.
Referência da API Versão: 1.0.0 10 Pontos finais Autenticação
URL base
https://pressmonitor.com/api Autenticação
Todas as requisicoes exigem os cabecalhos x-api-key e x-subscription-id. x-api-key autentica sua conta; x-subscription-id seleciona o servico assinado.
x-api-key: YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID GET
/suggest_entities Suggest Entities
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| query_text | string | query | Sim | Query Text |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/suggest_entities?query_text=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/search/by_label Search Entities By Label
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| query_text | string | query | Sim | Query Text |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/search/by_label?query_text=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/search/by_description Search Entities By Description
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| query_text | string | query | Sim | Query Text |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/search/by_description?query_text=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/search/by_type Search Entities By Type
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| type | string | query | Sim | Type |
| query_text | string | query | Não | Query Text |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/search/by_type?type=VALUE&query_text=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/search/by_claim Search Entities By Claim Value
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| property | string | query | Sim | Property |
| value | string | query | Não | Value |
| mode | string | query | Não | Mode |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/search/by_claim?property=VALUE&value=VALUE&mode=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/find/by_property Search Entities By Property
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| property | string | query | Sim | Property |
| value | string | query | Não | Value |
| qualifier | string | query | Não | Qualifier |
| rank | string | query | Não | Rank |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/find/by_property?property=VALUE&value=VALUE&qualifier=VALUE&rank=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/search/temporal Search Entities By Date Range
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| property | string | query | Sim | Property |
| from | string | query | Não | From |
| to | string | query | Não | To |
| value | string | query | Não | Value |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/search/temporal?property=VALUE&from=VALUE&to=VALUE&value=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/entities/$0 Get Entity By Id
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| wikidata_id | string | query | Sim | Wikidata Id |
| lang | string | query | Não | Lang |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/entities/$0?wikidata_id=VALUE&lang=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/entities/$0/claims Get Entity Claims
Parâmetros
| Nome | Tipo | Localização | Obrigatório | Descrição |
|---|---|---|---|---|
| wikidata_id | string | query | Sim | Wikidata Id |
| lang | string | query | Não | Lang |
| limit | string | query | Não | Limit |
| offset | string | query | Não | Offset |
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/entities/$0/claims?wikidata_id=VALUE&lang=VALUE&limit=VALUE&offset=VALUE" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success
GET
/properties Get Properties
Exemplos de Código
curl -X GET \
"https://pressmonitor.com/api/properties" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" Respostas
200 Success