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(tag=tag, type=type, parent=parent, statement_code=statement_code, fs_template=fs_template, page_size=page_size, next_page=next_page)
Returns all Data Tags. Returns Data Tags matching parameters when specified.
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
tag = ''
type = ''
parent = ''
statement_code = 'income_statement'
fs_template = 'industrial'
page_size = 100
next_page = ''
response = intrinio.DataTagApi().get_all_data_tags(tag=tag, type=type, parent=parent, statement_code=statement_code, fs_template=fs_template, page_size=page_size, next_page=next_page)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
tag | str | Tag | [optional] |
type | str | Type | [optional] |
parent | str | ID of tag parent | [optional] |
statement_code | str | Statement Code | [optional] |
fs_template | str | Template | [optional] [default to industrial] |
page_size | int | The number of results to return | [optional] [default to 100] |
next_page | str | 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
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'marketcap'
response = intrinio.DataTagApi().get_data_tag_by_id(identifier)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
identifier | str | The Intrinio ID or the code-name of the Data Tag |
View Intrinio API Documentation
ApiResponseDataTagsSearch search_data_tags(query, page_size=page_size)
Searches for Data Tags matching the text query
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
query = 'revenue'
page_size = 100
response = intrinio.DataTagApi().search_data_tags(query, page_size=page_size)
print(response)
# Note: For a Pandas DataFrame, import Pandas and use pd.DataFrame(response.property_name_dict)
Name | Type | Description | Notes |
---|---|---|---|
query | str | ||
page_size | int | The number of results to return | [optional] [default to 100] |