Returns all community profile metrics for a repository. The repository cannot be a fork.The returned metrics include an overall health score, the repository description, the presence of documentation, the detected code of conduct, the detected license, and the presence of ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE, README, and CONTRIBUTING files.The health_percentage score is defined as a percentage of how many of these four documents are present: README, CONTRIBUTING, LICENSE, and CODE_OF_CONDUCT. For example, if all four documents are present, then the health_percentage is 100. If only one is present, then the health_percentage is 25.content_reports_enabled is only returned for organization-owned repositories.
Request Request Example
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
curl--location--request GET 'https://api.github.com/repos///community/profile'
Response Response Example
{"content_reports_enabled":true,"description":"My first repository on GitHub!","documentation":"example.com","files":{"code_of_conduct":{"html_url":"https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md","key":"citizen_code_of_conduct","name":"Citizen Code of Conduct","url":"https://api.github.com/repos/github/docs/community/code_of_conduct"},"code_of_conduct_file":{"html_url":"http://example.com","url":"http://example.com"},"contributing":{"html_url":"http://example.com","url":"http://example.com"},"issue_template":{"html_url":"http://example.com","url":"http://example.com"},"license":{"html_url":"http://example.com","key":"mit","name":"MIT License","node_id":"MDc6TGljZW5zZW1pdA==","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"pull_request_template":{"html_url":"http://example.com","url":"http://example.com"},"readme":{"html_url":"http://example.com","url":"http://example.com"}},"health_percentage":100,"updated_at":"2017-02-28T19:09:29.000Z"}
Request
Path Params
owner
string
required
The account owner of the repository. The name is not case sensitive.
repo
string
required
The name of the repository. The name is not case sensitive.