Our Search API for Stocks, ETFs, Mutual Funds and Indices is a one of the best ways to quickly search assets either by code or by company or asset name. Our search engine automatically understands if there asset name or code and prioritize the search fields accordingly. The search engine has several parameters for result ordering. We take into account not only search query but also market capitalization and the average trading volume for the past period.

Basic URL to access: https://eodhistoricaldata.com/api/search/{query_string}.

Parameters

  • {query_string}: String. REQUIRED. Could be any string with ticker code or company name. Examples: ‘AAPL’, ‘Apple Inc’, ‘Apple’. There are no limitations for a minimum number of symbols in the query string.
  • limit: Number. OPTIONAL. The number of results should be returned with the query. Default value: 15. If the limit is higher than 50, it will be automatically reset to 50.
  • api_token: String. REQUIRED. Your api_token to access the API. You will get it after registration.

Demo API key does not work for search API, but you can get access to the stock search by registering in our service and getting the free API key.

Examples

An example of using Stock Search API to get all tickers with AAPL code

https://eodhistoricaldata.com/api/search/AAPL?api_token=YOUR_API_TOKEN

An example of using Stock Search API to get all tickers with company name ‘Apple Inc’

https://eodhistoricaldata.com/api/search/Apple Inc?api_token=YOUR_API_TOKEN

An example of using Stock Search API to get all tickers with AAPL code and limit only 1 result

https://eodhistoricaldata.com/api/search/Apple Inc?api_token=YOUR_API_TOKEN&limit=1

Output

The output of Stock Search API available only in JSON format now, here you can see an example

Stock Search API Output Example

Each request to the Search Stocks API consumes 1 API call from daily API limit.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.