HOOKSOUNDS REST API – Introduction
This RESTful API that allows data to be retrieved remotely in either a jSON or XML format. The API includes methods for retrieving info about store products, store customers, etc.
The API is accessed via the edd-api end point, like so:
By default, the API will return 10 results per page for ttracks queries.
If a query has 20 results, the first ten will be displayed by default, but then the second 10 can be accessed by adding &page=2 to the query string, like so:
You can change the number of results returned by using the number parameter. This example will return 25 results per page:
If you want to retrieve all results (no paging), set number to -1.
HOOKSOUNDS REST API – Products
The HOOKSOUNDS REST API provides access to product information via the /products/ endpoint. You may access multiple products or a single product.
A basic products query looks like this:
If you want to retrieve info for only a specific product, you can pass a product ID via the product parameter: