Title: per_page has no documented max, and oversized values are clamped silently · Issue #45188 · github/docs · GitHub
Open Graph Title: per_page has no documented max, and oversized values are clamped silently · Issue #45188 · github/docs
X Title: per_page has no documented max, and oversized values are clamped silently · Issue #45188 · github/docs
Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api What part(s) of the artic...
Open Graph Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/using-pagination-i...
X Description: Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/using-paginati...
Opengraph URL: https://github.com/github/docs/issues/45188
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"per_page has no documented max, and oversized values are clamped silently","articleBody":"### Code of Conduct\n\n- [x] I have read and agree to the GitHub Docs project's [Code of Conduct](https://github.com/github/docs/blob/main/.github/CODE_OF_CONDUCT.md)\n\n### What article on docs.github.com is affected?\n\nhttps://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api\n\n### What part(s) of the article would you like to see updated?\n\nThe per_page section says you can control page size. No max, no note on what happens past it.\n\nper_page=100000 returns 200 with the page clamped to 100. No error. This same doc set uses 422 for invalid params elsewhere, so clamping instead of rejecting is a real surprise — a caller can under-fetch results and never know it.\n\nAdd the max value and the clamp behavior here.\n\n### Additional information\n\nReliably reproducible. Verified with a black-box pytest suite: test_oversized_per_page_is_clamped_not_rejected in https://github.com/jornith/octoprobe","author":{"url":"https://github.com/jornith","@type":"Person","name":"jornith"},"datePublished":"2026-07-17T07:14:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/45188/docs/issues/45188"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45687851-33e6-4023-b58e-97eff0ca2ec9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A482:81199:39334C:506278:6A637A6B |
| html-safe-nonce | 9722caa9637beaf093ca147315c172a6431e22a03053bfd95c82acbd5b3307c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDgyOjgxMTk5OjM5MzM0Qzo1MDYyNzg6NkE2MzdBNkIiLCJ2aXNpdG9yX2lkIjoiODU0MzE0OTM5MDQ3NTUyNDcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4387ae38645cc9cb1f152b9a0266f5069fed8abcfeabcbea75b6ea5b5992483d |
| hovercard-subject-tag | issue:4909016100 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/docs/45188/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c563147debcfa71189ac68ddd75b1c3637de23a71aa0185b3899e542756df1f/github/docs/issues/45188 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c563147debcfa71189ac68ddd75b1c3637de23a71aa0185b3899e542756df1f/github/docs/issues/45188 |
| og:image:alt | Code of Conduct I have read and agree to the GitHub Docs project's Code of Conduct What article on docs.github.com is affected? https://docs.github.com/en/rest/using-the-rest-api/using-pagination-i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jornith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4c1de337de00c7969335f8866af41463301071379a3a15fba12e9b85aa6378d6 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/docs git https://github.com/github/docs.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 189621607 |
| octolytics-dimension-repository_nwo | github/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 189621607 |
| octolytics-dimension-repository_network_root_nwo | github/docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4df32552e4c631011bdcd4c81cc3d7408664a8b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width