Today I used the Automic Downloads REST API to fetch the most recent version of the AWI, v24.2. (Note that I have omitted the required authorization header from the curl commands below.)
curl --location 'https://downloads.automic.com/api/downloads/v1?component_id=1409143059253&download_category_id=1570005424185&version_match=24.2.0&delivery_filter=Automic.Web.Interface'
This returned the following JSON body (omitting the web-user-group and help sections):
{
"download_category_id": "1570005424185",
"download_category_name": "Components",
"link": "https://downloads.automic.com/api/downloads/v1?download_category_id=1570005424185",
"component": [
{
"component_id": "1409143059253",
"component_name": "Automation.Engine",
"component_technical_name": "AE",
"link": "https://downloads.automic.com/api/downloads/v1?download_category_id=1570005424185&component_id=1409143059253",
"download_file": [
{
"filename": "Automation.Engine_Automic.Web.Interface_24_2_0+build.1724413462522.zip",
"delivery_id": "1600635055942",
"delivery_name": "Automic.Web.Interface",
"release_date": "2024-09-16",
"component_version_id": "1709818041789",
"filehash": "0xD48BE5C90DCBACE6B1405216DBC9F815",
"download_file_id": "1724354927919",
"product_version_id": "",
"component_name": "Automation.Engine",
"component_technical_name": "AE",
"component_version_name": "Automation.Engine 24.2.0",
"link": "https://downloads.automic.com/api/downloads/v1?download_file_id=1724354927919",
"download_link": "https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1724354927919"
}
]
}
]
}
I then tried to use the provided download_link to fetch the file with download_file_id 1724354927919.
curl -X GET https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1724354927919 -O -J
This resulted in an error message:
to download the file add the URL parameter action=get
I went to the Automic Downloads web site to see if it was impacted by the same problem.
The list of downloads for AWI v24.2 looks like this:
Note that the file name, file ID (1725356811811), and MD5 hash are different from the ones provided by the REST API.
I went back and tried to use the REST API to download the file with ID provided by the web page (1725356811811).
curl -X GET https://downloads.automic.com/api/downloads/v1?action=get&download_file_id=1725356811811 -O -J
This worked fine.
So there appear to be at least two problems:
- When asked for downloads for AWI v24.2, the REST API returns an invalid download_file_id, file_name, and download_link.
- When provided with an invalid download_file_id, the REST API returns a misleading error message.