Is there an API that will list out all Windows Versions with Build and OS Version Information?

I would like to see if there is an api that will return something like the following which will list out all windows versions and information? Support and end of life information would be nice to have as well.

Release

Build

Version

Windows 10

19044

21H2

Windows 10

19045

22H2

Hello! My name is Mostafa, and I will try my best to assist you with this so that you find a satisfactory solution.

Yes, there is an API called the "Windows Release Health API" provided by Microsoft that can provide information about Windows versions, including build and OS version information, as well as support and end-of-life information. You will need to register and obtain an API key and then make GET requests to the endpoint: https://api.health.microsoft.com/api/v1/windows... to get the required information in JSON format.

https://learn.microsoft.com/en-us/windows/win32...


In case of additional questions, reach out back to me, and I will be happy to help and try my best to resolve your issue. Thank you.

Best,
Mostafa

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I am unable to find any information about that endpoint. Would you be able to provide a direct link to any documentation? Also how does one go about registering and obtaining an api key for that endpoint? Is there a specific role needed for access?

Thanks,

Erick

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I apologize for the confusion in my previous response.

To access the Windows Update API, you must obtain an Azure Active Directory (AAD) authentication token and include it in your API requests. To obtain an AAD token, you will need to register an Azure AD application and obtain its client ID and client secret.

To register an Azure AD application, follow these steps:

1. Sign in to the Azure portal at https://portal.azure.com/
2. Navigate to Azure Active Directory > App registrations
3. Click on "New registration" and fill in the required fields
4. Once you have registered the application, note down the client ID and client secret
To obtain an AAD authentication token, you can use the following API endpoint:

https://login.microsoftonline.com/{tenant_id}/oauth2/token

Replace {tenant_id} with your Azure AD tenant ID.

To retrieve information about Windows updates, you can use the following API endpoint:

https://api.update.microsoft.com/v6.0

You can find more information about the Windows Update API and how to use it in the Microsoft documentation provided above.

I hope that helps.

Best,
Mostafa

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Mostafa,

I tried to search for the "Windows Release Health API" in the link you shared above, but was unable to find the API or the list of it's methods, and only could find the list of all existing APIs of Microsoft apparently. Can you provide the actual link for the "Windows Release Health API" documentation please?

Thank you,

Ricardo.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I needed the same thing to track release dates and build versions, but couldn't find anything. Here's a python script I wrote to scrape the data from the Win10 and Win11 release information pages.

import requests
import re
from bs4 import BeautifulSoup
def get_win_build_info(os_version, url):
    response = requests.get(url)
    soup = BeautifulSoup(response.text, "html.parser")
    # Scrape the release names
    release_names = []
    for version in soup.find_all('strong'):
        if "Version" in version.contents[0] and version.contents[0] not in release_names:
            release_names.append(version.contents[0])
    # Scrape the release data and match them with their corresponding release names
    i = 0
    release_list = []
    tables = soup.find_all("table",class_="cells-centered")
    for table in tables:
        rows = table.find_all('tr')
        for row in rows:
            row_dict = {
                'os_major_version' : os_version,
                'feature_release_version': release_names[i].split(' ')[1],
                'release_full_name': release_names[i]
            }
            cols = row.find_all('td')
            for data in cols:
                if re.match('\d+-\d+-\d+', data.text):
                    row_dict['release_date'] = data.text
                elif re.match('\d+\.\d+', data.text):
                    row_dict['build_number'] = data.text
                elif re.match('KB\d+', data.text):
                    row_dict['kb'] = data.text
            if 'release_date' in row_dict:
                release_list.append(row_dict)
        i = i + 1
   
    return release_list
def main():
    win10_builds = get_win_build_info("Windows 10", 'https://learn.microsoft.com/en-us/windows/release-health/release-information')
    for build in win10_builds:
        print(build)
    win11_builds = get_win_build_info("Windows 11", 'https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information')
    for build in win11_builds:
        print(build)
if __name__ == '__main__':
    main()

 

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Mostafa,

Thanks for sharing on this sobject, I have the same data need as the person initiating this post.

I tried access the API URL in your reply above but it's unreachable. Is the link correct?
Let me ask, is this differnt to the Microfost Graph API?
In the "Microfost Graph API" dcumentation there is a section about the "Devices and Apps Management" that mentions about Windows Udates but I couldn't find mention of Windows OS end of support dates. Could you please comment?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 18, 2024 Views 1,773 Applies to: