Queries GDELT's full text API for user specified terms, machine learned items, web domains and more. Users can return raw data or a Trelliscope of visual results. Data is a available in rolling three month periods.
get_data_ft_v2_api(terms = NA, domains = NA, images_face_tone = NA, images_num_faces = NA, images_ocr = NA, images_tag = NA, images_web_tag = NA, images_web_count = NA, source_countries = NA, source_languages = "English", gkg_themes = NA, tone = NA, tone_absolute_value = NA, use_or = FALSE, modes = "ArtList", timespans = c("24 hours"), dates = NA, maximum_records = 250, translate = NULL, timeline_smooth = 5, sort_by = "DateDesc", visualize_results = TRUE, trelliscope_parameters = list(path = NULL, rows = 1, columns = 2, id_columns = NULL, group_columns = NULL), nest_data = FALSE, return_message = TRUE, ...)
| terms | a vector of terms |
|---|---|
| domains | a vector of webdomains |
| images_face_tone | vector of facial tone scores |
| images_num_faces | vector of face count |
| images_ocr | vector of words to search for OCR'd text |
| images_tag | vector of image tags from the image tag code book.
use |
| images_web_tag | vector of image tags from the image web tag code book.
use |
| images_web_count | numeric vector of number of times photo appeared |
| source_countries | character source countries
#' see |
| source_languages | source languages |
| gkg_themes | global knowledge graph theme
#' use |
| tone | numeric tone - default (NA) |
| tone_absolute_value | numeric tone absolute value (default NA) |
| use_or | if |
| modes | API search mode
|
| timespans | character vector of the time frame - no more than 52 weeks - default is 24 hours acceptable periods include:
|
| dates | vector of dates in YMD HMS format, separated by |
| maximum_records | Number between 1 and 250 |
| translate | if |
| timeline_smooth | if |
| sort_by | sorting method
|
| visualize_results | if |
| trelliscope_parameters | list of parameters to pass along to trelliscope
|
| nest_data | if |
| return_message | if |
| ... | - additional parameters |
a tibble or a form of visualization
# NOT RUN { terms <- c('"Brooklyn Nets"', '"Donovan Mitchell"', 'Blackston Real Estate', '"Tom Brady"') web_sites <- c("realdeal.com", "netsdaily.com", "wsj.com", "archdaily.com", "alphr.com") get_data_ft_v2_api(terms = terms, domains = web_sites, timespans = "28 Weeks") # }