# Intrinio::ESGApi All URIs are relative to *https://api-v2.intrinio.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_esg_companies**](ESGApi.md#get_esg_companies) | **GET** /esg/companies | ESG Companies [**get_esg_company_ratings**](ESGApi.md#get_esg_company_ratings) | **GET** /esg/{identifier} | ESG Company Ratings History [**get_esg_latest**](ESGApi.md#get_esg_latest) | **GET** /esg | ESG Latest [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio::ESGApi) [//]: # (METHOD:get_esg_companies) [//]: # (RETURN_TYPE:Intrinio::ApiResponseESGCompanies) [//]: # (RETURN_TYPE_KIND:object) [//]: # (RETURN_TYPE_DOC:ApiResponseESGCompanies.md) [//]: # (OPERATION:get_esg_companies_v2) [//]: # (ENDPOINT:/esg/companies) [//]: # (DOCUMENT_LINK:ESGApi.md#get_esg_companies) ## **get_esg_companies** [**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_esg_companies_v2) [//]: # (START_OVERVIEW) > ApiResponseESGCompanies get_esg_companies(opts) #### ESG Companies [//]: # (END_OVERVIEW) ### Example [//]: # (START_CODE_EXAMPLE) ```ruby # 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 eSG_api = Intrinio::ESGApi.new opts = { country: "USA", page_size: 100, next_page: nil } result = eSG_api.get_esg_companies(opts) pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) ### Parameters [//]: # (START_PARAMETERS) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **country** | String| | [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]   [//]: # (END_PARAMETERS) ### Return type [**ApiResponseESGCompanies**](ApiResponseESGCompanies.md) [//]: # (END_OPERATION) [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio::ESGApi) [//]: # (METHOD:get_esg_company_ratings) [//]: # (RETURN_TYPE:Intrinio::ApiResponseESGCompanyRatingHistory) [//]: # (RETURN_TYPE_KIND:object) [//]: # (RETURN_TYPE_DOC:ApiResponseESGCompanyRatingHistory.md) [//]: # (OPERATION:get_esg_company_ratings_v2) [//]: # (ENDPOINT:/esg/{identifier}) [//]: # (DOCUMENT_LINK:ESGApi.md#get_esg_company_ratings) ## **get_esg_company_ratings** [**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_esg_company_ratings_v2) [//]: # (START_OVERVIEW) > ApiResponseESGCompanyRatingHistory get_esg_company_ratings(identifier, opts) #### ESG Company Ratings History [//]: # (END_OVERVIEW) ### Example [//]: # (START_CODE_EXAMPLE) ```ruby # 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 eSG_api = Intrinio::ESGApi.new identifier = "AAPL" opts = { page_size: 100, next_page: nil } result = eSG_api.get_esg_company_ratings(identifier, opts) pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) ### Parameters [//]: # (START_PARAMETERS) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **identifier** | String| ISIN, Intrinio ID, or Ticker |   **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]   [//]: # (END_PARAMETERS) ### Return type [**ApiResponseESGCompanyRatingHistory**](ApiResponseESGCompanyRatingHistory.md) [//]: # (END_OPERATION) [//]: # (START_OPERATION) [//]: # (CLASS:Intrinio::ESGApi) [//]: # (METHOD:get_esg_latest) [//]: # (RETURN_TYPE:Intrinio::ApiResponseESGLatest) [//]: # (RETURN_TYPE_KIND:object) [//]: # (RETURN_TYPE_DOC:ApiResponseESGLatest.md) [//]: # (OPERATION:get_esg_latest_v2) [//]: # (ENDPOINT:/esg) [//]: # (DOCUMENT_LINK:ESGApi.md#get_esg_latest) ## **get_esg_latest** [**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_esg_latest_v2) [//]: # (START_OVERVIEW) > ApiResponseESGLatest get_esg_latest(opts) #### ESG Latest [//]: # (END_OVERVIEW) ### Example [//]: # (START_CODE_EXAMPLE) ```ruby # 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 eSG_api = Intrinio::ESGApi.new opts = { country: "USA", country2: "USA", page_size: 100, next_page: nil } result = eSG_api.get_esg_latest(opts) pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) ### Parameters [//]: # (START_PARAMETERS) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **country** | String| | [optional]   **country2** | String| | [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]   [//]: # (END_PARAMETERS) ### Return type [**ApiResponseESGLatest**](ApiResponseESGLatest.md) [//]: # (END_OPERATION)