All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
get_all_filings | GET /filings | All Filings |
get_all_notes | GET /filings/notes | All Filing Notes |
get_filing_answers | GET /filings/{identifier}/answers | Filing Answers |
get_filing_by_id | GET /filings/{id} | Lookup Filing |
get_filing_fundamentals | GET /filings/{identifier}/fundamentals | All Fundamentals by Filing |
get_filing_html | GET /filings/{identifier}/html | Filing Html |
get_filing_text | GET /filings/{identifier}/text | Filing Text |
get_note | GET /filings/notes/{identifier} | Filing Note by ID |
get_note_html | GET /filings/notes/{identifier}/html | Filing Note HTML |
get_note_text | GET /filings/notes/{identifier}/text | Filing Note Text |
search_notes | GET /filings/notes/search | Search Filing Notes |
View Intrinio API Documentation
ApiResponseFilings get_all_filings(opts)
Returns pertinent filing reference data for a specific company filing or latest filings for all companies. Useful for tracking the latest filings submitted and updating your database accordingly with the new information.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
opts = {
company: "AAPL",
report_type: "10-Q",
start_date: Date.parse("2015-01-01"),
end_date: nil,
industry_category: nil,
industry_group: nil,
thea_enabled: nil,
earnings_release: nil,
page_size: 100,
next_page: nil
}
result = filing_api.get_all_filings(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
company | String | Filings for the given `company` identifier (ticker, CIK, LEI, Intrinio ID) | [optional] |
report_type | String | Filter by report type. Separate values with commas to return multiple The filing <a href="https://docs.intrinio.com/documentation/sec_filing_report_types\" target="_blank">report types</a>. | [optional] |
start_date | Date | Filed on or after the given date | [optional] |
end_date | Date | Filed before or after the given date | [optional] |
industry_category | String | Return companies in the given industry category | [optional] |
industry_group | String | Return companies in the given industry group | [optional] |
thea_enabled | BOOLEAN | Return filings that have been read by our Thea NLP and are ready for our answers endpoint | [optional] |
earnings_release | BOOLEAN | Return filings that have been tagged as having Results of Operations and Financial Conditions | [optional] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ApiResponseFilingNotes get_all_notes(opts)
Returns a list of the latest XBRL filing note sections from the SEC 10-K and 10-Q statements. The returned Intrinio XBRL filing note ID can then be utilized with the “Filing Note by ID” endpoint to retrieve the contents of the note in HTML or text format.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
opts = {
company: "AAPL",
report_type: "10-Q",
filing_start_date: nil,
filing_end_date: nil,
period_ended_start_date: nil,
period_ended_end_date: nil,
page_size: 100,
next_page: nil
}
result = filing_api.get_all_notes(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
company | String | A Company identifier (Ticker, CIK, LEI, Intrinio ID) | [optional] |
report_type | String | Notes contained in filings that match the given <a href="https://docs.intrinio.com/documentation/sec_filing_report_types\" target="_blank">report type</a> | [optional] |
filing_start_date | Date | Limit search to filings on or after this date | [optional] |
filing_end_date | Date | Limit search to filings on or before this date | [optional] |
period_ended_start_date | Date | Limit search to filings with a period end date on or after this date | [optional] |
period_ended_end_date | Date | Limit search to filings with a period end date on or before this date | [optional] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ApiResponseFilingAnswers get_filing_answers(identifier, query)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "fil_B73xBG"
query = "What do they believe in?"
result = filing_api.get_filing_answers(identifier, query)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Filing identifier | |
query | String | The query to ask the Thea API |
View Intrinio API Documentation
Filing get_filing_by_id(id)
Returns the Filing with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
id = "fil_7Kn2P6"
result = filing_api.get_filing_by_id(id)
pp result
Name | Type | Description | Notes |
---|---|---|---|
id | String | The Intrinio ID of the Filing |
View Intrinio API Documentation
ApiResponseFilingFundamentals get_filing_fundamentals(identifier, opts)
Returns a list of fundamentals with unique fundamental IDs associated with a particular Intrinio Filing ID
(if applicable) that have been updated or created as a result of a company`s latest SEC filing. Useful to ensure your database is up to date with the latest fundamentals.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "fil_B73xBG"
opts = {
statement_code: nil,
type: nil,
fiscal_year: nil,
fiscal_period: nil,
start_date: nil,
end_date: nil,
next_page: nil
}
result = filing_api.get_filing_fundamentals(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Filing identifier | |
statement_code | String | Filters fundamentals by statement code | [optional] |
type | String | Filters fundamentals by type | [optional] |
fiscal_year | Integer | Filters fundamentals by fiscal year | [optional] |
fiscal_period | String | Filters fundamentals by fiscal period | [optional] |
start_date | Date | Returns fundamentals on or after the given date | [optional] |
end_date | Date | Returns fundamentals on or before the given date | [optional] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
String get_filing_html(identifier)
Returns a SEC filing in HTML Format for a specified filing ID.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "fil_B73xBG"
result = filing_api.get_filing_html(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Filing identifier |
String
View Intrinio API Documentation
String get_filing_text(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "fil_B73xBG"
result = filing_api.get_filing_text(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Filing identifier |
String
View Intrinio API Documentation
FilingNote get_note(identifier, opts)
Returns the XBRL filing note contents in HTML or text format for a specified Intrinio XBRL filing note ID.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "xbn_ydK3QL"
opts = {
content_format: "text"
}
result = filing_api.get_note(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The Intrinio ID of the filing note | |
content_format | String | Returns content in html (as filed) or plain text | [optional] [default to text] |
View Intrinio API Documentation
String get_note_html(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "xbn_ydK3QL"
result = filing_api.get_note_html(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The Intrinio ID of the filing note |
String
View Intrinio API Documentation
String get_note_text(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
identifier = "xbn_ydK3QL"
result = filing_api.get_note_text(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The Intrinio ID of the filing note |
String
View Intrinio API Documentation
ApiResponseFilingNotesSearch search_notes(query, opts)
Search the XBRL note database and return a list of XBRL note sections containing text from the text query parameter passed through.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
filing_api = Intrinio::FilingApi.new
query = "inflation"
opts = {
filing_start_date: Date.parse("2018-07-15"),
filing_end_date: Date.parse("2018-11-30"),
page_size: 100
}
result = filing_api.search_notes(query, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
query | String | Search for notes that contain all or parts of this text | |
filing_start_date | Date | Limit search to filings on or after this date | [optional] |
filing_end_date | Date | Limit search to filings on or before this date | [optional] |
page_size | Integer | The number of results to return | [optional] [default to 100] |