Use the REST API to retrieve information about your community profile.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /repos/{owner}/{repo}/community/profile
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
the recommended community health files are present. For more information, see
"About community profiles for public repositories."
content_reports_enabled is only returned for organization-owned repositories.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
Request:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/community/profile
Response schema (Status: 200):
health_percentage: required, integerdescription: required, string or nulldocumentation: required, string or nullfiles: required, object:
code_of_conduct: required, any of:
url: required, string, format: urikey: required, stringname: required, stringhtml_url: required, string or null, format: uricode_of_conduct_file: required, any of:
url: required, string, format: urihtml_url: required, string, format: urilicense: required, any of:
key: required, stringname: required, stringurl: required, string or null, format: urispdx_id: required, string or nullnode_id: required, stringhtml_url: string, format: uricontributing: required, any of:
readme: required, any of:
issue_template: required, any of:
pull_request_template: required, any of:
updated_at: required, string or null, format: date-timecontent_reports_enabled: boolean