You are not logged in. Please login at www.codechef.com to post your questions!

×

Mismatch between API documentation and the response received

When I make a request to return the ranklist for a particular contest using the following code: api_call_headers = {'Authorization': 'Bearer ' + access_token} ratings_url = 'https://api.codechef.com/rankings/JAN18' fields ={ 'limit': 50, 'sortBy': 'rank', 'sortOrder': 'asc', } sub_response = requests.get(ratings_url, headers = api_call_headers, params = fields) I am able to get only the first 25 users in the ranklist though I have mentioned the limit as 50. In the API documentation, it is mentioned that the maximum number of rankings in the list can be 100 but I am not able to get more than 25 in any case. Even, when I filter the ranklist by the institution, I get the ranklist consisting of only 25 users from that institution.

Please help me to sort out the issue!

asked 09 Sep, 18:55

rounak217's gravatar image

4★rounak217
1025
accept rate: 20%

edited 09 Sep, 18:57


@rounak217, max limit is 25, not 100 for ranklist. We'll change it in the documentation.

link

answered 10 Sep, 01:40

shivangi_gupta's gravatar image

2★shivangi_gupta
1954
accept rate: 16%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×213
×190
×115

question asked: 09 Sep, 18:55

question was seen: 79 times

last updated: 09 Sep, 18:57