# 2s.io GitHub Tags API

> 2s.io GitHub Tags API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Returns git tags (name + commit SHA) for a GitHub repository, ordered most recent first

## Facts

- Endpoint: GET https://2s.io/api/github/tags
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-github-tags-api-ff052178
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G3ldOy39TjlCnzJr7uGWR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-github-tags-api-ff052178
```

Example prompt: Can you list all the git tags for the facebook/react repository on GitHub, showing me the tag names and their commit SHAs, starting from the most recent?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call lookup of git tags without managing GitHub API credentials. Especially useful for agents that need tag/commit-SHA pairs to cross-reference with releases (pair with github.releases endpoint). Prefer over direct GitHub API when no API key is available or when working within an x402 micropayment workflow.

## Known failure modes

- Repository not found or is private — returns 404 or empty list
- Invalid owner or repo name format — validation error from schema
- Rate limiting or upstream GitHub API unavailability — service error
- Payment failure for the $0.001 USDC x402 microtransaction — request blocked

## How this service works

Git tags of a repository (name + commit sha), most recent first. Pair with github.releases for published releases. Read-only; no caller key needed.

## Output

A paginated list of git tags for the specified repository, each containing the tag name and the commit SHA it points to, ordered most recent first. No authentication required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "owner",
      "repo"
     ],
     "properties": {
      "page": {
       "type": "integer",
       "minimum": 1
      },
      "repo": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1
      },
      "owner": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1
      },
      "perPage": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-github-tags-api-ff052178/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
