Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4672 closed defect (bug) (invalid)

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

Reported by: shramee's profile 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
5 years ago

  • Component changed from General to API

#2 @Otto42
5 years 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
5 years 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.