This is an old revision of the document!
The official website and add-ons store have a public API currently offering read-only access to resources using REST and JSON.
Make a HTTP GET request for the following URLs:
Endpoint | Pagination | Search Filter |
---|---|---|
https://www.litecart.net/api/releases | Yes | Yes |
https://www.litecart.net/api/releases/{id} | - | - |
https://www.litecart.net/api/addons | Yes | Yes |
https://www.litecart.net/api/addons/{id} | - | - |
Endpoints supporting pagination will return a header like the following:
Link: <https://...?page=1>; rel=first, <https://...?page=1>; rel=prev, <https://...?page=2>; rel=next,<https://...?page=2>; rel=last
You can extract a link using regular expressions:
preg_match('#<(.*?)> rel=next#', $headers, $matches);
Endpoints supporting search filter uses a HTTP GET query parameter like the following:
https://...?query=my+search+string