The McDonalds Corporation Stock Data Fetch API allows users to programmatically retrieve McDonald’s (MCD) historical stock data, including daily opening and closing prices, highs, lows, adjusted close values, and trading volumes. The API is designed for financial analysts, developers, and data scientists who need reliable stock performance data for research, backtesting trading strategies, financial modeling, or visualization.
[
{
"years": [
2025,
2024,
2023,
2022,
2021,
2020,
2019,
2018,
2017,
2016,
2015,
2014,
2013,
2012,
2011,
2010,
2009,
2008,
2007,
2006,
2005,
2004,
2003,
2002,
2001,
2000,
1999,
1998,
1997,
1996,
1995,
1994,
1993,
1992,
1991,
1990,
1989,
1988,
1987,
1986,
1985,
1984,
1983,
1982,
1981,
1980,
1979,
1978,
1977,
1976,
1975,
1974,
1973,
1972,
1971,
1970,
1969,
1968,
1967
]
}
]
curl --location --request POST 'https://zylalabs.com/api/10109/mcdonalds+corporation+stock+data+fetch+api/19314/fetch+years+available+in+dataset' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"Year": 1998,
"Average Stock Price": 16.4655,
"Year Open": 12.5852,
"Year High": 20.8109,
"Year Low": 11.9906,
"Year Close": 20.4123,
"Annual % Change": 61.77
}
]
curl --location --request POST 'https://zylalabs.com/api/10109/mcdonalds+corporation+stock+data+fetch+api/19321/get+mcdonalds+corporation+price+by+year' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"year":"Required"}'
[
{
"Date": "Jun 3, 2024",
"Open": 257.93,
"High": 259.95,
"Low": 255.6,
"Close": 259.75,
"Adj Close": 252.36,
"Volume": 4342800
},
[]
]
curl --location --request POST 'https://zylalabs.com/api/10109/mcdonalds+corporation+stock+data+fetch+api/19325/get+mcdonald%27s+historical+stock+price+by+date' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"date":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The McDonalds Corporation Stock Data Fetch API provides historical stock data including daily opening and closing prices, highs, lows, adjusted close values, and trading volumes for McDonald's (MCD).
The data returned by the McDonalds Corporation Stock Data Fetch API is typically in JSON format, allowing for easy integration and manipulation within various programming environments.
The McDonalds Corporation Stock Data Fetch API can be used for various applications such as financial analysis, backtesting trading strategies, financial modeling, and data visualization to assess McDonald's stock performance.
The API's output includes specific data fields such as date, opening price, closing price, high price, low price, adjusted close value, and trading volume for each trading day.
Developers can integrate the McDonalds Corporation Stock Data Fetch API by making HTTP requests to retrieve historical stock data, which can then be processed and displayed in their applications for analysis or visualization.
This endpoint returns a list of years for which McDonald's Corporation stock data is available. The response includes an array of years, allowing users to identify the range of historical data they can query.
The response includes fields such as Year, Average Stock Price, Year Open, Year High, Year Low, Year Close, and Annual % Change, providing a comprehensive overview of stock performance for the specified year.
The response is structured as an array of objects, each containing fields like Date, Open, High, Low, Close, Adj Close, and Volume. This organization allows users to easily access daily stock performance metrics.
Users must provide a specific date as a parameter to retrieve historical stock data. The date should be within the range of September 9, 2020, to September 9, 2025, to ensure valid results.
Users can analyze the returned data to identify trends, calculate returns, or backtest trading strategies. For example, they can compare daily closing prices to assess volatility or use annual data for long-term investment analysis.
Typical use cases include financial analysis, investment research, backtesting trading strategies, and creating visualizations of stock performance over time, enabling users to make informed investment decisions.
The API sources its data from reliable financial markets and institutions, ensuring that the stock prices and trading volumes reflect accurate market conditions. Regular updates and quality checks help maintain data integrity.
Users should verify their input parameters, such as date or year, to ensure they fall within the available dataset. If results are still empty, it may indicate no trading activity on that date or year, which is common during weekends or holidays.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
7,065ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
57ms
Service Level:
100%
Response Time:
4,068ms
Service Level:
100%
Response Time:
73ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
4,498ms
Service Level:
100%
Response Time:
56ms
Service Level:
100%
Response Time:
6,134ms
Service Level:
100%
Response Time:
2,089ms
Service Level:
100%
Response Time:
395ms
Service Level:
100%
Response Time:
6,035ms
Service Level:
100%
Response Time:
2,040ms
Service Level:
100%
Response Time:
11,796ms
Service Level:
100%
Response Time:
2,489ms
Service Level:
100%
Response Time:
6,687ms
Service Level:
100%
Response Time:
2,754ms
Service Level:
100%
Response Time:
5,793ms
Service Level:
100%
Response Time:
5,868ms