{"meta":{"title":"Points de terminaison d’API REST pour les métriques de la communauté","intro":"Utilisez l’API REST pour récupérer des informations sur votre profil de communauté.","product":"API REST","breadcrumbs":[{"href":"/fr/rest","title":"API REST"},{"href":"/fr/rest/metrics","title":"Mesures"},{"href":"/fr/rest/metrics/community","title":"Communauté"}],"documentType":"article"},"body":"# Points de terminaison d’API REST pour les métriques de la communauté\n\nUtilisez l’API REST pour récupérer des informations sur votre profil de communauté.\n\n> [!NOTE]\n> 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.\n\n## Get community profile metrics\n\n```\nGET /repos/{owner}/{repo}/community/profile\n```\n\nReturns all community profile metrics for a repository. The repository cannot be a fork.\nThe returned metrics include an overall health score, the repository description, the presence of documentation, the\ndetected code of conduct, the detected license, and the presence of ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE,\nREADME, and CONTRIBUTING files.\nThe health_percentage score is defined as a percentage of how many of\nthe recommended community health files are present. For more information, see\n\"About community profiles for public repositories.\"\ncontent_reports_enabled is only returned for organization-owned repositories.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n### HTTP response status codes\n\n- **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/community/profile\n```\n\n**Response schema (Status: 200):**\n\n* `health_percentage`: required, integer\n* `description`: required, string or null\n* `documentation`: required, string or null\n* `files`: required, object:\n  * `code_of_conduct`: required, any of:\n    * **null**\n    * **Code Of Conduct Simple**\n      * `url`: required, string, format: uri\n      * `key`: required, string\n      * `name`: required, string\n      * `html_url`: required, string or null, format: uri\n  * `code_of_conduct_file`: required, any of:\n    * **null**\n    * **Community Health File**\n      * `url`: required, string, format: uri\n      * `html_url`: required, string, format: uri\n  * `license`: required, any of:\n    * **null**\n    * **License Simple**\n      * `key`: required, string\n      * `name`: required, string\n      * `url`: required, string or null, format: uri\n      * `spdx_id`: required, string or null\n      * `node_id`: required, string\n      * `html_url`: string, format: uri\n  * `contributing`: required, any of:\n    * **null**\n    * **Community Health File** (see above)\n  * `readme`: required, any of:\n    * **null**\n    * **Community Health File** (see above)\n  * `issue_template`: required, any of:\n    * **null**\n    * **Community Health File** (see above)\n  * `pull_request_template`: required, any of:\n    * **null**\n    * **Community Health File** (see above)\n* `updated_at`: required, string or null, format: date-time\n* `content_reports_enabled`: boolean"}