Skip to main content
POST
Issue counts

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 Effective request declaration (including authentication and referenced schemas):

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
repo
string
required

Repository as owner/name, for example firecrawl/firecrawl. Provide exactly one of repo or url. Pattern: ^@?/?A-Za-z0-9 [blocked]?/[A-Za-z0-9._-]{1,100}(?:.git)?/?$.

labels
string[]

Labels to count separately, one search each.

state
string
default:open

Issue state to match.

Provider reference: allowed values ["open", "closed", "all"]; default "open".

url
string

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}(?:[/?#].*)?$.

Response

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.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.