Discover/git-scm API
live

git-scm APIgit-scm.com

Access Git command docs, Pro Git book chapters, glossary terms, and version-specific references via the git-scm.com API. 9 structured endpoints.

Endpoint health
verified 1d ago
get_reference_index
get_book_chapter
get_homepage
get_command_doc
get_all_commands_list
9/9 passing latest checkself-healing
Endpoints
9
Updated
22d ago

What is the git-scm API?

The git-scm.com API exposes 9 endpoints covering the full surface of the official Git documentation site: command reference pages (including version-specific docs via get_command_doc_by_version), the Pro Git book table of contents and chapter text, the complete Git glossary, and a cross-cutting search endpoint. Every response returns structured fields like sections, chapters, and terms rather than raw HTML, so you can consume documentation programmatically without parsing markup.

Try it

No input parameters required.

api.parse.bot/scraper/8b5ba661-798d-4e0b-ad04-a0eae3fd8286/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/8b5ba661-798d-4e0b-ad04-a0eae3fd8286/get_homepage' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace git-scm-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Git-SCM API — browse commands, read docs, search glossary."""
from parse_apis.git_scm_api import GitScm, DocumentNotFound

client = GitScm()

# List available Git commands (capped to 5 total items).
for cmd in client.commands.list(limit=5):
    print(cmd.name, cmd.category, cmd.url)

# Fetch full documentation for a specific command.
doc = client.commanddocs.get(command="git-commit")
print(doc.command, doc.title, list(doc.sections.keys())[:4])

# Use the constructible shortcut to get version-specific docs.
older_doc = client.commanddoc("git-merge").by_version(version="2.40.0")
print(older_doc.command, older_doc.version, len(older_doc.sections))

# Browse Pro Git book table of contents.
chapter = client.bookchapters.list(limit=1).first()
if chapter:
    print(chapter.chapter, len(chapter.sections))

# Read a chapter section's full content.
try:
    content = client.bookcontents.get(chapter_slug="Getting-Started-About-Version-Control")
    print(content.title, content.content[:100])
except DocumentNotFound as exc:
    print(f"chapter not found: {exc}")

# Search across commands and glossary terms.
for result in client.searchresults.search(query="merge", limit=3):
    print(result.type, result.title)

print("exercised: commands.list / commanddocs.get / commanddoc.by_version / bookchapters.list / bookcontents.get / searchresults.search")
All endpoints · 9 totalmissing one? ·

Get the Git homepage content including navigation links, content blocks, and the latest released Git version number. Returns a single Homepage object with the current state of the git-scm.com front page.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "title": "string, page title",
    "content_blocks": "object containing page content sections keyed by section name",
    "latest_version": "string, latest Git release version number",
    "navigation_links": "array of navigation link objects with text, url, and description"
  },
  "sample": {
    "data": {
      "title": "Git",
      "content_blocks": {
        "masthead": "Git is a free and open source..."
      },
      "latest_version": "2.54.0",
      "navigation_links": [
        {
          "url": "/about",
          "text": "About",
          "description": "Git's performance and ecosystem"
        },
        {
          "url": "/learn",
          "text": "Learn",
          "description": "Pro Git book, videos, tutorials, and cheat sheet"
        }
      ]
    },
    "status": "success"
  }
}

About the git-scm API

Command Reference

The get_reference_index endpoint returns all Git commands organized into categories, each entry carrying the command name and its documentation URL. From there, get_command_doc accepts a hyphenated command name (e.g. git-commit, git-log) and returns a sections object keyed by section name — NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXAMPLES — with the full documentation text as values. When you need documentation pinned to a specific Git release, get_command_doc_by_version accepts both a command and a version parameter (e.g. 2.45.0); if that exact version is unavailable for the requested command, the response reflects the nearest available version. get_all_commands_list provides a flat array of all commands with their name, category, and url fields, useful for building command indexes without iterating through categories manually.

Pro Git Book

get_book_toc returns the full table of contents as an array of chapter objects, each containing a chapter title and an array of sections with titles and URL paths. Individual sections are retrieved with get_book_chapter, which takes a chapter_slug (derivable from the TOC section URLs) and returns the section title and full plain-text content. This covers every chapter of the Pro Git book as hosted on git-scm.com.

Glossary and Search

get_glossary returns every entry in the official Git glossary as a terms object mapping term names to HTML description strings, plus a total count. The search_docs endpoint accepts a query string and performs case-insensitive matching across glossary term names, glossary descriptions, and the command reference index. Each result includes a type field (glossary or command) so you can distinguish matches and route them to the appropriate follow-up endpoint.

Homepage

get_homepage retrieves the current front page state, including latest_version (the current Git release string), navigation_links as a structured array, and content_blocks keyed by section name. This is the simplest way to programmatically check what version of Git is currently released without parsing a release page.

Reliability & maintenanceVerified

The git-scm API is a managed, monitored endpoint for git-scm.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when git-scm.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official git-scm.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
9/9 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a CLI tool that fetches and displays Git command documentation inline using get_command_doc sections.
  • Generate a changelog diff between two Git releases by comparing get_command_doc_by_version output for the same command at different versions.
  • Create a searchable Git reference for an internal developer portal using search_docs and get_glossary.
  • Populate a static site with Pro Git book content by iterating get_book_toc chapters and fetching each with get_book_chapter.
  • Monitor the latest Git release version by polling get_homepage for the latest_version field.
  • Build a Git terminology training tool using the full glossary terms and descriptions from get_glossary.
  • Index all Git commands with their categories from get_all_commands_list to power autocomplete in a developer tool.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does git-scm.com have an official developer API?+
Git-scm.com does not publish an official public developer API. The site is the primary distribution point for Git releases and documentation, but it exposes no documented REST or GraphQL API for programmatic access.
What does get_command_doc_by_version return if the exact version doesn't exist for a command?+
The endpoint returns documentation for the nearest available version rather than an error. The response includes a version field reflecting what was requested, but the sections content will correspond to the closest version the site has on record for that command.
Does the search_docs endpoint search inside Pro Git book chapter content?+
Not currently. search_docs matches against glossary term names, glossary descriptions, and the command reference index. Full-text search inside Pro Git book chapters is not covered. You can fork this API on Parse and revise it to add a chapter-content search endpoint using get_book_chapter results as a corpus.
Does get_glossary return plain text or HTML for term descriptions?+
The terms values are HTML strings, not plain text. Descriptions may contain inline markup such as anchor tags and code spans as they appear in the official glossary. If you need plain text, you will need to strip the HTML on your end after receiving the response.
Is there pagination support for get_all_commands_list or get_glossary?+
Neither endpoint supports pagination parameters — both return their full datasets in a single response. get_all_commands_list includes a total integer field and a flat commands array; get_glossary returns a terms object and a total count. If you need paginated delivery, you can fork this API on Parse and revise it to slice results by offset or page parameters.
Page content last updated . Spec covers 9 endpoints from git-scm.com.
Related APIs in Developer ToolsSee all →
help.perforce.com API
Access detailed documentation and reference materials for Perforce Helix Core commands, including command syntax, client configuration options, form fields, and system configurables. Search through the complete P4 command reference to find specific commands, view their parameters, and understand client submission and line ending options.
gitee.com API
Search and explore Gitee repositories by category, view repository metadata and contents, and discover projects from specific users. Access commit history, file structures, and repository details all in one place.
github.com API
Look up GitHub repositories and users: search repositories, fetch repository metadata, releases, issues and issue threads, browse repository files/trees, and retrieve user profiles and starred repositories.
Docs.copia.io API
Search and browse the complete Copia Automation documentation, discover available pages, and retrieve full text content from any page on docs.copia.io. Quickly find answers by searching documentation content or accessing specific guides and references.
deepwiki.com API
Search and retrieve documentation for any GitHub repository indexed on DeepWiki, including wiki pages, table of contents, and source file references in markdown format. Look up repository profiles, discover featured projects, and access complete wiki content all in one place.
docs.opensearch.org API
Search OpenSearch documentation across multiple versions, retrieve specific page content, discover breaking changes, and navigate the docs structure all from a single interface. Instantly find answers by searching the docs or get a complete overview of available versions and site navigation.
quickref.me API
Search and retrieve quick reference guides for hundreds of developer tools, languages, and frameworks from quickref.me. Browse all available cheatsheets, search by keyword, or fetch full content for any topic to instantly access the commands, syntax, and usage notes you need.
roadmap.sh API
Discover and access structured learning roadmaps, detailed guides, interview questions, and community projects to build your development skills across different technologies and career paths. Search through curated learning content, explore topic breakdowns, and find project ideas tailored to your learning goals.