curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/issue-counts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "firecrawl/firecrawl"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/issue-counts"
payload = { "repo": "firecrawl/firecrawl" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repo: 'firecrawl/firecrawl'})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/issue-counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/github/repositories/issue-counts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'repo' => 'firecrawl/firecrawl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/github/repositories/issue-counts"
payload := strings.NewReader("{\n \"repo\": \"firecrawl/firecrawl\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/github/repositories/issue-counts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"repo\": \"firecrawl/firecrawl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/issue-counts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"repo\": \"firecrawl/firecrawl\"\n}"
response = http.request(request)
puts response.read_body{
"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
}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.
curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/issue-counts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "firecrawl/firecrawl"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/issue-counts"
payload = { "repo": "firecrawl/firecrawl" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repo: 'firecrawl/firecrawl'})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/issue-counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/github/repositories/issue-counts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'repo' => 'firecrawl/firecrawl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/github/repositories/issue-counts"
payload := strings.NewReader("{\n \"repo\": \"firecrawl/firecrawl\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/github/repositories/issue-counts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"repo\": \"firecrawl/firecrawl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/issue-counts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"repo\": \"firecrawl/firecrawl\"\n}"
response = http.request(request)
puts response.read_body{
"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
}请求规范
- 方法与路径: POST /apis/v1/github/repositories/issue-counts
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/github/repositories/issue-counts
{
"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"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
- Option 1
- Option 2
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}(?:[/?#].*)?$.
响应
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.