100% free for Open Source, forever. Get another set of eyes on your code.

/ Code Climate

Code Climate API (Deprecated)

Note: This API is unsupported and has been deprecated in favor of Code
Climate's new API,
in public beta as of November 2016. The new Code Climate API offers a richer
set of resources and operates on a personal access token system.

Support for the endpoints below in the new API is forthcoming. For now, feel
free to continue using what we have here.

Requirements

The API has two requirements:

SSL (aka, https)

Your API token (which is passed as the request parameter "api_token")

To access your API token:

From your Dashboard, next to your organization's name, click Organization.

Select the Integrations tab. Your API token will be listed on this page.

Note: Ensure you are not viewing a repository’s Integrations tab. Since your API token lives at the organization-level, it is accessed in your organization’s Integrations tab.

Note: API tokens are currently only available for Code Climate organizations on paid plans. They are not currently available for users that only have open source repositories (though this is something we plan to change in the future).

GET /api/repos/:repo_id

GET /api/repos/:repo_id/branches/:branch_name

Retrieves information about a particular repo. The repo id can be found in the URL on any repo page.

The response includes information about the repo requested (e.g. name, branch), as well as meta-data from the last two snapshots performed (e.g. commit SHA, GPA, test coverage percentage). If you use the branch variety of the call, it instead returns the last two spapshots performed for that branch.