{"api":{"id":"api_b1d88ec1614d04e913bea549","slug":"repository-health","name":"Open Source Repository Health API","description":"How well an open-source repository is maintained: issue and pull request counts, how many were closed or merged, average days to close an issue or pull request, the past year's activity and the number of maintainers. Give owner/name pairs from GitHub, GitLab or Codeberg.","kind":"ready_made","visibility":"public","domain":"issues.ecosyste.ms","source_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/{owner}%2F{repo}","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.703Z","updated_at":"2026-12-06T03:57:27.703Z","runnable":true},"version":"1.0","contract_hash":"12f9d1c0bb45bca13939acaec73e33146f5e3ede1ff45d59f8b57a43c2426037","fields":[{"name":"repository","type":"string","description":"The repository as owner/name.","required":true,"coverage":1,"example":"expressjs/express"},{"name":"url","type":"url","description":"The repository's own page.","required":false,"coverage":1,"example":"https://github.com/expressjs/express"},{"name":"issues_count","type":"integer","description":"Issues ever opened (pull requests not counted).","required":false,"coverage":1,"example":4135},{"name":"pull_requests_count","type":"integer","description":"Pull requests ever opened.","required":false,"coverage":1,"example":2854},{"name":"issues_closed_count","type":"integer","description":"Issues that have been closed.","required":false,"coverage":1,"example":3989},{"name":"merged_pull_requests_count","type":"integer","description":"Pull requests that were merged.","required":false,"coverage":1,"example":572},{"name":"avg_time_to_close_issue_days","type":"number","description":"Average days from opening to closing an issue.","required":false,"coverage":1,"example":72.2},{"name":"avg_time_to_close_pr_days","type":"number","description":"Average days from opening to closing a pull request.","required":false,"coverage":1,"example":65.9},{"name":"past_year_issues_count","type":"integer","description":"Issues opened in the past year.","required":false,"coverage":1,"example":88},{"name":"past_year_pr_count","type":"integer","description":"Pull requests opened in the past year.","required":false,"coverage":1,"example":507},{"name":"maintainers_count","type":"integer","description":"People the index counts as maintainers of the repository.","required":false,"coverage":1,"example":29},{"name":"last_synced_at","type":"datetime","description":"When the index last re-read this repository (UTC).","required":false,"coverage":1,"example":"2026-11-24T13:00:06.561Z"}],"inputs":[{"name":"repositories","type":"array","description":"Repositories as owner/name, such as expressjs/express. A full repository link works too.","example":["expressjs/express"],"required":true},{"name":"host","type":"string","description":"Where the repositories live: GitHub, GitLab or Codeberg.","default":"GitHub","example":"GitHub","enum":["GitHub","GitLab","Codeberg"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"avg_time_to_close_issue_days":{"description":"Average days from opening to closing an issue.","type":"number"},"avg_time_to_close_pr_days":{"description":"Average days from opening to closing a pull request.","type":"number"},"issues_closed_count":{"description":"Issues that have been closed.","type":"integer"},"issues_count":{"description":"Issues ever opened (pull requests not counted).","type":"integer"},"last_synced_at":{"description":"When the index last re-read this repository (UTC).","format":"date-time","type":"string"},"maintainers_count":{"description":"People the index counts as maintainers of the repository.","type":"integer"},"merged_pull_requests_count":{"description":"Pull requests that were merged.","type":"integer"},"past_year_issues_count":{"description":"Issues opened in the past year.","type":"integer"},"past_year_pr_count":{"description":"Pull requests opened in the past year.","type":"integer"},"pull_requests_count":{"description":"Pull requests ever opened.","type":"integer"},"repository":{"description":"The repository as owner/name.","type":"string"},"url":{"description":"The repository's own page.","format":"uri","type":"string"}},"required":["repository"],"title":"Open Source Repository Health API","type":"object"},"samples":[{"repository":"expressjs/express","url":"https://github.com/expressjs/express","issues_count":4135,"pull_requests_count":2854,"issues_closed_count":3989,"merged_pull_requests_count":572,"avg_time_to_close_issue_days":72.2,"avg_time_to_close_pr_days":65.9,"past_year_issues_count":88,"past_year_pr_count":507,"maintainers_count":29,"last_synced_at":"2026-11-24T13:00:06.561Z"},{"repository":"pallets/flask","url":"https://github.com/pallets/flask","issues_count":2788,"pull_requests_count":2879,"issues_closed_count":2777,"merged_pull_requests_count":1617,"avg_time_to_close_issue_days":106.6,"avg_time_to_close_pr_days":23.8,"past_year_issues_count":88,"past_year_pr_count":194,"maintainers_count":4,"last_synced_at":"2026-11-21T17:00:01.256Z"},{"repository":"psf/requests","url":"https://github.com/psf/requests","issues_count":4201,"pull_requests_count":3058,"issues_closed_count":4031,"merged_pull_requests_count":1678,"avg_time_to_close_issue_days":102.1,"avg_time_to_close_pr_days":43.2,"past_year_issues_count":123,"past_year_pr_count":412,"maintainers_count":9,"last_synced_at":"2026-11-20T20:00:16.009Z"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"avg_time_to_close_issue_days":1,"avg_time_to_close_pr_days":1,"issues_closed_count":1,"issues_count":1,"last_synced_at":1,"maintainers_count":1,"merged_pull_requests_count":1,"past_year_issues_count":1,"past_year_pr_count":1,"pull_requests_count":1,"repository":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.703Z","activated_at":"2026-12-06T03:57:27.703Z","active":true,"contract_hash":"12f9d1c0bb45bca13939acaec73e33146f5e3ede1ff45d59f8b57a43c2426037","fields_count":12}]}