list-purchases API filter_by Wordpress

I’m reaching out to request a small but impactful improvement to the Envato Market Purchases API (/v3/market/buyer/list-purchases).

Currently, the API supports filtering using the filter_by parameter with values like:

  • wordpress-themes
  • wordpress-plugins

If I remove the filter_by it returns Themes/Plugins Along with other purchases

  • WordPress themes
  • WordPress plugins
  • Videos (VideoHive)
  • Graphics (GraphicRiver)
  • Audio (AudioJungle)
  • Logos, templates, fonts, etc.

However, there’s no way to retrieve both themes and plugins in a single request. As a result, we are required to make two separate API calls per user, which significantly increases API usage and risks hitting rate limits, especially when working with thousands of Envato accounts.

Feature Request:

Introduce a new filter value:

  • filter_by=wordpress: This should include both wordpress-themes and wordpress-plugins in a single response.
    OR
  • filter_by[]=wordpress-themes&filter_by[]=wordpress-plugins: These should also include both themes and plugins in single response.

Last Updated: Changes to /buyer/list-purchases Envato API endpoint.

They are not gonna update/change API feature anytime soon. You can add an “IF” statement to check if the item is plugin or theme. Or you can try to hide the results for the purchases ( image/video etc )

What do you mean by hiding image/video, etc?

As of now I have a user whose theme + plugin count is 130. When i can separate API with filter_by, It uses 2 API.
As soon as I remove that option to get everything at once. It shows more than 1400+ items and 15 pages(15 API) calls just to get 130 Theme and plugin.

You can dump it to the HTML/PHP with specific class and hide them from public view but I don’t think it’s gonna work out for you.

At some point, you will have to use double API request…

Yeah, Anyway I have to call the API 15 Times for that user as I’ll get 100 Items per API Call