Microforge API

Get commit history

Retrieve historical commit count data for a repository

GET
/commit_history

Query Parameters

repo_namestring

Repository name in format owner/repo

Response Body

History of commits to the repository

TypeScript Definitions

Use the response body type in TypeScript.

curl -X GET "https://api.microforge.studio/v1/commit_history?repo_name=rowboatlabs%2Frowboat"
fetch("https://api.microforge.studio/v1/commit_history?repo_name=rowboatlabs%2Frowboat")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.microforge.studio/v1/commit_history?repo_name=rowboatlabs%2Frowboat"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.microforge.studio/v1/commit_history?repo_name=rowboatlabs%2Frowboat"

response = requests.request("GET", url)

print(response.text)
[
  {
    "commit_count": 123,
    "date": "2025-03-04"
  }
]