LiteCart Public API

The official website and add-ons store have a public API currently offering read-only access to resources using REST and JSON.

Endpoint

https://www.litecart.net/api{/methodname}

Methods

The supported methods and their parameters are as following:

GET /releases?limit=10

GET /releases/{versionnumber}

GET /addons?query=my+search+string&limit=10

GET /addons/{id}

Pagination

Endpoints supporting pagination will return a header like the following:

Link: https://...?page=2; rel=next,https://...?page=9; rel=last

You can extract a pagination link using regular expressions:

    if (preg_match('#<(.*?)>; rel="?next"?#m', $headers, $matches)) {
      $next_link = $matches[1];
    }

Artikelbesonderhede

Geskep deur litecart op 23 Jul. 2022

Laas geredigeer {time} gelede deur tim

Hersienings

Onlangs geredigeerde artikels