Mod Archive Forums

Website => Help & Support => API Support => Topic started by: Saga Musix on June 06, 2016, 23:52:36

Title: API News
Post by: Saga Musix on June 06, 2016, 23:52:36
7 June 2016
Most API functions now also can be filtered by channel count. The new API parameter "channels" is documented here:
https://modarchive.org/index.php?xml-api-usage-channels

The API entry point now also sets the Access-Control-Allow-Origin header, so it is now theoretically possible to use the API through frameworks / languages / etc. that employ Same Origin Policy rules.
Title: Re: API News
Post by: m0d on June 12, 2016, 06:53:06
Cool
Title: Re: API News
Post by: Saga Musix on August 25, 2016, 13:09:52
25 August 2016
Sometimes, duplicate modules are merged to only keep one copy of the module. Previously, when trying to access the old module by its ID, this would return an error. Starting from today, there will be a <redirect>$new_module_id</redirect> field present in the XML output of the API in addition to this error. For clients not supporting this new field yet, nothing changes (apart from the error message). But if you want to update your client, you can now check for the presence of a redirect field and read the new module ID from it. Note that only the view_by_moduleid action is affected by this - that is, module searched new return old, merged modules.