---
title: "Get community profile metrics"
method: GET
path: "/repos/{owner}/{repo}/community/profile"
tags: ["repos"]
---

# Get community profile metrics

`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](https://docs.github.com/enterprise-cloud@latest/communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories)."

`content_reports_enabled` is only returned for organization-owned repositories.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Response

- CommunityProfile — Community Profile
  - `health_percentage` integer, required
  - `description` string, nullable, required
  - `documentation` string, nullable, required
  - `files` object, required
    - `code_of_conduct` NullableCodeOfConductSimple, nullable, required — Code of Conduct Simple
      - `url` string, uri, required
      - `key` string, required
      - `name` string, required
      - `html_url` string, uri, nullable, required
    - `code_of_conduct_file` NullableCommunityHealthFile, nullable, required
      - `url` string, uri, required
      - `html_url` string, uri, required
    - `license` NullableLicenseSimple, nullable, required — License Simple
      - `key` string, required
      - `name` string, required
      - `url` string, uri, nullable, required
      - `spdx_id` string, nullable, required
      - `node_id` string, required
      - `html_url` string, uri
    - `contributing` NullableCommunityHealthFile, nullable, required
      - `url` string, uri, required
      - `html_url` string, uri, required
    - `readme` NullableCommunityHealthFile, nullable, required
      - `url` string, uri, required
      - `html_url` string, uri, required
    - `issue_template` NullableCommunityHealthFile, nullable, required
      - `url` string, uri, required
      - `html_url` string, uri, required
    - `pull_request_template` NullableCommunityHealthFile, nullable, required
      - `url` string, uri, required
      - `html_url` string, uri, required
  - `updated_at` string, date-time, nullable, required
  - `content_reports_enabled` boolean

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
