PingCAP Trends API

The Trends API from PingCAP — 1 operation(s) for trends.

Operations 1

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pingcap-trends-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pingcap-trends-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OSSInsight Public Trends API
  description: OSSInsight Public APIs (beta) provide a convenient way to access insight data for open source projects on GitHub, supplementing the existing GitHub API.
  version: v1beta
servers:
- url: https://api.ossinsight.io/v1
tags:
- name: Trends
paths:
  /trends/repos/:
    get:
      operationId: list-trending-repos
      summary: List trending repos
      tags:
      - Trends
      description: '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, analyze upon dataset that has over 6 billion GitHub events.'
      parameters:
      - schema:
          type: string
          enum:
          - past_24_hours
          - past_week
          - past_month
          - past_3_months
          default: past_24_hours
        in: query
        name: period
        required: false
        description: Specify the period of time to calculate trending repos.
      - schema:
          type: string
          enum:
          - 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
          default: All
        in: query
        name: language
        required: false
        description: Specify using which programming language to filter trending repos. If not specified, all languages will be included.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                - type
                - data
                properties:
                  type:
                    type: string
                    description: The type of the endpoint.
                    enum:
                    - sql_endpoint
                    example: sql_endpoint
                  data:
                    type: object
                    required:
                    - columns
                    - rows
                    - result
                    properties:
                      columns:
                        type: array
                        items:
                          type: object
                          required:
                          - col
                          - data_type
                          - nullable
                          properties:
                            col:
                              type: string
                              description: The name of the column in the query result.
                            data_type:
                              type: string
                              enum:
                              - CHAR
                              - BIGINT
                              - DECIMAL
                              - INT
                              - UNSIGNED BIGINT
                              - TINYINT
                              - TIMESTAMP
                              - TEXT
                              - VARCHAR
                              - DATETIME
                              - DOUBLE
                              - FLOAT
                              - DATE
                              - TIME
                              - YEAR
                              - MEDIUMINT
                              - SMALLINT
                              - BIT
                              - BINARY
                              - VARBINARY
                              - JSON
                              - ENUM
                              - SET
                              - TINYTEXT
                              - MEDIUMTEXT
                              - LONGTEXT
                              - TINYBLOB
                              - MEDIUMBLOB
                              - BLOB
                              - LONGBLOB
                              description: The data type of the column.
                            nullable:
                              type: boolean
                              description: Whether the column is nullable.
                          additionalProperties: true
                        example:
                        - col: repo_id
                          data_type: INT
                        - col: repo_name
                          data_type: VARCHAR
                        - col: primary_language
                          data_type: VARCHAR
                        - col: description
                          data_type: VARCHAR
                        - col: stars
                          data_type: INT
                        - col: forks
                          data_type: INT
                        - col: pull_requests
                          data_type: INT
                        - col: pushes
                          data_type: INT
                        - col: total_score
                          data_type: DOUBLE
                        - col: contributor_logins
                          data_type: VARCHAR
                        - col: collection_names
                          data_type: VARCHAR
                      rows:
                        type: array
                        items:
                          type: object
                          properties:
                            repo_id:
                              type: string
                              description: ID of the repo
                            repo_name:
                              type: string
                              description: Name of the repo
                            primary_language:
                              type: string
                              description: Primary programing language used by the repo
                            description:
                              type: string
                              description: Description of the repo
                            stars:
                              type: string
                              description: Number of stars in the period
                            forks:
                              type: string
                              description: Number of forks in the period
                            pull_requests:
                              type: string
                              description: Number of pull requests in the period
                            pushes:
                              type: string
                              description: Number of pushes in the period
                            total_score:
                              type: string
                              description: Total score of the repo
                            contributor_logins:
                              type: string
                              description: Comma separated list of active contributor logins
                            collection_names:
                              type: string
                              description: Comma separated list of collection names
                        example:
                        - collection_names: CICD
                          contributor_logins: cplee,nektos-ci,usagirei,ae-ou,MrNossiom
                          description: Run your GitHub Actions locally 🚀
                          forks: '5'
                          primary_language: Go
                          pull_requests: '6'
                          pushes: '17'
                          repo_id: '163883279'
                          repo_name: nektos/act
                          stars: '395'
                          total_score: '1565.7526'
                        - collection_names: ChatGPT Alternatives
                          contributor_logins: antonkesy,ruanslv,starplatinum3,AlexandroLuis,realhaik
                          description: Inference code for LLaMA models
                          forks: '48'
                          primary_language: Python
                          pull_requests: '41'
                          pushes: '7'
                          repo_id: '601538369'
                          repo_name: facebookresearch/llama
                          stars: '209'
                          total_score: '1079.0274'
                        - collection_names: Stable Diffusion Ecosystem
                          contributor_logins: atiorh,SaladDays831,ZachNagengast,TimYao18,vzsg
                          description: Stable Diffusion with Core ML on Apple Silicon
                          forks: '5'
                          primary_language: Python
                          pull_requests: '7'
                          pushes: '5'
                          repo_id: '566576114'
                          repo_name: apple/ml-stable-diffusion
                          stars: '99'
                          total_score: '575.2498'
                        - collection_names: Stable Diffusion Ecosystem
                          contributor_logins: danonymous856,EvilPhi666,FurkanGozukara,Prathyusha-98,ca-kishida
                          description: High-Resolution Image Synthesis with Latent Diffusion Models
                          forks: '6'
                          primary_language: Python
                          pull_requests: '2'
                          pushes: ''
                          repo_id: '569927055'
                          repo_name: Stability-AI/stablediffusion
                          stars: '75'
                          total_score: '483.0236'
                      result:
                        type: object
                        properties:
                          code:
                            type: number
                            description: The code of the response.
                          message:
                            type: string
                            description: The message of the response.
                          start_ms:
                            type: number
                            description: The start time of the query in milliseconds.
                          end_ms:
                            type: number
                            description: The end time of the query in milliseconds.
                          latency:
                            type: string
                            description: The latency of the query.
                          row_count:
                            type: number
                            description: The number of rows in the query result.
                          row_affect:
                            type: number
                            description: The number of rows affected by the query.
                          limit:
                            type: number
                            description: The maximum number of rows in the query result.
                          databases:
                            type: array
                            description: The databases used in the query.
                            items:
                              type: string
                        additionalProperties: true
                        example:
                          code: 200
                          message: Query OK!
                          start_ms: 1690957407469
                          end_ms: 1690957407499
                          latency: 30ms
                          row_count: 4
                          row_affect: 0
                          limit: 50
                          databases:
                          - gharchive_dev