OSS Insight Docs

OSSInsight Public API

OSSInsight Public APIs (beta) provide a convenient way to access insight data for open source projects on GitHub, supplementing the existing GitHub API.

Version: v1beta

OSSInsight Public APIs (beta) provide a convenient way to access insight data for open source projects on GitHub, supplementing the existing GitHub API.

Explore Endpoints

Collections

Trends

Issue Creators

Pull Request Creators

Stargazers

Usage

The OSSInsight Public API follows the OpenAPI specification and can be called with tools like curl or any HTTP client library.

Base URL

https://api.ossinsight.io/v1

Authentication

No authentication is required for the beta version of the public API, though rate limits apply.

Rate Limit

Per IP address, the current limit is 600 requests per hour.

Headers
x-ratelimit-limit: 600x-ratelimit-remaining: 599

There is also a global limit of 1000 requests per minute.

Headers
x-ratelimit-limit-minute: 1000x-ratelimit-remaining-minute: 97

Example

To find the countries or regions of stargazers in pingcap/tidb, you can call:

cURL
curl https://api.ossinsight.io/v1/repos/pingcap/tidb/stargazers/countries
Example Response
Response
{  "type": "sql_endpoint",  "data": {    "columns": [      { "col": "country_or_area", "data_type": "CHAR", "nullable": true },      { "col": "count", "data_type": "BIGINT", "nullable": true },      { "col": "percentage", "data_type": "DECIMAL", "nullable": true }    ],    "rows": [      { "count": "9183", "country_or_area": "CN", "percentage": "0.5936" },      { "count": "1542", "country_or_area": "US", "percentage": "0.0997" },      { "count": "471", "country_or_area": "JP", "percentage": "0.0304" }    ]  }}

Showcase

  • github1s.com: One second to read GitHub code with VS Code.
  • Raycast OSS Insight: A Raycast extension powered by OSS Insight APIs.
  • ChatGH: Chat with GitHub APIs using natural language.
  • ossinsight-x: Automatically post trending repositories to social media every day.

Request New API