Requires workspace Read and read access to the selected repositories. This fixed ten-week trend has no pagination. Results are live, not a completeness guarantee; zero counts can mean no matching recorded data rather than all activity having been processed. Summary rates default to zero when there is no denominator, while optional weekly rates are omitted.
Up to 100 distinct repository IDs. Omit for all readable active repositories, which must also number 100 or fewer. Inactive or deleted repositories contribute nothing.
REACTION (thumbs up or down) or CLASSIFIER (inferred from human replies). With one source selected, reviewedPullRequests counts distinct pull requests with matching comments.
Exact custom agent names, up to 100 of at most 256 characters each. Excludes standard reviews from reviewedPullRequests. Does not apply to feedbackTrend.
Weekly rates are rounded to four decimals and omitted when there is no denominator, including weeks before startTime. An omitted rate means no data, not zero. Results reflect current feedback and pull request state, so past ranges can change.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Macroscope","colors":{"primary":"#6f16a3","light":"#a26fd9","dark":"#a26fd9"},"logo":{"light":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc","dark":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/dark.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=05f568cf92a21f18b8ebaed893c0ff3b"},"favicon":"https://mintcdn.com/macroscope/Ij1wsJ7EUw4zYzA-/images/favicon.svg?fit=max\u0026auto=format\u0026n=Ij1wsJ7EUw4zYzA-\u0026q=85\u0026s=bab7bcd6e8c996d0426a6a241bf3ecbe","navbar":{"links":[{"href":"https://docs.macroscope.com/contact","label":"Contact Us"}],"primary":{"type":"button","label":"Macroscope","href":"https://app.macroscope.com"}},"integrations":{"gtm":{"tagId":"GTM-MFXG74M6"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"macroscope","hasAudioNarration":false,"actualSubdomain":"macroscope","customDomains":["docs.macroscope.com"],"gitSource":{"type":"github","owner":"prassoai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae14341c06f9a509a5f3777","collectionId":"d2e45701-45eb-4223-89af-69f0c7eb613b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae14341c06f9a509a5f3777"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1899c937c113a46a9ddbc","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":51},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"API","count":19},{"language":"default","tag":"Code Review","count":11},{"language":"default","tag":"Status","count":6},{"language":"default","tag":"Workspace","count":4},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Check Run Agents","count":3},{"language":"default","tag":"Pricing","count":3},{"language":"default","tag":"Modifying behavior","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/query-code-review-statistics","slug":"/api-reference/endpoint/query-code-review-statistics","pageMetadata":{"title":"Query code review statistics","description":"Review counts, summary rates, and a ten-week feedback trend for selected repositories.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns code review counts and rates for a time range, plus a ten-week feedback trend. Every selected repository must be readable by the caller.`}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`Requires workspace Read and read access to the selected repositories. This fixed ten-week trend has no pagination. Results are live, not a completeness guarantee; zero counts can mean no matching recorded data rather than all activity having been processed. Summary rates default to zero when there is no denominator, while optional weekly rates are omitted.`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsxs(_components.p,{children:[`Repeat a parameter to pass multiple values, e.g. `,_jsx(_components.code,{children:`repositoryIds=1\u0026repositoryIds=2`}),`. Omit a list parameter to apply no filter.`]}),`\n`,_jsx(ParamField,{query:`startTime`,type:`string`,required:true,id:`param-start-time`,children:_jsx(_components.p,{children:`Inclusive start (RFC 3339).`})}),`\n`,_jsx(ParamField,{query:`endTime`,type:`string`,required:true,id:`param-end-time`,children:_jsxs(_components.p,{children:[`Inclusive end (RFC 3339). Must not be before `,_jsx(_components.code,{children:`startTime`}),`, and the range can be at most 366 days.`]})}),`\n`,_jsx(ParamField,{query:`repositoryIds`,type:`string[]`,id:`param-repository-ids`,children:_jsx(_components.p,{children:`Up to 100 distinct repository IDs. Omit for all readable active repositories, which must also number 100 or fewer. Inactive or deleted repositories contribute nothing.`})}),`\n`,_jsx(ParamField,{query:`authorIds`,type:`string[]`,id:`param-author-ids`,children:_jsx(_components.p,{children:`Up to 100 GitHub user IDs of pull request authors.`})}),`\n`,_jsx(ParamField,{query:`reviewTypes`,type:`string[]`,id:`param-review-types`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CORRECTNESS`}),`, `,_jsx(_components.code,{children:`IDIOM`}),`, `,_jsx(_components.code,{children:`TICKET_REQUIREMENTS`}),`, or `,_jsx(_components.code,{children:`CUSTOM`}),`. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`prStatuses`,type:`string[]`,id:`param-pr-statuses`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`OPEN`}),`, `,_jsx(_components.code,{children:`OPEN_DRAFT`}),`, `,_jsx(_components.code,{children:`CLOSED_MERGED`}),`, or `,_jsx(_components.code,{children:`CLOSED_NOT_MERGED`}),`. Matches the pull request’s current state. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`reactions`,type:`string[]`,id:`param-reactions`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POSITIVE`}),` or `,_jsx(_components.code,{children:`NEGATIVE`}),`. Filters review comments only, not reviewed pull request counts or `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`addressedOnly`,type:`boolean`,id:`param-addressed-only`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` for addressed comments, `,_jsx(_components.code,{children:`false`}),` for unaddressed comments. Omit for both.`]})}),`\n`,_jsx(ParamField,{query:`feedbackSources`,type:`string[]`,id:`param-feedback-sources`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`REACTION`}),` (thumbs up or down) or `,_jsx(_components.code,{children:`CLASSIFIER`}),` (inferred from human replies). With one source selected, `,_jsx(_components.code,{children:`reviewedPullRequests`}),` counts distinct pull requests with matching comments.`]})}),`\n`,_jsx(ParamField,{query:`customCheckNames`,type:`string[]`,id:`param-custom-check-names`,children:_jsxs(_components.p,{children:[`Exact custom agent names, up to 100 of at most 256 characters each. Excludes standard reviews from `,_jsx(_components.code,{children:`reviewedPullRequests`}),`. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`searchQuery`,type:`string`,id:`param-search-query`,children:_jsxs(_components.p,{children:[`Case-insensitive substring match on comment text, up to 256 characters. Does not apply to `,_jsx(_components.code,{children:`reviewedPullRequests`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`reviewedPullRequests`,type:`string`,id:`param-reviewed-pull-requests`,children:_jsx(_components.p,{children:`Reviewed pull requests (int64 as string). Standard reviews plus custom agent reviews, so one pull request can count twice.`})}),`\n`,_jsx(ResponseField,{name:`postedReviewComments`,type:`string`,id:`param-posted-review-comments`,children:_jsx(_components.p,{children:`Review comments posted (int64 as string).`})}),`\n`,_jsx(ResponseField,{name:`addressedRate`,type:`number`,id:`param-addressed-rate`,children:_jsx(_components.p,{children:`Addressed comments / posted comments, 0 to 1. Zero when there are no comments.`})}),`\n`,_jsx(ResponseField,{name:`disapprovalRate`,type:`number`,id:`param-disapproval-rate`,children:_jsx(_components.p,{children:`Negative comments / posted comments over the last 30 days of the range, 0 to 1.`})}),`\n`,_jsx(ResponseField,{name:`averageIssuesPerPullRequest`,type:`number`,id:`param-average-issues-per-pull-request`,children:_jsx(_components.p,{children:`Posted comments / reviewed pull requests. Zero when there are no reviewed pull requests.`})}),`\n`,_jsxs(ResponseField,{name:`feedbackTrend`,type:`object[]`,id:`param-feedback-trend`,children:[_jsxs(_components.p,{children:[`Ten Monday-start UTC weeks ending with the week containing `,_jsx(_components.code,{children:`endTime`}),`, oldest first. Counts only correctness comments on merged pull requests.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`weekStart`,type:`string`,id:`param-week-start`,children:_jsx(_components.p,{children:`Monday 00:00 UTC that starts the week (RFC 3339).`})}),_jsx(ResponseField,{name:`addressedRate`,type:`number`,id:`param-addressed-rate-1`,children:_jsx(_components.p,{children:`Addressed comments / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`positiveRate`,type:`number`,id:`param-positive-rate`,children:_jsx(_components.p,{children:`Comments with a thumbs up or addressed / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`negativeRate`,type:`number`,id:`param-negative-rate`,children:_jsx(_components.p,{children:`Negative comments / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`approvalRate`,type:`number`,id:`param-approval-rate`,children:_jsx(_components.p,{children:`Thumbs up / (thumbs up + thumbs down), 0 to 1.`})}),_jsx(ResponseField,{name:`thumbsUpCount`,type:`string`,id:`param-thumbs-up-count`,children:_jsx(_components.p,{children:`Thumbs up reactions (int64 as string).`})}),_jsx(ResponseField,{name:`thumbsDownCount`,type:`string`,id:`param-thumbs-down-count`,children:_jsx(_components.p,{children:`Negative comments (int64 as string).`})})]})]}),`\n`,_jsxs(_components.p,{children:[`Weekly rates are rounded to four decimals and omitted when there is no denominator, including weeks before `,_jsx(_components.code,{children:`startTime`}),`. An omitted rate means no data, not zero. Results reflect current feedback and pull request state, so past ranges can change.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Query code review statistics","description":"Review counts, summary rates, and a ten-week feedback trend for selected repositories.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns code review counts and rates for a time range, plus a ten-week feedback trend. Every selected repository must be readable by the caller.`}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`Requires workspace Read and read access to the selected repositories. This fixed ten-week trend has no pagination. Results are live, not a completeness guarantee; zero counts can mean no matching recorded data rather than all activity having been processed. Summary rates default to zero when there is no denominator, while optional weekly rates are omitted.`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsxs(_components.p,{children:[`Repeat a parameter to pass multiple values, e.g. `,_jsx(_components.code,{children:`repositoryIds=1\u0026repositoryIds=2`}),`. Omit a list parameter to apply no filter.`]}),`\n`,_jsx(ParamField,{query:`startTime`,type:`string`,required:true,id:`param-start-time`,children:_jsx(_components.p,{children:`Inclusive start (RFC 3339).`})}),`\n`,_jsx(ParamField,{query:`endTime`,type:`string`,required:true,id:`param-end-time`,children:_jsxs(_components.p,{children:[`Inclusive end (RFC 3339). Must not be before `,_jsx(_components.code,{children:`startTime`}),`, and the range can be at most 366 days.`]})}),`\n`,_jsx(ParamField,{query:`repositoryIds`,type:`string[]`,id:`param-repository-ids`,children:_jsx(_components.p,{children:`Up to 100 distinct repository IDs. Omit for all readable active repositories, which must also number 100 or fewer. Inactive or deleted repositories contribute nothing.`})}),`\n`,_jsx(ParamField,{query:`authorIds`,type:`string[]`,id:`param-author-ids`,children:_jsx(_components.p,{children:`Up to 100 GitHub user IDs of pull request authors.`})}),`\n`,_jsx(ParamField,{query:`reviewTypes`,type:`string[]`,id:`param-review-types`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CORRECTNESS`}),`, `,_jsx(_components.code,{children:`IDIOM`}),`, `,_jsx(_components.code,{children:`TICKET_REQUIREMENTS`}),`, or `,_jsx(_components.code,{children:`CUSTOM`}),`. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`prStatuses`,type:`string[]`,id:`param-pr-statuses`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`OPEN`}),`, `,_jsx(_components.code,{children:`OPEN_DRAFT`}),`, `,_jsx(_components.code,{children:`CLOSED_MERGED`}),`, or `,_jsx(_components.code,{children:`CLOSED_NOT_MERGED`}),`. Matches the pull request’s current state. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`reactions`,type:`string[]`,id:`param-reactions`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POSITIVE`}),` or `,_jsx(_components.code,{children:`NEGATIVE`}),`. Filters review comments only, not reviewed pull request counts or `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`addressedOnly`,type:`boolean`,id:`param-addressed-only`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` for addressed comments, `,_jsx(_components.code,{children:`false`}),` for unaddressed comments. Omit for both.`]})}),`\n`,_jsx(ParamField,{query:`feedbackSources`,type:`string[]`,id:`param-feedback-sources`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`REACTION`}),` (thumbs up or down) or `,_jsx(_components.code,{children:`CLASSIFIER`}),` (inferred from human replies). With one source selected, `,_jsx(_components.code,{children:`reviewedPullRequests`}),` counts distinct pull requests with matching comments.`]})}),`\n`,_jsx(ParamField,{query:`customCheckNames`,type:`string[]`,id:`param-custom-check-names`,children:_jsxs(_components.p,{children:[`Exact custom agent names, up to 100 of at most 256 characters each. Excludes standard reviews from `,_jsx(_components.code,{children:`reviewedPullRequests`}),`. Does not apply to `,_jsx(_components.code,{children:`feedbackTrend`}),`.`]})}),`\n`,_jsx(ParamField,{query:`searchQuery`,type:`string`,id:`param-search-query`,children:_jsxs(_components.p,{children:[`Case-insensitive substring match on comment text, up to 256 characters. Does not apply to `,_jsx(_components.code,{children:`reviewedPullRequests`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`reviewedPullRequests`,type:`string`,id:`param-reviewed-pull-requests`,children:_jsx(_components.p,{children:`Reviewed pull requests (int64 as string). Standard reviews plus custom agent reviews, so one pull request can count twice.`})}),`\n`,_jsx(ResponseField,{name:`postedReviewComments`,type:`string`,id:`param-posted-review-comments`,children:_jsx(_components.p,{children:`Review comments posted (int64 as string).`})}),`\n`,_jsx(ResponseField,{name:`addressedRate`,type:`number`,id:`param-addressed-rate`,children:_jsx(_components.p,{children:`Addressed comments / posted comments, 0 to 1. Zero when there are no comments.`})}),`\n`,_jsx(ResponseField,{name:`disapprovalRate`,type:`number`,id:`param-disapproval-rate`,children:_jsx(_components.p,{children:`Negative comments / posted comments over the last 30 days of the range, 0 to 1.`})}),`\n`,_jsx(ResponseField,{name:`averageIssuesPerPullRequest`,type:`number`,id:`param-average-issues-per-pull-request`,children:_jsx(_components.p,{children:`Posted comments / reviewed pull requests. Zero when there are no reviewed pull requests.`})}),`\n`,_jsxs(ResponseField,{name:`feedbackTrend`,type:`object[]`,id:`param-feedback-trend`,children:[_jsxs(_components.p,{children:[`Ten Monday-start UTC weeks ending with the week containing `,_jsx(_components.code,{children:`endTime`}),`, oldest first. Counts only correctness comments on merged pull requests.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`weekStart`,type:`string`,id:`param-week-start`,children:_jsx(_components.p,{children:`Monday 00:00 UTC that starts the week (RFC 3339).`})}),_jsx(ResponseField,{name:`addressedRate`,type:`number`,id:`param-addressed-rate-1`,children:_jsx(_components.p,{children:`Addressed comments / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`positiveRate`,type:`number`,id:`param-positive-rate`,children:_jsx(_components.p,{children:`Comments with a thumbs up or addressed / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`negativeRate`,type:`number`,id:`param-negative-rate`,children:_jsx(_components.p,{children:`Negative comments / comments, 0 to 1.`})}),_jsx(ResponseField,{name:`approvalRate`,type:`number`,id:`param-approval-rate`,children:_jsx(_components.p,{children:`Thumbs up / (thumbs up + thumbs down), 0 to 1.`})}),_jsx(ResponseField,{name:`thumbsUpCount`,type:`string`,id:`param-thumbs-up-count`,children:_jsx(_components.p,{children:`Thumbs up reactions (int64 as string).`})}),_jsx(ResponseField,{name:`thumbsDownCount`,type:`string`,id:`param-thumbs-down-count`,children:_jsx(_components.p,{children:`Negative comments (int64 as string).`})})]})]}),`\n`,_jsxs(_components.p,{children:[`Weekly rates are rounded to four decimals and omitted when there is no denominator, including weeks before `,_jsx(_components.code,{children:`startTime`}),`. An omitted rate means no data, not zero. Results reflect current feedback and pull request state, so past ranges can change.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MACROSCOPE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime=2026-09-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime=2026-09-30T23:59:59Z\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reviewTypes=CORRECTNESS\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os, requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MACROSCOPE_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-30T23:59:59Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reviewTypes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CORRECTNESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(r.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`10`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` URLSearchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` startTime:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2026-09-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` endTime:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2026-09-30T23:59:59Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reviewTypes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CORRECTNESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics?\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MACROSCOPE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reviewedPullRequests\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"120\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"postedReviewComments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"240\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addressedRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disapprovalRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.05`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"averageIssuesPerPullRequest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feedbackTrend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"weekStart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-27T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"weekStart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-28T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addressedRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"positiveRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negativeRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.05`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvalRate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thumbsUpCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thumbsDownCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unauthenticated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Query code review statistics","description":"Review counts, summary rates, and a ten-week feedback trend for selected repositories.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --get\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"startTime=2026-09-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"endTime=2026-09-30T23:59:59Z\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reviewTypes=CORRECTNESS\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os, requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">r \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.get(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'MACROSCOPE_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> params\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"startTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-09-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"endTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-09-30T23:59:59Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reviewTypes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CORRECTNESS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(r.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> params\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> URLSearchParams\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> startTime:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"2026-09-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> endTime:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"2026-09-30T23:59:59Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">params\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">append\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"reviewTypes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CORRECTNESS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> res\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/code-review-statistics?\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">params\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">process\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reviewedPullRequests\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"120\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"postedReviewComments\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"240\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addressedRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"disapprovalRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.05\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"averageIssuesPerPullRequest\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"feedbackTrend\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"weekStart\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-07-27T00:00:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"weekStart\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-09-28T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addressedRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"positiveRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.6\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"negativeRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.05\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"approvalRate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0.9\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"thumbsUpCount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"9\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"thumbsDownCount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">16\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"unauthenticated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Query code review statistics","path":"/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","servers":[{"url":"https://api.macroscope.com"}],"method":"get","request":{"security":[],"parameters":{"query":{"startTime":{"schema":[{"type":"string","description":"Inclusive start (RFC 3339).","required":true}]},"endTime":{"schema":[{"type":"string","description":"Inclusive end (RFC 3339). Must not be before `startTime` , and the range can be at most 366 days.","required":true}]},"repositoryIds":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"Up to 100 distinct repository IDs. Omit for all readable active repositories, which must also number 100 or fewer. Inactive or deleted repositories contribute nothing."}]},"authorIds":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"Up to 100 GitHub user IDs of pull request authors."}]},"reviewTypes":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"`CORRECTNESS` , `IDIOM` , `TICKET_REQUIREMENTS` , or `CUSTOM` . Does not apply to `feedbackTrend` ."}]},"prStatuses":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"`OPEN` , `OPEN_DRAFT` , `CLOSED_MERGED` , or `CLOSED_NOT_MERGED` . Matches the pull request’s current state. Does not apply to `feedbackTrend` ."}]},"reactions":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"`POSITIVE` or `NEGATIVE` . Filters review comments only, not reviewed pull request counts or `feedbackTrend` ."}]},"addressedOnly":{"schema":[{"type":"boolean","description":"`true` for addressed comments, `false` for unaddressed comments. Omit for both."}]},"feedbackSources":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"`REACTION` (thumbs up or down) or `CLASSIFIER` (inferred from human replies). With one source selected, `reviewedPullRequests` counts distinct pull requests with matching comments."}]},"customCheckNames":{"schema":[{"type":"array","items":[{"type":"string"}],"description":"Exact custom agent names, up to 100 of at most 256 characters each. Excludes standard reviews from `reviewedPullRequests` . Does not apply to `feedbackTrend` ."}]},"searchQuery":{"schema":[{"type":"string","description":"Case-insensitive substring match on comment text, up to 256 characters. Does not apply to `reviewedPullRequests` ."}]}},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer \u003ckey>` . See Authentication .","required":true}]}},"cookie":{},"path":{"workspaceType":{"schema":[{"type":"string","description":"`GITHUB_ORGANIZATION` or `GITHUB_USER` .","required":true}]},"workspaceId":{"schema":[{"type":"string","description":"Numeric GitHub ID of the organization or user.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"reviewedPullRequests":[{"type":"string","description":"Reviewed pull requests (int64 as string). Standard reviews plus custom agent reviews, so one pull request can count twice."}],"postedReviewComments":[{"type":"string","description":"Review comments posted (int64 as string)."}],"addressedRate":[{"type":"number","description":"Addressed comments / posted comments, 0 to 1. Zero when there are no comments."}],"disapprovalRate":[{"type":"number","description":"Negative comments / posted comments over the last 30 days of the range, 0 to 1."}],"averageIssuesPerPullRequest":[{"type":"number","description":"Posted comments / reviewed pull requests. Zero when there are no reviewed pull requests."}],"feedbackTrend":[{"type":"array","items":[{"type":"object","properties":{"weekStart":[{"type":"string","description":"Monday 00:00 UTC that starts the week (RFC 3339)."}],"addressedRate":[{"type":"number","description":"Addressed comments / comments, 0 to 1."}],"positiveRate":[{"type":"number","description":"Comments with a thumbs up or addressed / comments, 0 to 1."}],"negativeRate":[{"type":"number","description":"Negative comments / comments, 0 to 1."}],"approvalRate":[{"type":"number","description":"Thumbs up / (thumbs up + thumbs down), 0 to 1."}],"thumbsUpCount":[{"type":"string","description":"Thumbs up reactions (int64 as string)."}],"thumbsDownCount":[{"type":"string","description":"Negative comments (int64 as string)."}]}}],"description":"Ten Monday-start UTC weeks ending with the week containing `endTime` , oldest first. Counts only correctness comments on merged pull requests."}]}}],"examples":{"example":{"value":{"reviewedPullRequests":"\u003cstring>","postedReviewComments":"\u003cstring>","addressedRate":123,"disapprovalRate":123,"averageIssuesPerPullRequest":123,"feedbackTrend":[{"weekStart":"\u003cstring>","addressedRate":123,"positiveRate":123,"negativeRate":123,"approvalRate":123,"thumbsUpCount":"\u003cstring>","thumbsDownCount":"\u003cstring>"}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"macroscope","siteName":"Macroscope","title":"Query code review statistics - Macroscope","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T05:35:33.101Z","originalFileLocation":"api-reference/endpoint/query-code-review-statistics.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query code review statistics - Macroscope\">\u003cmeta data-mint-head property=\"og:description\" content=\"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Macroscope\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://macroscope.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Query+code+review+statistics\u0026amp;description=Review+counts%2C+summary+rates%2C+and+a+ten-week+feedback+trend+for+selected+repositories.\u0026amp;theme=b088c8c661c8523bb64e06f0\u0026amp;signature=7176011b589b5ec8337b929f18bd90f43a57aaeaca167b814e0e83fd64874718\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Query code review statistics - Macroscope\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://macroscope.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Query+code+review+statistics\u0026amp;description=Review+counts%2C+summary+rates%2C+and+a+ten-week+feedback+trend+for+selected+repositories.\u0026amp;theme=b088c8c661c8523bb64e06f0\u0026amp;signature=7176011b589b5ec8337b929f18bd90f43a57aaeaca167b814e0e83fd64874718\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f16a3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/query-code-review-statistics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.macroscope.com/#organization\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.macroscope.com#website\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics#webpage\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics\",\"name\":\"Query code review statistics\",\"description\":\"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\",\"dateModified\":\"2026-10-28T05:35:33.101Z\",\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.macroscope.com/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https://docs.macroscope.com/api\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Query code review statistics\",\"item\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics#apireference\",\"headline\":\"Query code review statistics\",\"name\":\"Query code review statistics\",\"description\":\"Review counts, summary rates, and a ten-week feedback trend for selected repositories.\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/query-code-review-statistics#webpage\"},\"dateModified\":\"2026-10-28T05:35:33.101Z\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Macroscope\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Macroscope","nav":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Overview","href":"/welcome"},{"title":"Setup","href":"/setup-instructions"},{"group":"Pricing","pages":[{"title":"Pricing overview","href":"/pricing"},{"title":"Models and token rates","href":"/model-pricing"},{"title":"Spend controls","href":"/spend-limits"}]},{"group":"Code Review","pages":[{"title":"Correctness","href":"/correctness"},{"title":"Detection mode","href":"/code-review/detection-mode"},{"group":"Modifying behavior","root":{"title":"Modifying behavior","href":"/code-review/macroscope"},"pages":[{"title":"Custom instructions","href":"/custom-instructions"},{"title":"Ignore files","href":"/code-review/ignore-files"}]},{"group":"Check Run Agents","root":{"title":"Check Run Agents","href":"/check-run-agents"},"pages":[{"title":"Configuration","href":"/check-run-agents/configuration"},{"title":"Instructions and context","href":"/check-run-agents/instructions"},{"title":"Triggers and skips","href":"/check-run-agents/triggers"}]},{"title":"Approvability","href":"/approvability"},{"title":"CLI","href":"/cli"},{"title":"PR summaries","href":"/pull-request-descriptions"},{"title":"Fix it for me","href":"/fix-it-for-me"}]},{"group":"Status","pages":[{"title":"Status","href":"/status"},{"title":"Areas","href":"/areas"},{"title":"Productivity","href":"/productivity"},{"title":"Slack subscriptions","href":"/slack-subscriptions"},{"title":"Ask Macroscope","href":"/agent"},{"title":"Macros","href":"/macros"}]},{"group":"Integrations","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"Connected tools","href":"/integrations"},{"group":"API","root":{"title":"API","href":"/api"},"pages":[{"title":"Get workspace","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}","playground":"none","href":"/api-reference/endpoint/get-workspace"},{"title":"List areas","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/areas","playground":"none","href":"/api-reference/endpoint/list-areas"},{"title":"Get workspace report","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/workspaceReport","playground":"none","href":"/api-reference/endpoint/get-workspace-report"},{"title":"Get sprint elapsed hours","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/sprintElapsedHours","playground":"none","href":"/api-reference/endpoint/get-sprint-elapsed-hours"},{"title":"List contributor statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contributorStatistics","playground":"none","href":"/api-reference/endpoint/list-contributor-statistics"},{"title":"List team memberships","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teams/memberships","playground":"none","href":"/api-reference/endpoint/list-team-memberships"},{"title":"List team statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teamStatistics","playground":"none","href":"/api-reference/endpoint/list-team-statistics"},{"title":"Get coding time statistics","description":"Trends of estimated coding time and commit counts, with projections for partial periods.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/codingTimeStatistics","playground":"none","href":"/api-reference/endpoint/get-coding-time-statistics"},{"title":"Query code review statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"},{"title":"List code review comments","description":"Posted code-review and issue comments with current feedback and pull-request attribution.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-comments","playground":"none","href":"/api-reference/endpoint/list-code-review-comments"},{"title":"List commits","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/commits","playground":"none","href":"/api-reference/endpoint/list-commits"},{"title":"Get billing status","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/status","playground":"none","href":"/api-reference/endpoint/get-billing-status"},{"title":"Get billing balance","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/balance","playground":"none","href":"/api-reference/endpoint/get-billing-balance"},{"title":"Get billing controls","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/controls","playground":"none","href":"/api-reference/endpoint/get-billing-controls"},{"title":"List billing meter summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/meterSummaries","playground":"none","href":"/api-reference/endpoint/list-billing-meter-summaries"},{"title":"List daily billing usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"},{"title":"List agent credit usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/agentCreditUsage","playground":"none","href":"/api-reference/endpoint/list-agent-credit-usage"},{"title":"List workspace reporting periods","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/reportingPeriods","playground":"none","href":"/api-reference/endpoint/list-workspace-reporting-periods"},{"title":"List check-run agent billing summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/checkRunAgentSummaries","playground":"none","href":"/api-reference/endpoint/list-check-run-agent-billing-summaries"}]},{"group":"S3 exports","root":{"title":"S3 exports","href":"/s3-exports"},"pages":[{"title":"Export schema","href":"/s3-exports/format"}]}]},{"group":"Workspace","pages":[{"title":"Workspace settings","href":"/settings"},{"title":"Enterprise Managed Users","href":"/github-enterprise-login"},{"title":"GitHub IP allow lists","href":"/github-ip-allow-list"},{"title":"Cancellation","href":"/cancel-subscription"}]},{"group":"Resources","pages":[{"title":"Murmur","href":"/murmur"},{"title":"Support","href":"/contact"},{"title":"Release notes","href":"/changelog"}]}]}]},"title":"Query code review statistics - Macroscope","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js"]}