v11

OpenAPI 3.0.3raw.githubusercontent.com2024-01-1200163.6 KB
Stargazers

Stargazers history

Querying the historical trend of the number of stargazers in a given repository.

get/repos/{owner}/{repo}/stargazers/history/

Path parameters

ownerstring required

The owner of the repo.

repostring required

The name of the repo.

Query parameters

per'day' | 'week' | 'month'

The time interval of the data points.

fromstring

The start date of the time range.

tostring

The end date of the time range.

Response

Default Response

type'sql_endpoint' required

The type of the endpoint.

Example response

{
  "type": "sql_endpoint",
  "data": {
    "columns": [
      {
        "col": "date",
        "data_type": "VARCHAR",
        "nullable": true
      },
      {
        "col": "pull_request_creators",
        "data_type": "DECIMAL",
        "nullable": true
      }
    ],
    "rows": [
      {
        "date": "2023-04-01",
        "stargazers": "35389"
      },
      {
        "date": "2023-05-01",
        "stargazers": "35593"
      },
      {
        "date": "2023-06-01",
        "stargazers": "35805"
      },
      {
        "date": "2023-07-01",
        "stargazers": "36019"
      },
      {
        "date": "2023-08-01",
        "stargazers": "36026"
      }
    ],
    "result": {
      "code": 200,
      "message": "Query OK!",
      "start_ms": 1690957407469,
      "end_ms": 1690957407499,
      "latency": "30ms",
      "row_count": 5,
      "row_affect": 0,
      "limit": 50,
      "databases": [
        "gharchive_dev"
      ]
    }
  }
}