Title: Problem with RestApi Players
Last modified: April 25, 2021

---

# Problem with RestApi Players

 *  Resolved [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/)
 * The url wp-json/sportspress/v2/players not return all players, only a few players.
 * Any suggestion?

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14362080)
 * Hi [@renpersonal](https://wordpress.org/support/users/renpersonal/) ,
 * You need to change the player number limit from Sportspress->Settings.
 * Thanks,
    Savvas
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14363967)
 * Hi Savvas, I changed limit player to 200 and unchecked pagination in the tab 
   players on settings, but only 10 players are returned by de api.
    I executed 
   the request with postman.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364174)
 * Did you try the solution with `?filter[posts_per_page]=X` as proposed at [https://stackoverflow.com/questions/35326185/how-to-change-wordpress-api-json-post-return-limit](https://stackoverflow.com/questions/35326185/how-to-change-wordpress-api-json-post-return-limit)?
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364231)
 * Same result, only 10 players are returned.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364240)
 * Can you share the exact request you are using?
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364308)
 * Hi, adding the parameter “?per_page=X” works fine.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364312)
 * Thanks for sharing the solution! 🙂 I am marking it as solven then.
 * Thanks,
    Savvas
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364535)
 * Another question Savvas? It’s possible to create events player vs player with
   api’s.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14364837)
 * Using the following commit it will be possible 🙂
    [https://github.com/ThemeBoy/SportsPress/commit/9bd808e270dec5b32b7eb39be90180fb7ead81c8](https://github.com/ThemeBoy/SportsPress/commit/9bd808e270dec5b32b7eb39be90180fb7ead81c8)
 * Thanks,
    Savvas
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14365032)
 * Have you some example to use inside a plugin in wordpress?
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14366459)
 * Not sure about how to use it in a plugin, but using Postman you can add the following
   as the `body` of your request:
 *     ```
       {
           "title":  "My Event Title",
           "mode": "player"
       }
       ```
   
 * and the by using the `POST` call for the url `https://domain.com/wp-json/sportspress/
   v2/events/`
 * you can create a new event with title `My Event Title` in `player` mode.
 * You will need an [authentication](https://support.themeboy.com/article/343-basic-authentication)
   of course before posting anything 🙂
 *  Thread Starter [renpersonal](https://wordpress.org/support/users/renpersonal/)
 * (@renpersonal)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14366684)
 * Thanks Savva, works fine.
    About the parameter “per_page” is limit to 100, and
   it’s necessary use parameter “page” to request next pages.
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14370895)
 * Hi there!
 * Yes, that’s set by WP itself.
 * Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Problem with RestApi Players’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [Roch](https://wordpress.org/support/users/rochesterj/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/problem-with-restapi-players/#post-14370895)
 * Status: resolved