Envato new api to get products from the marketplace
Envato has recently introduced a new API to retrieve products from their marketplace. Here's an overview of the new API and how to use it:
New API Endpoint:
The new API endpoint is https://api.envato.com/v3/marketplace/products
Authentication:
To use the new API, you'll need to authenticate using an API key. You can obtain an API key by creating an account on the Envato API dashboard and following the instructions to generate a new key.
Request Parameters:
The API accepts the following request parameters:
page
: The page number to retrieve (default is 1)per_page
: The number of products to retrieve per page (default is 20)sort
: The sorting order (default iscreated_at
descending)filter
: A filter to apply to the products (e.g.category:theme
,author:username
, etc.)
Response:
The API returns a JSON response containing an array of product objects, each with the following properties:
id
: The product IDtitle
: The product titledescription
: The product descriptionauthor
: The author's usernamecategory
: The product categoryprice
: The product pricecreated_at
: The product creation dateupdated_at
: The product update date
Example Request:
Here's an example request using the curl
command:
curl -X GET \
https://api.envato.com/v3/marketplace/products \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d 'page=1&per_page=20&sort=created_at&filter=category:theme'
Replace YOUR_API_KEY
with your actual API key.
Note:
- The new API is still in beta and may change without notice.
- The API has rate limits to prevent abuse. You can check the rate limits on the Envato API dashboard.
- The API returns a limited set of product information. If you need more information, you may need to use the old API or contact Envato support.