from eventregistry import *
MAX_RESULTS = 1000
er = EventRegistry(apiKey = YOUR_API_KEY)
iter = QueryArticlesIter(
keywords = QueryItems.OR(["Bitcoin", "Ethereum", "Litecoin"]),
lang = "eng")
for art in iter.execQuery(er,
sortBy = "date",
maxItems = MAX_RESULTS,
returnInfo = ReturnInfo(
articleInfo = ArticleInfoFlags(
concepts = True,
categories = True)
)):
# do something with the article
print(art)
var request = require('request');
request.get({
url: "/api/v1/article/getArticles",
qs: {
resultType: "articles",
keyword: ["Bitcoin","Ethereum","Litecoin"],
keywordOper: "or",
lang: "eng",
articlesSortBy: "date",
includeArticleConcepts: true,
includeArticleCategories: true,
apiKey: "API_KEY",
},
function(error, response, body) {
body = JSON.parse(body);
console.log(body);
});
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&keyword=Bitcoin&keyword=Ethereum&keyword=Litecoin&keywordOper=or&lang=eng&articlesSortBy=date&includeArticleConcepts=true&includeArticleCategories=true&apiKey=API_KEY
curl -G "https://eventregistry.org/api/v1/article/getArticles" \
--data-urlencode "resultType=articles" \
--data-urlencode "keyword=Bitcoin" \
--data-urlencode "keyword=Ethereum" \
--data-urlencode "keyword=Litecoin" \
--data-urlencode "keywordOper=or" \
--data-urlencode "lang=eng" \
--data-urlencode "articlesSortBy=date" \
--data-urlencode "includeArticleConcepts=true" \
--data-urlencode "includeArticleCategories=true" \
--data-urlencode "apiKey=API_KEY"
from eventregistry import *
MAX_RESULTS = 1000
er = EventRegistry(apiKey = YOUR_API_KEY)
iter = QueryEventsIter(
categoryUri = er.getCategoryUri("natural disasters"),
locationUri = er.getLocationUri("United States"))
for event in iter.execQuery(er, maxItems = MAX_RESULTS):
# do something with the event
print(event)
var request = require('request');
request.get({
url: "/api/v1/event/getEvents",
qs: {
resultType: "events",
categoryUri: "dmoz/Science/Earth_Sciences/Natural_Disasters_and_Hazards",
locationUri: "http://en.wikipedia.org/wiki/United_States",
apiKey: "API_KEY",
},
function(error, response, body) {
body = JSON.parse(body);
console.log(body);
});
https://eventregistry.org/api/v1/event/getEvents?resultType=events&categoryUri=dmoz/Science/Earth_Sciences/Natural_Disasters_and_Hazards&locationUri=http://en.wikipedia.org/wiki/United_States&apiKey=API_KEY
curl -G "https://eventregistry.org/api/v1/event/getEvents" \
--data-urlencode "resultType=events" \
--data-urlencode "categoryUri=dmoz/Science/Earth_Sciences/Natural_Disasters_and_Hazards" \
--data-urlencode "locationUri=http://en.wikipedia.org/wiki/United_States" \
--data-urlencode "eventsCount=10" \
--data-urlencode "apiKey=API_KEY"
from eventregistry import *
MAX_RESULTS = 1000
er = EventRegistry(apiKey = YOUR_API_KEY)
iter = QueryArticlesIter(
conceptUri = er.getConceptUri("Apple"),
sourceGroupUri = er.getSourceGroupUri("business top100"))
for art in iter.execQuery(er,
sortBy = "rel",
maxItems = MAX_RESULTS):
# do something with the article
print(art)
var request = require('request');
request.get({
url: "/api/v1/article/getArticles",
qs: {
resultType: "articles",
conceptUri: "http://en.wikipedia.org/wiki/Apple_Inc.",
sourceGroupUri: "business/top100",
articlesSortBy: "rel",
apiKey: "API_KEY",
},
function(error, response, body) {
body = JSON.parse(body);
console.log(body);
});
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Apple_Inc.&sourceGroupUri=business/top100&articlesSortBy=rel&apiKey=API_KEY
curl -G "https://eventregistry.org/api/v1/article/getArticles" \
--data-urlencode "resultType=articles" \
--data-urlencode "conceptUri=http://en.wikipedia.org/wiki/Apple_Inc." \
--data-urlencode "sourceGroupUri=business/top100" \
--data-urlencode "articlesSortBy=rel" \
--data-urlencode "apiKey=API_KEY"
from eventregistry import *
MAX_RESULTS = 1000
er = EventRegistry(apiKey = YOUR_API_KEY)
iter = QueryArticlesIter(
conceptUri = er.getConceptUri("football"),
lang = QueryItems.OR(["deu", "spa"]))
for art in iter.execQuery(er,
sortBy = "date",
maxItems = MAX_RESULTS,
returnInfo = ReturnInfo(
articleInfo = ArticleInfoFlags(
concepts = True,
categories = True))):
# do something with the article
print(art)
var request = require('request');
request.get({
url: "/api/v1/article/getArticles",
qs: {
resultType: "articles",
conceptUri: "http://en.wikipedia.org/wiki/Association_football",
lang: ["deu","spa"],
articlesSortBy: "date",
includeArticleConcepts: true,
includeArticleCategories: true,
apiKey: "API_KEY",
},
function(error, response, body) {
body = JSON.parse(body);
console.log(body);
});
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Association_football&lang=deu&lang=spa&articlesSortBy=date&includeArticleConcepts=true&includeArticleCategories=true&apiKey=API_KEY
curl -G "https://eventregistry.org/api/v1/article/getArticles" \
--data-urlencode "resultType=articles" \
--data-urlencode "conceptUri=http://en.wikipedia.org/wiki/Association_football" \
--data-urlencode "lang=deu" \
--data-urlencode "lang=spa" \
--data-urlencode "articlesSortBy=date" \
--data-urlencode "includeArticleConcepts=true" \
--data-urlencode "includeArticleCategories=true" \
--data-urlencode "articleBodyLen=300" \
--data-urlencode "articlesCount=10" \
--data-urlencode "apiKey=API_KEY"
from eventregistry import *
MAX_RESULTS = 1000
er = EventRegistry(apiKey = YOUR_API_KEY)
iter = QueryArticlesIter(
conceptUri = er.getConceptUri("refugee"),
sourceLocationUri = er.getLocationUri("Germany"),
lang = QueryItems.OR(["deu", "spa"]))
for art in iter.execQuery(er,
sortBy = "sourceAlexaGlobalRank",
sortByAsc = True,
maxItems = MAX_RESULTS):
# do something with the article
print(art)
var request = require('request');
request.get({
url: "/api/v1/article/getArticles",
qs: {
resultType: "articles",
conceptUri: "http://en.wikipedia.org/wiki/Refugee"
sourceLocationUri: "http://en.wikipedia.org/wiki/Germany"
articlesSortBy: "sourceAlexaGlobalRank",
articlesSortByAsc: "true",
apiKey: "API_KEY",
},
},
function(error, response, body) {
body = JSON.parse(body);
console.log(body);
});
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Refugee&sourceLocationUri=http://en.wikipedia.org/wiki/Germany&articlesSortBy=sourceAlexaGlobalRank&articlesSortByAsc=true&apiKey=API_KEY
curl -G "https://eventregistry.org/api/v1/article/getArticles" \
--data-urlencode "resultType=articles" \
--data-urlencode "conceptUri=http://en.wikipedia.org/wiki/Refugee" \
--data-urlencode "sourceLocationUri=http://en.wikipedia.org/wiki/Germany" \
--data-urlencode "articlesSortBy=sourceAlexaGlobalRank" \
--data-urlencode "articlesSortByAsc=true" \
--data-urlencode "apiKey=API_KEY"