WordPress.org

Making WordPress.org

Opened 8 days ago

Closed 8 days ago

Last modified 8 days ago

#4672 closed defect (invalid)

WP.org Plugins api page parameter not working (api.wordpress.org)

Reported by: shramee Owned by:
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

After going through the docs, I would expect the URL below to return next 24 popular plugins (25 - 48)...

However, page param below doesn't seem to work.

https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&browse=popular&page=2
--------------------------------------------------------- Expecting Second page here ^

And it just repeats the first 24 results.

Am I doing something wrong or is this a bug?

Change History (3)

#1 @SergeyBiryukov
8 days ago

  • Component changed from General to API

#2 @Otto42
8 days ago

  • Resolution set to invalid
  • Status changed from new to closed

Parameters like page need to be part of the request, not on the top level. So the correct URL for your example would be:

https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&browse=popular&request[page]=2

#3 @Otto42
8 days ago

Also, I just noticed, but "browse" shouldn't be top level either. You're getting popular here because that's the default, not because you're specifying it. So the really correct URL would be:

https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[browse]=popular&request[page]=2
Note: See TracTickets for help on using tickets.