Discover/git-scm.com API
live

git-scm.com APIgit-scm.com

Access Git command documentation, versioned reference pages, Pro Git book chapters, and the Git glossary via a structured JSON API with 9 endpoints.

Endpoints
9
Updated
26d ago
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.
Use it in your codegrab 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'
All endpoints · 9 totalclick to expand

Get homepage content including navigation links, content blocks, and the latest Git version number.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "title": "string, page title",
    "content_blocks": "object containing page content sections keyed by section name (e.g. masthead, front_content)",
    "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 distributed version control system..."
      },
      "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.com API

The git-scm.com API exposes 9 endpoints covering Git command references, versioned documentation, the Pro Git book table of contents and chapter text, and the full Git glossary. Use get_command_doc to retrieve every documentation section for a named command like git-rebase or git-log, or call get_book_chapter with a chapter slug to pull the full prose of any Pro Git section as plain text.

Command Reference

get_reference_index returns all Git commands organized into named categories, each with a commands array. For a flat list suitable for iteration, get_all_commands_list returns a total count plus every command's name, category, and url. Once you have a command name, get_command_doc retrieves its full documentation as a sections object — keys are section names (Synopsis, Description, Options, Examples, etc.) and values are the corresponding text. To target a specific Git release, get_command_doc_by_version accepts both a command and a version string (e.g. 2.40.0); if the exact version isn't available, the response reflects the nearest available version rather than returning an error.

Pro Git Book

get_book_toc returns the full table of contents as a chapters array, each entry carrying a chapter title and a sections array with slugs you can pass directly to get_book_chapter. That endpoint returns the chapter's title and content as a plain-text string, making it straightforward to index or display book sections programmatically.

Search and Glossary

search_docs accepts a case-insensitive query string and returns results across both the command reference index and the Git glossary, with each result typed as either glossary or command. get_glossary returns the entire glossary as a flat object where each key is a term name and the value is an HTML description string — useful for building offline reference tools or documentation search indexes.

Homepage and Navigation

get_homepage exposes the latest_version string alongside navigation_links (each with text, url, and description) and content_blocks keyed by section name. This is the simplest way to programmatically check the current stable Git release number without parsing a release page.

Common use cases
  • Build a CLI tool that fetches the Options section of any Git command via get_command_doc and displays it inline in the terminal.
  • Track when git-scm.com updates the latest_version field on the homepage to trigger downstream version-bump automation.
  • Generate a searchable offline Git reference by combining get_all_commands_list with per-command calls to get_command_doc.
  • Diff documentation between two Git releases using get_command_doc_by_version with different version inputs for the same command.
  • Index every Pro Git book chapter for full-text search by iterating slugs from get_book_toc and fetching content via get_book_chapter.
  • Populate a Git glossary tooltip system using the term-to-HTML mapping returned by get_glossary.
  • Power a documentation search feature that queries both commands and glossary terms through search_docs.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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?+
No. git-scm.com does not publish an official developer API. This Parse API provides structured JSON access to the documentation, command reference, Pro Git book, and glossary content published on the site.
What does `get_command_doc_by_version` return when the requested version doesn't exist?+
The endpoint returns documentation for the nearest available version rather than an error. The version field in the response reflects what was requested, so you should check the returned title or sections to confirm which version's content was actually served.
Does the API cover Git documentation in languages other than English?+
Not currently. All endpoints return English-language content from git-scm.com. You can fork this API on Parse and revise it to target the localized documentation paths the site provides for other languages.
Does `search_docs` support filtering results to only commands or only glossary terms?+
The search_docs endpoint returns a combined results array where each item has a type field set to either glossary or command. Filtering to one type requires client-side filtering on that field. The API currently does not accept a type filter parameter; you can fork it on Parse and revise it to add that parameter.
Are man page sections like CONFIGURATION or NOTES always present in the `sections` object from `get_command_doc`?+
Not for every command. The sections object keys vary by command — simpler commands may only have Synopsis, Description, and Options, while commands like git-config include additional sections. Always check for key existence before accessing a specific section in your code.
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.