API documentation
Automate downloads and manage your files with a simple HTTP API. Parameters can be sent via GET or POST.
You need an account to get an API key. Sign up free
Get a direct download link
GET / POST/api/download.php
Premium only. Returns a plain-text direct link to the file, or an empty response if the key is invalid, the account is not Premium or the file does not exist.
Parameters
- api_key
- Your API key
- file_id
- The file ID from the download link, e.g. ABCD1234
Example request
https://www.extmatrix.com/v2/api/download.php?api_key=YOUR_API_KEY&file_id=ABCD1234
Example response
https://s8c.extmatrix.com/get/ABCD1234/…/file.zip
List your files
GET / POST/api/getlinks.php
Returns a JSON array of your files (newest first).
Parameters
- api_key
- Your API key
- day
- Optional. Only files uploaded in the last N days
- filename_like
- Optional. Only files whose name contains this text
- id / id[]
- Optional. Only these file record IDs
Example request
https://www.extmatrix.com/v2/api/getlinks.php?api_key=YOUR_API_KEY&day=7
Example response
[{"id":"123","last_update":1790000000,"link":"https:\/\/tma.cx\/…","available":"1","file_name":"file.zip","file_size":"1048576","downloads":"3","upload_date":"1789990000"}]Lock or unlock a file
GET / POST/api/getlinks.php
Locked files can only be downloaded by Premium members. Works only on your own files.
Parameters
- api_key
- Your API key
- task
- lock | unlock
- id
- The file record ID (the "id" field from the list)
Example request
https://www.extmatrix.com/v2/api/getlinks.php?api_key=YOUR_API_KEY&task=lock&id=123
Example response
alert("locked succefully");Get links by record ID
GET / POST/api/getlink.php
Returns download links for your files. Separate multiple IDs with "|". Add noraw=1 to get short links.
Parameters
- api_key
- Your API key
- id
- File record IDs, e.g. 123|124
- noraw
- Optional. 1 = short links (plus the full links)
Example request
https://www.extmatrix.com/v2/api/getlink.php?api_key=YOUR_API_KEY&id=123|124
Example response
{"2":{"id":"123","last_update":1790000000,"link":"https:\/\/www.extmatrix.com\/files\/ABCD1234\/file.zip.html"}}An invalid API key returns the text "invalid api key".