Stocks API

Stocks API

With this API you will be able to check the latest rates for the stocks that you want. Intraday, daily, weekly, this is your API!

API description

About the API:

With Stocks API you will retrieve all the information related to any stock of your preference. This API will help you to gather all the latest rates for the stocks as well as additional information.

What your API receives and what your API provides (input/output)?

Our API will receive the stock symbol (ex: AAPL) and, depending on the endpoint, will retrieve either intraday information, daily information, etc. You will be receiving Open rates, close rates, highs, and lows, as well as volume traded. Also, if you do not know the name of a particular stock, you can find it with the name of the company on our "Search Symbol Endpoint".

What are the most common uses cases of this API?

This API is excellent for those developers who want to build a price tracking platform, you will have all your data refreshed, and also you will have access to data 20 years in the past. This is excellent for chart creation and market analysis. 

Are there any limitations with your plans?

Besides API call limitations per month:

  • Free Plan: 5 requests per minute. 
  • Basic Plan: 75 requests per minute. 
  • Pro Plan: 300 requests per minute. 
  • Pro+ Plan: 1200 requests per minute.

API Documentation

Endpoints


Receive the latest rates of the equity you select. You can select and determine if you want to check the rates between 1min, 5min, 15min, 30min or 60min windows. 

To be more specific, let's say that you want to check the latest rates for AAPL in a range of 15min between. 

You will be receiving the open price of that time series, the closing price, and the high and low.

 

Output JSON response example:

{"Meta Data":{6 items

"1. Information":"Intraday (15min) open, high, low, close prices and volume"

"2. Symbol":"AAPL"

"3. Last Refreshed":"2022-07-01 20:00:00"

"4. Interval":"15min"

"5. Output Size":"Compact"

"6. Time Zone":"US/Eastern"
}

"Time Series (15min)":{
100 items

"2022-07-01 20:00:00":{5 items

"1. open":"138.9600"

"2. high":"139.0300"

"3. low":"138.9600"

"4. close":"139.0200"

"5. volume":"9012"
}

"2022-07-01 19:45:00":{
5 items
"1. open":"138.9400"

"2. high":"138.9600"

"3. low":"138.9400"

"4. close":"138.9600"

"5. volume":"1013"


"2022-07-01 19:30:00":{5 items

"1. open":"138.9300"

"2. high":"138.9700"

"3. low":"138.9300"

"4. close":"138.9500"

"5. volume":"1870"
}

"2022-07-01 19:15:00":{5 items

"1. open":"138.9600"

"2. high":"138.9800"

"3. low":"138.9300"

"4. close":"138.9600"

"5. volume":"3401"
}

 



                                                                            
GET https://zylalabs.com/api/33/stocks+api/97/intraday+information
                                                                            
                                                                        
Intraday Information - Endpoint Features
Object Description
interval [Required] Time interval between two consecutive data points in the time series. The following values are supported: 1min, 5min, 15min, 30min, 60min
symbol [Required] The equity of your choice. Ex: AAPL
datatype [Optional] By default, datatype=json. Strings json and csv are accepted with the following specifications: json returns the intraday time series in JSON format; csv returns the time series as a CSV (comma separated value) file.

With the Daily TimeSeries endpoint, you will be able to retrieve (date, daily open, daily high, daily low, daily close, daily volume) of the global equity specified, covering 20+ years of historical data.

Check the example with AAPL equity. 

 

Example JSON output response:

{
  "Meta Data": {
    "1. Information": "Daily Prices (open, high, low, close) and Volumes",
    "2. Symbol": "AAPL",
    "3. Last Refreshed": "2022-07-01",
    "4. Output Size": "Compact",
    "5. Time Zone": "US/Eastern"
  },
  "Time Series (Daily)": {
    "2022-07-01": {
      "1. open": "136.0400",
      "2. high": "139.0400",
      "3. low": "135.6600",
      "4. close": "138.9300",
      "5. volume": "71051552"
    },
    "2022-06-30": {
      "1. open": "137.2500",
      "2. high": "138.3700",
      "3. low": "133.7737",
      "4. close": "136.7200",
      "5. volume": "98964467"
    },
    "2022-06-29": {
      "1. open": "137.4600",
      "2. high": "140.6700",
      "3. low": "136.6700",
      "4. close": "139.2300",
      "5. volume": "66242411"
    }



                                                                            
GET https://zylalabs.com/api/33/stocks+api/98/daily+timeseries
                                                                            
                                                                        
Daily Timeseries - Endpoint Features
Object Description
symbol [Required] The name of the equity of your choice. Ex: AAPL
outputsize [Optional] Strings "compact" and "full" are accepted with the following specifications: compact returns only the latest 100 data points; full returns the full-length time series of 20+ years of historical data. The \\"compact\\" option is recommended if you would like to reduce the data size of each API call.
datatype [Optional] Strings "json" and "csv" are accepted with the following specifications: json returns the daily time series in JSON format; csv returns the time series as a CSV (comma separated value) file.

This endpoint returns weekly time series (last trading day of each week, weekly open, weekly high, weekly low, weekly close, weekly volume) of the global equity specified, covering 20+ years of historical data.

 

Endpoint JSON example response:

{
  "Meta Data": {
    "1. Information": "Weekly Prices (open, high, low, close) and Volumes",
    "2. Symbol": "AAPL",
    "3. Last Refreshed": "2022-07-01",
    "4. Time Zone": "US/Eastern"
  },
  "Weekly Time Series": {
    "2022-07-01": {
      "1. open": "142.6950",
      "2. high": "143.4900",
      "3. low": "133.7737",
      "4. close": "138.9300",
      "5. volume": "373781666"
    },
    "2022-06-24": {
      "1. open": "133.4200",
      "2. high": "141.9100",
      "3. low": "133.3200",
      "4. close": "141.6600",
      "5. volume": "315960327"
    },
    "2022-06-17": {
      "1. open": "132.8700",
      "2. high": "137.3400",
      "3. low": "129.0400",
      "4. close": "131.5600",
      "5. volume": "541006195"
    },
    "2022-06-10": {
      "1. open": "147.0300",
      "2. high": "149.8697",
      "3. low": "137.0600",
      "4. close": "137.1300",
      "5. volume": "354396344"
    }



                                                                            
GET https://zylalabs.com/api/33/stocks+api/99/weekly+timeseries
                                                                            
                                                                        
Weekly TimeSeries - Endpoint Features
Object Description
symbol [Required] The name of the equity of your choice. Ex: AAPL, MSFT.
datatype [Optional] By default, datatype=json. Strings "json" and "csv" are accepted with the following specifications: json returns the intraday time series in JSON format; csv returns the time series as a CSV (comma separated value) file.

With this endpoint you will be able to return monthly time series (last trading day of each month, monthly open, monthly high, monthly low, monthly close, monthly volume) of the global equity specified, covering 20+ years of historical data.

 

Example JSON output example: 

{
  "Meta Data": {
    "1. Information": "Monthly Prices (open, high, low, close) and Volumes",
    "2. Symbol": "AAPL",
    "3. Last Refreshed": "2022-07-01",
    "4. Time Zone": "US/Eastern"
  },
  "Monthly Time Series": {
    "2022-07-01": {
      "1. open": "136.0400",
      "2. high": "139.0400",
      "3. low": "135.6600",
      "4. close": "138.9300",
      "5. volume": "71051552"
    },
    "2022-06-30": {
      "1. open": "149.9000",
      "2. high": "151.7400",
      "3. low": "129.0400",
      "4. close": "136.7200",
      "5. volume": "1749297959"
    },
    "2022-05-31": {
      "1. open": "156.7100",
      "2. high": "166.4800",
      "3. low": "132.6100",
      "4. close": "148.8400",
      "5. volume": "2400305601"
    },
    "2022-04-29": {
      "1. open": "174.0300",
      "2. high": "178.4900",
      "3. low": "155.3800",
      "4. close": "157.6500",
      "5. volume": "1683547838"
    },
    "2022-03-31": {
      "1. open": "164.6950",
      "2. high": "179.6100",
      "3. low": "150.1000",
      "4. close": "174.6100",
      "5. volume": "2171827429"
    }



                                                                            
GET https://zylalabs.com/api/33/stocks+api/100/monthly+timeseries
                                                                            
                                                                        
Monthly TimeSeries - Endpoint Features
Object Description
symbol [Required] The equity of your choice. EX: AAPL, MSFT.
datatype [Optional] By default, datatype=json. Strings "json" and "csv" are accepted with the following specifications: json returns the intraday time series in JSON format; csv returns the time series as a CSV (comma separated value) file.

If you are looking for some specific symbols or companies, the Search Endpoint will help you out. It will return the best-matching symbols and market information based on the keyword you choose. The search results also contain match scores that provide you with the full flexibility to develop your own search and filtering logic.

What was the symbol for Apple stocks? Amazon? Find out with this endpoint. 

 

Example JSON output response: 

{
  "bestMatches": [
    {
      "1. symbol": "AMZN",
      "2. name": "Amazon.com Inc",
      "3. type": "Equity",
      "4. region": "United States",
      "5. marketOpen": "09:30",
      "6. marketClose": "16:00",
      "7. timezone": "UTC-04",
      "8. currency": "USD",
      "9. matchScore": "0.8000"
    },
    {
      "1. symbol": "AMZ.DEX",
      "2. name": "Amazon.com Inc",
      "3. type": "Equity",
      "4. region": "XETRA",
      "5. marketOpen": "08:00",
      "6. marketClose": "20:00",
      "7. timezone": "UTC+02",
      "8. currency": "EUR",
      "9. matchScore": "0.6000"
    },
    {
      "1. symbol": "AMZ.FRK",
      "2. name": "Amazon.com Inc",
      "3. type": "Equity",
      "4. region": "Frankfurt",
      "5. marketOpen": "08:00",
      "6. marketClose": "20:00",
      "7. timezone": "UTC+02",
      "8. currency": "EUR",
      "9. matchScore": "0.6000"
    }



                                                                            
GET https://zylalabs.com/api/33/stocks+api/101/search+symbol+endpoint
                                                                            
                                                                        
Search Symbol Endpoint - Endpoint Features
Object Description
keywords [Required] A text string. You can use the name of the company you want to check stocks from. Ex: amazon.
datatype [Optional] Strings "json" and "csv" are accepted with the following specifications: json returns the search results in JSON format; csv returns the search results as a CSV (comma separated value) file.

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Stocks API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🧙Free
$0.00 / Mo

  • 1,000 Requests / Month
💫Basic
$49.99 / Mo

  • 100,000 Requests / Month
⚡Pro
$99.99 / Mo

  • 500,000 Requests / Month
✨Plus
$199.99 / Mo

  • 1,000,000 Requests / Month
🚀 Enterprise
Custom quote

Need more? We offer unlimited API calls, Request Quote


Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

API Provider: SoftDev

Useful links:


Category:


Tags: