All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
get_all_data_tags | GET /data_tags | All Data Tags |
get_data_tag_by_id | GET /data_tags/{identifier} | Lookup Data Tag |
search_data_tags | GET /data_tags/search | Search Data Tags |
View Intrinio API Documentation
ApiResponseDataTags get_all_data_tags(opts)
Returns all Data Tags. Returns Data Tags matching parameters when specified.
# Setup client
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
DataTagApi <- IntrinioSDK::DataTagApi$new(client)
# Optional params
opts <- list(
tag = NULL,
type = NULL,
parent = NULL,
statement_code = "income_statement",
fs_template = "industrial",
page_size = 100,
next_page = NULL
)
response <- DataTagApi$get_all_data_tags(opts)
print(response)
print(response$content)
Name | Type | Description | Notes |
---|---|---|---|
tag | Character | Tag | [optional] |
type | Character | Type | [optional] |
parent | Character | ID of tag parent | [optional] |
statement_code | Character | Statement Code | [optional] |
fs_template | Character | Template | [optional] [default to industrial] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | Character | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
DataTag get_data_tag_by_id(identifier)
Returns the Data Tag with the given identifier
# Setup client
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
DataTagApi <- IntrinioSDK::DataTagApi$new(client)
# Required params
identifier <- "marketcap"
response <- DataTagApi$get_data_tag_by_id(identifier)
print(response)
print(response$content)
Name | Type | Description | Notes |
---|---|---|---|
identifier | Character | The Intrinio ID or the code-name of the Data Tag |
View Intrinio API Documentation
ApiResponseDataTagsSearch search_data_tags(query, opts)
Searches for Data Tags matching the text query
# Setup client
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
DataTagApi <- IntrinioSDK::DataTagApi$new(client)
# Required params
query <- "revenue"
# Optional params
opts <- list(
page_size = 100
)
response <- DataTagApi$search_data_tags(query, opts)
print(response)
print(response$content)
Name | Type | Description | Notes |
---|---|---|---|
query | Character | ||
page_size | Integer | The number of results to return | [optional] [default to 100] |