This file was auto-generated by openapi-typescript. Do not make direct changes to the file.

interface paths {
    "/collections/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    { repo_id?: (...)
                                    | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/collections/{collection_id}/ranking_by_issues/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { collection_id: number };
                query?: { period?: "past_28_days" | "past_month" };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        current_period_growth?: (...)
                                        | (...);
                                        growth_pop?: (...) | (...);
                                        past_period_growth?: (...) | (...);
                                        rank_pop?: (...) | (...);
                                        repo_id?: (...) | (...);
                                        repo_name?: (...) | (...);
                                        total?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/collections/{collection_id}/ranking_by_prs/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { collection_id: number };
                query?: { period?: "past_28_days" | "past_month" };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        current_period_growth?: (...)
                                        | (...);
                                        growth_pop?: (...) | (...);
                                        past_period_growth?: (...) | (...);
                                        rank_pop?: (...) | (...);
                                        repo_id?: (...) | (...);
                                        repo_name?: (...) | (...);
                                        total?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/collections/{collection_id}/ranking_by_stars/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { collection_id: number };
                query?: { period?: "past_28_days" | "past_month" };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        current_period_growth?: (...)
                                        | (...);
                                        growth_pop?: (...) | (...);
                                        past_period_growth?: (...) | (...);
                                        rank_pop?: (...) | (...);
                                        repo_id?: (...) | (...);
                                        repo_name?: (...) | (...);
                                        total?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/collections/{collection_id}/repos/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { collection_id: number };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    { repo_id?: (...)
                                    | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/collections/hot/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        id?: (...)
                                        | (...);
                                        name?: (...) | (...);
                                        repo_current_period_rank?: (...) | (...);
                                        repo_id?: (...) | (...);
                                        repo_name?: (...) | (...);
                                        repo_past_period_rank?: (...) | (...);
                                        repo_rank_changes?: (...) | (...);
                                        repos?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/issue_creators/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: {
                    exclude_bots?: boolean;
                    page?: number;
                    page_size?: number;
                    sort?:
                        | "issues"
                        | "issues-desc"
                        | "first_issue_opened_at"
                        | "first_issue_opened_at-desc"
                        | "login";
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        first_issue_opened_at?: (...)
                                        | (...);
                                        id?: (...) | (...);
                                        issues?: (...) | (...);
                                        login?: (...) | (...);
                                        name?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/issue_creators/countries/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        country_code?: (...)
                                        | (...);
                                        issue_creators?: (...) | (...);
                                        percentage?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/issue_creators/history/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    { date?: (...)
                                    | (...); issue_creators?: (...) | (...) } & {
                                        [key: string]: unknown;
                                    }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/issue_creators/organizations/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        issue_creators?: (...)
                                        | (...);
                                        org_name?: (...) | (...);
                                        percentage?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/pull_request_creators/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: {
                    exclude_bots?: boolean;
                    page?: number;
                    page_size?: number;
                    sort?:
                        | "login"
                        | "prs"
                        | "prs-desc"
                        | "first_pr_opened_at"
                        | "first_pr_opened_at-desc"
                        | "first_pr_merged_at"
                        | "first_pr_merged_at-desc";
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: (
                                    {
                                        first_pr_merged_at?: (...)
                                        | (...);
                                        first_pr_opened_at?: (...) | (...);
                                        id?: (...) | (...);
                                        login?: (...) | (...);
                                        name?: (...) | (...);
                                        prs?: (...) | (...);
                                    } & { [key: string]: unknown }
                                )[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/pull_request_creators/countries/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: {
                                    country_code?: string;
                                    percentage?: string;
                                    pull_request_creators?: string;
                                }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/pull_request_creators/history/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: { date?: string; pull_request_creators?: string }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/pull_request_creators/organizations/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: {
                                    org_name?: string;
                                    percentage?: string;
                                    pull_request_creators?: string;
                                }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/stargazers/countries/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: {
                                    country_code?: string;
                                    percentage?: string;
                                    stargazers?: string;
                                }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/stargazers/history/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: { date?: string; stargazers?: string }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/repos/{owner}/{repo}/stargazers/organizations/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { owner: string; repo: string };
                query?: { exclude_unknown?: boolean; from?: string; to?: string };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: {
                                    org_name?: string;
                                    percentage?: string;
                                    stargazers?: string;
                                }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
    "/trends/repos/": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: {
                    language?: | "All"
                    | "JavaScript"
                    | "Java"
                    | "Python"
                    | "PHP"
                    | "C++"
                    | "C#"
                    | "TypeScript"
                    | "Shell"
                    | "C"
                    | "Ruby"
                    | "Rust"
                    | "Go"
                    | "Kotlin"
                    | "HCL"
                    | "PowerShell"
                    | "CMake"
                    | "Groovy"
                    | "PLpgSQL"
                    | "TSQL"
                    | "Dart"
                    | "Swift"
                    | "HTML"
                    | "CSS"
                    | "Elixir"
                    | "Haskell"
                    | "Solidity"
                    | "Assembly"
                    | "R"
                    | "Scala"
                    | "Julia"
                    | "Lua"
                    | "Clojure"
                    | "Erlang"
                    | "Common Lisp"
                    | "Emacs Lisp"
                    | "OCaml"
                    | "MATLAB"
                    | "Objective-C"
                    | "Perl"
                    | "Fortran";
                    period?: "past_month"
                    | "past_24_hours"
                    | "past_week"
                    | "past_3_months";
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                columns: (
                                    {
                                        col: string;
                                        data_type: | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...)
                                        | (...);
                                        nullable: boolean;
                                    } & { [key: string]: unknown }
                                )[];
                                result: {
                                    code?: number;
                                    databases?: (...)[];
                                    end_ms?: number;
                                    latency?: string;
                                    limit?: number;
                                    message?: string;
                                    row_affect?: number;
                                    row_count?: number;
                                    start_ms?: number;
                                } & { [key: string]: unknown };
                                rows: {
                                    collection_names?: string;
                                    contributor_logins?: string;
                                    description?: string;
                                    forks?: string;
                                    primary_language?: string;
                                    pull_requests?: string;
                                    pushes?: string;
                                    repo_id?: string;
                                    repo_name?: string;
                                    stars?: string;
                                    total_score?: string;
                                }[];
                            };
                            type: "sql_endpoint";
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    };
}

Properties

"/collections/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { repo_id?: (...)
                                | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { repo_id?: (...)
                                | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List collections

    List collections.

    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              { repo_id?: (...)
                              | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            { repo_id?: (...)
                            | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/collections/{collection_id}/ranking_by_issues/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Repository ranking by issues

    Rank the GitHub repositories in the specified collection according to the number of issues.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { collection_id: number };
          query?: { period?: "past_28_days" | "past_month" };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { collection_id: number }
        • collection_id: number

          The ID of collection

      • Optionalquery?: { period?: "past_28_days" | "past_month" }
        • Optionalperiod?: "past_28_days" | "past_month"

          The period of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  current_period_growth?: (...)
                                  | (...);
                                  growth_pop?: (...) | (...);
                                  past_period_growth?: (...) | (...);
                                  rank_pop?: (...) | (...);
                                  repo_id?: (...) | (...);
                                  repo_name?: (...) | (...);
                                  total?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                current_period_growth?: (...)
                                | (...);
                                growth_pop?: (...) | (...);
                                past_period_growth?: (...) | (...);
                                rank_pop?: (...) | (...);
                                repo_id?: (...) | (...);
                                repo_name?: (...) | (...);
                                total?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/collections/{collection_id}/ranking_by_prs/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Repository ranking by prs

    Rank the GitHub repositories in the specified collection according to the number of pull requests.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { collection_id: number };
          query?: { period?: "past_28_days" | "past_month" };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { collection_id: number }
        • collection_id: number

          The ID of collection

      • Optionalquery?: { period?: "past_28_days" | "past_month" }
        • Optionalperiod?: "past_28_days" | "past_month"

          The period of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  current_period_growth?: (...)
                                  | (...);
                                  growth_pop?: (...) | (...);
                                  past_period_growth?: (...) | (...);
                                  rank_pop?: (...) | (...);
                                  repo_id?: (...) | (...);
                                  repo_name?: (...) | (...);
                                  total?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                current_period_growth?: (...)
                                | (...);
                                growth_pop?: (...) | (...);
                                past_period_growth?: (...) | (...);
                                rank_pop?: (...) | (...);
                                repo_id?: (...) | (...);
                                repo_name?: (...) | (...);
                                total?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/collections/{collection_id}/ranking_by_stars/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: { period?: "past_28_days" | "past_month" };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    current_period_growth?: (...)
                                    | (...);
                                    growth_pop?: (...) | (...);
                                    past_period_growth?: (...) | (...);
                                    rank_pop?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    total?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Repository ranking by stars

    Rank the GitHub repositories in the specified collection according to the number of stars.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { collection_id: number };
          query?: { period?: "past_28_days" | "past_month" };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { collection_id: number }
        • collection_id: number

          The ID of collection

      • Optionalquery?: { period?: "past_28_days" | "past_month" }
        • Optionalperiod?: "past_28_days" | "past_month"

          The period of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  current_period_growth?: (...)
                                  | (...);
                                  growth_pop?: (...) | (...);
                                  past_period_growth?: (...) | (...);
                                  rank_pop?: (...) | (...);
                                  repo_id?: (...) | (...);
                                  repo_name?: (...) | (...);
                                  total?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                current_period_growth?: (...)
                                | (...);
                                growth_pop?: (...) | (...);
                                past_period_growth?: (...) | (...);
                                rank_pop?: (...) | (...);
                                repo_id?: (...) | (...);
                                repo_name?: (...) | (...);
                                total?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/collections/{collection_id}/repos/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { repo_id?: (...)
                                | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { collection_id: number };
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { repo_id?: (...)
                                | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List collection repositories

    List the repositories of collection.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { collection_id: number };
          query?: undefined;
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { collection_id: number }
        • collection_id: number

          The ID of collection

      • Optionalquery?: undefined
    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              { repo_id?: (...)
                              | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            { repo_id?: (...)
                            | (...); repo_name?: (...) | (...) } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/collections/hot/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    id?: (...)
                                    | (...);
                                    name?: (...) | (...);
                                    repo_current_period_rank?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    repo_past_period_rank?: (...) | (...);
                                    repo_rank_changes?: (...) | (...);
                                    repos?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    id?: (...)
                                    | (...);
                                    name?: (...) | (...);
                                    repo_current_period_rank?: (...) | (...);
                                    repo_id?: (...) | (...);
                                    repo_name?: (...) | (...);
                                    repo_past_period_rank?: (...) | (...);
                                    repo_rank_changes?: (...) | (...);
                                    repos?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List hot collections

    List hot collections with top repositories of the collection.

    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  id?: (...)
                                  | (...);
                                  name?: (...) | (...);
                                  repo_current_period_rank?: (...) | (...);
                                  repo_id?: (...) | (...);
                                  repo_name?: (...) | (...);
                                  repo_past_period_rank?: (...) | (...);
                                  repo_rank_changes?: (...) | (...);
                                  repos?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                id?: (...)
                                | (...);
                                name?: (...) | (...);
                                repo_current_period_rank?: (...) | (...);
                                repo_id?: (...) | (...);
                                repo_name?: (...) | (...);
                                repo_past_period_rank?: (...) | (...);
                                repo_rank_changes?: (...) | (...);
                                repos?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/issue_creators/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: {
                exclude_bots?: boolean;
                page?: number;
                page_size?: number;
                sort?:
                    | "issues"
                    | "issues-desc"
                    | "first_issue_opened_at"
                    | "first_issue_opened_at-desc"
                    | "login";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    first_issue_opened_at?: (...)
                                    | (...);
                                    id?: (...) | (...);
                                    issues?: (...) | (...);
                                    login?: (...) | (...);
                                    name?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: {
                exclude_bots?: boolean;
                page?: number;
                page_size?: number;
                sort?:
                    | "issues"
                    | "issues-desc"
                    | "first_issue_opened_at"
                    | "first_issue_opened_at-desc"
                    | "login";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    first_issue_opened_at?: (...)
                                    | (...);
                                    id?: (...) | (...);
                                    issues?: (...) | (...);
                                    login?: (...) | (...);
                                    name?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List issue creators

    Querying the issue creators for a given repository.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: {
              exclude_bots?: boolean;
              page?: number;
              page_size?: number;
              sort?:
                  | "issues"
                  | "issues-desc"
                  | "first_issue_opened_at"
                  | "first_issue_opened_at-desc"
                  | "login";
          };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: {
            exclude_bots?: boolean;
            page?: number;
            page_size?: number;
            sort?:
                | "issues"
                | "issues-desc"
                | "first_issue_opened_at"
                | "first_issue_opened_at-desc"
                | "login";
        }
        • Optionalexclude_bots?: boolean

          Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: ti-chi-bot).

        • Optionalpage?: number

          Page number of the results to fetch.

        • Optionalpage_size?: number

          The number of results per page (max 100).

        • Optionalsort?:
              | "issues"
              | "issues-desc"
              | "first_issue_opened_at"
              | "first_issue_opened_at-desc"
              | "login"

          Specify the field by which to sort the issue creators list (values with a -desc suffix indicate descending sorting)

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  first_issue_opened_at?: (...)
                                  | (...);
                                  id?: (...) | (...);
                                  issues?: (...) | (...);
                                  login?: (...) | (...);
                                  name?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                first_issue_opened_at?: (...)
                                | (...);
                                id?: (...) | (...);
                                issues?: (...) | (...);
                                login?: (...) | (...);
                                name?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/issue_creators/countries/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    country_code?: (...)
                                    | (...);
                                    issue_creators?: (...) | (...);
                                    percentage?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    country_code?: (...)
                                    | (...);
                                    issue_creators?: (...) | (...);
                                    percentage?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List countries/regions of issue creators

    List countries/regions of stargazers for the specified repository.

    > **Notice**:
    > In the overall data, about **3.5%** of GitHub users provided valid country/region information.
    
    > **Note**:
    > By default, the API does not count users without valid country/region information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude issue creators with unknown country/region information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  country_code?: (...)
                                  | (...);
                                  issue_creators?: (...) | (...);
                                  percentage?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                country_code?: (...)
                                | (...);
                                issue_creators?: (...) | (...);
                                percentage?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/issue_creators/history/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { date?: (...)
                                | (...); issue_creators?: (...) | (...) } & {
                                    [key: string]: unknown;
                                }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                { date?: (...)
                                | (...); issue_creators?: (...) | (...) } & {
                                    [key: string]: unknown;
                                }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Issue creators history

    Querying the historical trend of the number of issue creators in a given repository.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { from?: string; per?: "day" | "week" | "month"; to?: string }
        • Optionalfrom?: string

          The start date of the time range.

        • Optionalper?: "day" | "week" | "month"

          The time interval of the data points.

        • Optionalto?: string

          The end date of the time range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              { date?: (...)
                              | (...); issue_creators?: (...) | (...) } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            { date?: (...)
                            | (...); issue_creators?: (...) | (...) } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/issue_creators/organizations/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    issue_creators?: (...)
                                    | (...);
                                    org_name?: (...) | (...);
                                    percentage?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    issue_creators?: (...)
                                    | (...);
                                    org_name?: (...) | (...);
                                    percentage?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List organizations of stargazers

    List organizations of stargazers for the specified repository.

    > **Notice**:
    > In the overall data, about **5.62%** of GitHub users provided valid organization information.
    
    > **Note**:
    > By default, the API does not count users without valid organization information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude issue creators with unknown organization information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  issue_creators?: (...)
                                  | (...);
                                  org_name?: (...) | (...);
                                  percentage?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                issue_creators?: (...)
                                | (...);
                                org_name?: (...) | (...);
                                percentage?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/pull_request_creators/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: {
                exclude_bots?: boolean;
                page?: number;
                page_size?: number;
                sort?:
                    | "login"
                    | "prs"
                    | "prs-desc"
                    | "first_pr_opened_at"
                    | "first_pr_opened_at-desc"
                    | "first_pr_merged_at"
                    | "first_pr_merged_at-desc";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    first_pr_merged_at?: (...)
                                    | (...);
                                    first_pr_opened_at?: (...) | (...);
                                    id?: (...) | (...);
                                    login?: (...) | (...);
                                    name?: (...) | (...);
                                    prs?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: {
                exclude_bots?: boolean;
                page?: number;
                page_size?: number;
                sort?:
                    | "login"
                    | "prs"
                    | "prs-desc"
                    | "first_pr_opened_at"
                    | "first_pr_opened_at-desc"
                    | "first_pr_merged_at"
                    | "first_pr_merged_at-desc";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: (
                                {
                                    first_pr_merged_at?: (...)
                                    | (...);
                                    first_pr_opened_at?: (...) | (...);
                                    id?: (...) | (...);
                                    login?: (...) | (...);
                                    name?: (...) | (...);
                                    prs?: (...) | (...);
                                } & { [key: string]: unknown }
                            )[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List pull request creators

    Querying the pull request creators list in a given repository.

    This API provides multiple ways to sort the query results, for example:
    
    - `sort=prs-desc` (Default): Sorted in descending order based on `prs` field (the number of PRs they have contributed), meaning that the contributor with the most PRs is at the top.
    - `sort=first_pr_merged_at-desc`: Sorted in descending order based on `first_pr_merged_at` field (the time of their first merged PR), which means you can got a list of new code contributors of the repository.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: {
              exclude_bots?: boolean;
              page?: number;
              page_size?: number;
              sort?:
                  | "login"
                  | "prs"
                  | "prs-desc"
                  | "first_pr_opened_at"
                  | "first_pr_opened_at-desc"
                  | "first_pr_merged_at"
                  | "first_pr_merged_at-desc";
          };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: {
            exclude_bots?: boolean;
            page?: number;
            page_size?: number;
            sort?:
                | "login"
                | "prs"
                | "prs-desc"
                | "first_pr_opened_at"
                | "first_pr_opened_at-desc"
                | "first_pr_merged_at"
                | "first_pr_merged_at-desc";
        }
        • Optionalexclude_bots?: boolean

          Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: ti-chi-bot).

        • Optionalpage?: number

          Page number of the results to fetch.

        • Optionalpage_size?: number

          The number of results per page (max 100).

        • Optionalsort?:
              | "login"
              | "prs"
              | "prs-desc"
              | "first_pr_opened_at"
              | "first_pr_opened_at-desc"
              | "first_pr_merged_at"
              | "first_pr_merged_at-desc"

          Specify the field by which to sort the pull request creators list (values with a -desc suffix indicate descending sorting)

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: (
                              {
                                  first_pr_merged_at?: (...)
                                  | (...);
                                  first_pr_opened_at?: (...) | (...);
                                  id?: (...) | (...);
                                  login?: (...) | (...);
                                  name?: (...) | (...);
                                  prs?: (...) | (...);
                              } & { [key: string]: unknown }
                          )[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: (
                            {
                                first_pr_merged_at?: (...)
                                | (...);
                                first_pr_opened_at?: (...) | (...);
                                id?: (...) | (...);
                                login?: (...) | (...);
                                name?: (...) | (...);
                                prs?: (...) | (...);
                            } & { [key: string]: unknown }
                        )[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/pull_request_creators/countries/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                country_code?: string;
                                percentage?: string;
                                pull_request_creators?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                country_code?: string;
                                percentage?: string;
                                pull_request_creators?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List countries/regions of PR creators

    List countries/regions of pull request creators for the specified repository.

    > **Notice**:
    > In the overall data, about **3.5%** of GitHub users provided valid country/region information.
    
    > **Note**:
    > By default, the API does not count users without valid country/region information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude issue creators with unknown country/region information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: {
                              country_code?: string;
                              percentage?: string;
                              pull_request_creators?: string;
                          }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: {
                            country_code?: string;
                            percentage?: string;
                            pull_request_creators?: string;
                        }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/pull_request_creators/history/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { date?: string; pull_request_creators?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { date?: string; pull_request_creators?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Pull request creators history

    Querying the historical trend of the number of pull request creators in a given repository.

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { from?: string; per?: "day" | "week" | "month"; to?: string }
        • Optionalfrom?: string

          The start date of the time range.

        • Optionalper?: "day" | "week" | "month"

          The time interval of the data points.

        • Optionalto?: string

          The end date of the time range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: { date?: string; pull_request_creators?: string }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: { date?: string; pull_request_creators?: string }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/pull_request_creators/organizations/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                org_name?: string;
                                percentage?: string;
                                pull_request_creators?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                org_name?: string;
                                percentage?: string;
                                pull_request_creators?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List organizations of PR creators

    List organizations of pull request creators for the specified repository.

    > **Notice**:
    > In the overall data, about **5.62%** of GitHub users has valid organization information.
    
    > **Note**:
    > By default, the API does not count users without valid organization information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude PR creators with unknown organization information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: {
                              org_name?: string;
                              percentage?: string;
                              pull_request_creators?: string;
                          }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: {
                            org_name?: string;
                            percentage?: string;
                            pull_request_creators?: string;
                        }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/stargazers/countries/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                country_code?: string;
                                percentage?: string;
                                stargazers?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                country_code?: string;
                                percentage?: string;
                                stargazers?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List countries/regions of stargazers

    List countries/regions of stargazers for the specified repository.

    > **Notice**:
    > In the overall data, about **3.5%** of GitHub users provided valid country/region information.
    
    > **Note**:
    > By default, the API does not count users without valid country/region information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude issue creators with unknown country/region information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: {
                              country_code?: string;
                              percentage?: string;
                              stargazers?: string;
                          }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: {
                            country_code?: string;
                            percentage?: string;
                            stargazers?: string;
                        }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/stargazers/history/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { date?: string; stargazers?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { date?: string; stargazers?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    Stargazers history

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

    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { from?: string; per?: "day" | "week" | "month"; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { from?: string; per?: "day" | "week" | "month"; to?: string }
        • Optionalfrom?: string

          The start date of the time range.

        • Optionalper?: "day" | "week" | "month"

          The time interval of the data points.

        • Optionalto?: string

          The end date of the time range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: { date?: string; stargazers?: string }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: { date?: string; stargazers?: string }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/repos/{owner}/{repo}/stargazers/organizations/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { org_name?: string; percentage?: string; stargazers?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { owner: string; repo: string };
            query?: { exclude_unknown?: boolean; from?: string; to?: string };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: { org_name?: string; percentage?: string; stargazers?: string }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List organizations of stargazers

    List organizations of stargazers for the specified repository.

    > **Notice**:
    > In the overall data, about **5.62%** of GitHub users provided valid organization information.
    
    > **Note**:
    > By default, the API does not count users without valid organization information.
    > If you need to count these users, you can set the `exclude_unknown` parameter to `false`.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path: { owner: string; repo: string };
          query?: { exclude_unknown?: boolean; from?: string; to?: string };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • path: { owner: string; repo: string }
        • owner: string

          The owner of the repo.

          pingcap
          
        • repo: string

          The name of the repo.

          tidb
          
      • Optionalquery?: { exclude_unknown?: boolean; from?: string; to?: string }
        • Optionalexclude_unknown?: boolean

          Whether to exclude stargazers with unknown organization information

        • Optionalfrom?: string

          The start date of the range.

        • Optionalto?: string

          The end date of the range.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: { org_name?: string; percentage?: string; stargazers?: string }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: { org_name?: string; percentage?: string; stargazers?: string }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined
"/trends/repos/": {
    delete?: undefined;
    get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: {
                language?:
                    | "All"
                    | "JavaScript"
                    | "Java"
                    | "Python"
                    | "PHP"
                    | "C++"
                    | "C#"
                    | "TypeScript"
                    | "Shell"
                    | "C"
                    | "Ruby"
                    | "Rust"
                    | "Go"
                    | "Kotlin"
                    | "HCL"
                    | "PowerShell"
                    | "CMake"
                    | "Groovy"
                    | "PLpgSQL"
                    | "TSQL"
                    | "Dart"
                    | "Swift"
                    | "HTML"
                    | "CSS"
                    | "Elixir"
                    | "Haskell"
                    | "Solidity"
                    | "Assembly"
                    | "R"
                    | "Scala"
                    | "Julia"
                    | "Lua"
                    | "Clojure"
                    | "Erlang"
                    | "Common Lisp"
                    | "Emacs Lisp"
                    | "OCaml"
                    | "MATLAB"
                    | "Objective-C"
                    | "Perl"
                    | "Fortran";
                period?: "past_month"
                | "past_24_hours"
                | "past_week"
                | "past_3_months";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                collection_names?: string;
                                contributor_logins?: string;
                                description?: string;
                                forks?: string;
                                primary_language?: string;
                                pull_requests?: string;
                                pushes?: string;
                                repo_id?: string;
                                repo_name?: string;
                                stars?: string;
                                total_score?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    };
    head?: undefined;
    options?: undefined;
    parameters: {
        cookie?: undefined;
        header?: undefined;
        path?: undefined;
        query?: undefined;
    };
    patch?: undefined;
    post?: undefined;
    put?: undefined;
    trace?: undefined;
}

Type declaration

  • Optionaldelete?: undefined
  • get: {
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: {
                language?:
                    | "All"
                    | "JavaScript"
                    | "Java"
                    | "Python"
                    | "PHP"
                    | "C++"
                    | "C#"
                    | "TypeScript"
                    | "Shell"
                    | "C"
                    | "Ruby"
                    | "Rust"
                    | "Go"
                    | "Kotlin"
                    | "HCL"
                    | "PowerShell"
                    | "CMake"
                    | "Groovy"
                    | "PLpgSQL"
                    | "TSQL"
                    | "Dart"
                    | "Swift"
                    | "HTML"
                    | "CSS"
                    | "Elixir"
                    | "Haskell"
                    | "Solidity"
                    | "Assembly"
                    | "R"
                    | "Scala"
                    | "Julia"
                    | "Lua"
                    | "Clojure"
                    | "Erlang"
                    | "Common Lisp"
                    | "Emacs Lisp"
                    | "OCaml"
                    | "MATLAB"
                    | "Objective-C"
                    | "Perl"
                    | "Fortran";
                period?: "past_month"
                | "past_24_hours"
                | "past_week"
                | "past_3_months";
            };
        };
        requestBody?: undefined;
        responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            columns: (
                                {
                                    col: string;
                                    data_type: | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    nullable: boolean;
                                } & { [key: string]: unknown }
                            )[];
                            result: {
                                code?: number;
                                databases?: (...)[];
                                end_ms?: number;
                                latency?: string;
                                limit?: number;
                                message?: string;
                                row_affect?: number;
                                row_count?: number;
                                start_ms?: number;
                            } & { [key: string]: unknown };
                            rows: {
                                collection_names?: string;
                                contributor_logins?: string;
                                description?: string;
                                forks?: string;
                                primary_language?: string;
                                pull_requests?: string;
                                pushes?: string;
                                repo_id?: string;
                                repo_name?: string;
                                stars?: string;
                                total_score?: string;
                            }[];
                        };
                        type: "sql_endpoint";
                    };
                };
                headers: { [name: string]: unknown };
            };
        };
    }

    List trending repos

    Trending repos is an open source alternative to GitHub trends, which showcases recently popular open source projects in the GitHub community.

    > **Note**
    >
    > Please URI encode the requested parameters, e.g. `C++` needs to be encoded as `C%2B%2B`.
    
    ☁️ Daily run on [TiDB Cloud](https://tidbcloud.com/?utm_source=ossinsight&utm_medium=ossinsight_api), analyze upon dataset that has over 6 billion GitHub events.
    
    • parameters: {
          cookie?: undefined;
          header?: undefined;
          path?: undefined;
          query?: {
              language?:
                  | "All"
                  | "JavaScript"
                  | "Java"
                  | "Python"
                  | "PHP"
                  | "C++"
                  | "C#"
                  | "TypeScript"
                  | "Shell"
                  | "C"
                  | "Ruby"
                  | "Rust"
                  | "Go"
                  | "Kotlin"
                  | "HCL"
                  | "PowerShell"
                  | "CMake"
                  | "Groovy"
                  | "PLpgSQL"
                  | "TSQL"
                  | "Dart"
                  | "Swift"
                  | "HTML"
                  | "CSS"
                  | "Elixir"
                  | "Haskell"
                  | "Solidity"
                  | "Assembly"
                  | "R"
                  | "Scala"
                  | "Julia"
                  | "Lua"
                  | "Clojure"
                  | "Erlang"
                  | "Common Lisp"
                  | "Emacs Lisp"
                  | "OCaml"
                  | "MATLAB"
                  | "Objective-C"
                  | "Perl"
                  | "Fortran";
              period?: "past_month"
              | "past_24_hours"
              | "past_week"
              | "past_3_months";
          };
      }
      • Optionalcookie?: undefined
      • Optionalheader?: undefined
      • Optionalpath?: undefined
      • Optionalquery?: {
            language?:
                | "All"
                | "JavaScript"
                | "Java"
                | "Python"
                | "PHP"
                | "C++"
                | "C#"
                | "TypeScript"
                | "Shell"
                | "C"
                | "Ruby"
                | "Rust"
                | "Go"
                | "Kotlin"
                | "HCL"
                | "PowerShell"
                | "CMake"
                | "Groovy"
                | "PLpgSQL"
                | "TSQL"
                | "Dart"
                | "Swift"
                | "HTML"
                | "CSS"
                | "Elixir"
                | "Haskell"
                | "Solidity"
                | "Assembly"
                | "R"
                | "Scala"
                | "Julia"
                | "Lua"
                | "Clojure"
                | "Erlang"
                | "Common Lisp"
                | "Emacs Lisp"
                | "OCaml"
                | "MATLAB"
                | "Objective-C"
                | "Perl"
                | "Fortran";
            period?: "past_month"
            | "past_24_hours"
            | "past_week"
            | "past_3_months";
        }
        • Optionallanguage?:
              | "All"
              | "JavaScript"
              | "Java"
              | "Python"
              | "PHP"
              | "C++"
              | "C#"
              | "TypeScript"
              | "Shell"
              | "C"
              | "Ruby"
              | "Rust"
              | "Go"
              | "Kotlin"
              | "HCL"
              | "PowerShell"
              | "CMake"
              | "Groovy"
              | "PLpgSQL"
              | "TSQL"
              | "Dart"
              | "Swift"
              | "HTML"
              | "CSS"
              | "Elixir"
              | "Haskell"
              | "Solidity"
              | "Assembly"
              | "R"
              | "Scala"
              | "Julia"
              | "Lua"
              | "Clojure"
              | "Erlang"
              | "Common Lisp"
              | "Emacs Lisp"
              | "OCaml"
              | "MATLAB"
              | "Objective-C"
              | "Perl"
              | "Fortran"

          Specify using which programming language to filter trending repos. If not specified, all languages will be included.

        • Optionalperiod?: "past_month" | "past_24_hours" | "past_week" | "past_3_months"

          Specify the period of time to calculate trending repos.

    • OptionalrequestBody?: undefined
    • responses: {
          "200": {
              content: {
                  "application/json": {
                      data: {
                          columns: (
                              {
                                  col: string;
                                  data_type: | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  nullable: boolean;
                              } & { [key: string]: unknown }
                          )[];
                          result: {
                              code?: number;
                              databases?: (...)[];
                              end_ms?: number;
                              latency?: string;
                              limit?: number;
                              message?: string;
                              row_affect?: number;
                              row_count?: number;
                              start_ms?: number;
                          } & { [key: string]: unknown };
                          rows: {
                              collection_names?: string;
                              contributor_logins?: string;
                              description?: string;
                              forks?: string;
                              primary_language?: string;
                              pull_requests?: string;
                              pushes?: string;
                              repo_id?: string;
                              repo_name?: string;
                              stars?: string;
                              total_score?: string;
                          }[];
                      };
                      type: "sql_endpoint";
                  };
              };
              headers: { [name: string]: unknown };
          };
      }
      • 200: {
            content: {
                "application/json": {
                    data: {
                        columns: (
                            {
                                col: string;
                                data_type: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                nullable: boolean;
                            } & { [key: string]: unknown }
                        )[];
                        result: {
                            code?: number;
                            databases?: (...)[];
                            end_ms?: number;
                            latency?: string;
                            limit?: number;
                            message?: string;
                            row_affect?: number;
                            row_count?: number;
                            start_ms?: number;
                        } & { [key: string]: unknown };
                        rows: {
                            collection_names?: string;
                            contributor_logins?: string;
                            description?: string;
                            forks?: string;
                            primary_language?: string;
                            pull_requests?: string;
                            pushes?: string;
                            repo_id?: string;
                            repo_name?: string;
                            stars?: string;
                            total_score?: string;
                        }[];
                    };
                    type: "sql_endpoint";
                };
            };
            headers: { [name: string]: unknown };
        }

        Default Response

  • Optionalhead?: undefined
  • Optionaloptions?: undefined
  • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
  • Optionalpatch?: undefined
  • Optionalpost?: undefined
  • Optionalput?: undefined
  • Optionaltrace?: undefined