maxResults 필드를 설정하여 목록 요청에 대한 응답에서 서버가 반환하는 최대 리소스 수를 제어할 수 있습니다. 또한 일부 컬렉션 (예: 이벤트)의 경우 서버가 절대 초과하지 않는 검색된 항목 수에 엄격한 제한이 있습니다. 총 이벤트 수가 이 최댓값을 초과하면 서버에서 결과 페이지 하나를 반환합니다.
maxResults이 한 페이지에 표시되는 결과 수를 보장하지는 않습니다.
불완전한 결과는 결과에 비어 있지 않은 nextPageToken 필드로 감지할 수 있습니다. 다음 페이지를 가져오려면 이전과 정확히 동일한 요청을 실행하고 이전 페이지의 nextPageToken 값이 포함된 pageToken 필드를 추가합니다. 모든 결과가 검색될 때까지 다음 페이지에 새 nextPageToken이 제공됩니다.
예를 들어 다음은 쿼리와 페이지로 나눈 목록에서 다음 페이지의 결과를 가져오는 쿼리입니다.
GET /calendars/primary/events?maxResults=10&singleEvents=true
//Result contains
"nextPageToken":"CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA",
후속 쿼리는 nextPageToken의 값을 가져와 pageToken의 값으로 제출합니다.
GET /calendars/primary/events?maxResults=10&singleEvents=true&pageToken=CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Page through lists of resources\n\nYou can control the maximum number of resources the server returns in the\nresponse to a list request by setting the `maxResults` field. Furthermore,\nfor some collections (such as Events) there is a hard limit on the number of\nretrieved entries that the server will never exceed. If the total number of\nevents exceeds this maximum, the server returns one page of results.\n\nRemember that `maxResults` does not guarantee the number of results on one page.\nIncomplete results can be detected by a non-empty `nextPageToken` field in\nthe result. In order to retrieve the next page, perform the exact same request\nas previously and append a `pageToken` field with the value of\n`nextPageToken` from the previous page. A new `nextPageToken` is provided\non the following pages until all the results are retrieved.\n\nFor example, here is a query followed by the query for retrieving the\nnext page of results in a paginated list: \n\n GET /calendars/primary/events?maxResults=10&singleEvents=true\n\n //Result contains\n\n \"nextPageToken\":\"CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA\",\n\nThe subsequent query takes the value from `nextPageToken` and\nsubmits it as the value for `pageToken`: \n\n GET /calendars/primary/events?maxResults=10&singleEvents=true&pageToken=CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA"]]