> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Issue counts

> Exact issue counts for a repository (pull requests excluded, unlike the repository's open_issues_count): the total for the given state plus one count per requested label, from GitHub's issue search. Makes 1 + labels.length search requests; at most 5 labels per call because GitHub allows 10 keyless searches per minute per IP.

## Request contract

* **Method and path:** POST /apis/v1/github/repositories/issue-counts
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/github/repositories/issue-counts`

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/github.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "github.repositories.issue-counts",
  "method": "POST",
  "path": "/apis/v1/github/repositories/issue-counts",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "repo": "firecrawl/firecrawl"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "repo": {}
                  },
                  "required": [
                    "repo"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "labels": {
              "description": "Labels to count separately, one search each.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "repo": {
              "description": "Repository as `owner/name`, for example `firecrawl/firecrawl`. Provide exactly one of repo or url. Pattern: ^@?/?[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?/[A-Za-z0-9._-]{1,100}(?:\\.git)?/?$.",
              "type": "string"
            },
            "state": {
              "default": "open",
              "description": "Issue state to match.\n\nProvider reference: allowed values [\"open\", \"closed\", \"all\"]; default \"open\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "open",
                  "closed",
                  "all"
                ]
              }
            },
            "url": {
              "description": "HTTPS github.com/{owner}/{name} URL; deeper paths (issues, tree, ...) are accepted and reduced to the repository. Provide exactly one of repo or url. Pattern: ^(?:https?://)?(?:www\\.)?github\\.com/[A-Za-z0-9-]{1,39}/[A-Za-z0-9._-]{1,100}(?:[/?#].*)?$.",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi-public/github.json POST /apis/v1/github/repositories/issue-counts
openapi: 3.1.0
info:
  description: ''
  title: GitHub
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    github:
      description: ''
      title: GitHub
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 73828e8d56ce13a665df0455fed65723eef8eca8b9daaf3df1dc8393b54fda3a
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/github/profiles/{handle}
    - /apis/v1/github/profiles/{handle}/activity
    - /apis/v1/github/profiles/{handle}/contributions
    - /apis/v1/github/profiles/{handle}/followers
    - /apis/v1/github/profiles/{handle}/following
    - /apis/v1/github/profiles/{handle}/pull-requests
    - /apis/v1/github/profiles/{handle}/repositories
    - /apis/v1/github/repositories
    - /apis/v1/github/repositories/advisory
    - /apis/v1/github/repositories/contributors
    - /apis/v1/github/repositories/file
    - /apis/v1/github/repositories/issue-counts
    - /apis/v1/github/repositories/issues
    - /apis/v1/github/repositories/labels
    - /apis/v1/github/repositories/latest-release
    - /apis/v1/github/repositories/malware-advisories
    - /apis/v1/github/repositories/releases
    - /apis/v1/github/repositories/repo
    - /apis/v1/github/repositories/repo-advisories
    - /apis/v1/github/repositories/search-advisories
    - /apis/v1/github/repositories/search-repos
    - /apis/v1/github/trending/developers
    - /apis/v1/github/trending/repositories
  x-aisa-document:
    composer_version: '31'
    facts_hash: 73828e8d56ce13a665df0455fed65723eef8eca8b9daaf3df1dc8393b54fda3a
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:a055d89f62349e434a949353c82c3e802d4c1431c066f986216eec578e7f054b
    document_hash: sha256:0014d1824663f07a4243d1903cd5129063a4673a5eb1bec96605e5d18d3f74b4
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: github
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/github/repositories/issue-counts:
    post:
      tags:
        - GitHub
      summary: Issue counts
      description: >-
        Exact issue counts for a repository (pull requests excluded, unlike the
        repository's open_issues_count): the total for the given state plus one
        count per requested label, from GitHub's issue search. Makes 1 +
        labels.length search requests; at most 5 labels per call because GitHub
        allows 10 keyless searches per minute per IP.
      operationId: github.repositories.issue-counts
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  repo: firecrawl/firecrawl
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        repo: {}
                      required:
                        - repo
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                labels:
                  description: Labels to count separately, one search each.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                repo:
                  description: >-
                    Repository as `owner/name`, for example
                    `firecrawl/firecrawl`. Provide exactly one of repo or url.
                    Pattern:
                    ^@?/?[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?/[A-Za-z0-9._-]{1,100}(?:\.git)?/?$.
                  type: string
                state:
                  default: open
                  description: >-
                    Issue state to match.


                    Provider reference: allowed values ["open", "closed",
                    "all"]; default "open".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - open
                      - closed
                      - all
                url:
                  description: >-
                    HTTPS github.com/{owner}/{name} URL; deeper paths (issues,
                    tree, ...) are accepted and reduced to the repository.
                    Provide exactly one of repo or url. Pattern:
                    ^(?:https?://)?(?:www\.)?github\.com/[A-Za-z0-9-]{1,39}/[A-Za-z0-9._-]{1,100}(?:[/?#].*)?$.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T03:02:38.757127+00:00.
                  summary: Official provider example
                  value:
                    by_label: []
                    observed_at_ms: 1789441358757
                    repo: firecrawl/firecrawl
                    source_url: >-
                      https://github.com/firecrawl/firecrawl/issues?q=is%3Aissue+is%3Aopen
                    state: open
                    total: 81
                    total_incomplete_results: false
                    upstream_requests: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Exact issue counts for a repository (pull requests excluded, unlike
            the repository's open_issues_count): the total for the given state
            plus one count per requested label, from GitHub's issue search.
            Makes 1 + labels.length search requests; at most 5 labels per call
            because GitHub allows 10 keyless searches per minute per IP.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `by_label` | object[] |  |

            | `observed_at_ms` | number | When the workflow read GitHub, Unix
            milliseconds. |

            | `repo` | string | Normalized owner/name the call resolved to. |

            | `source_url` | string | The github.com page a human would read for
            the same answer. |

            | `state` | string |  |

            | `total` | number | Issues (not PRs) in the given state. |

            | `total_incomplete_results` | boolean | GitHub's incomplete_results
            flag: true when the search timed out and the count is a lower bound.
            |

            | `upstream_requests` | number | GitHub API requests this call made.
            |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.