curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/labels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "firecrawl/firecrawl"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/labels"
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/labels', 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/labels",
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/labels"
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/labels")
.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/labels")
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{
"count": 3,
"has_next": true,
"labels": [
{
"color": "f2c94c",
"default": false,
"description": null,
"id": 9916384425,
"name": "/map"
},
{
"color": "f2c94c",
"default": false,
"description": null,
"id": 9750447226,
"name": "/scrape"
},
{
"color": "8bfe82",
"default": false,
"description": "",
"id": 9301447387,
"name": "$100"
}
],
"next_page": 2,
"observed_at_ms": 1789441359075,
"page": 1,
"per_page": 3,
"repo": "firecrawl/firecrawl",
"source_url": "https://github.com/firecrawl/firecrawl/labels",
"upstream_requests": 1
}Labels
The labels defined in a repository (name, color, description, whether GitHub-default), one page of up to 100. Use the names with issues and issue_counts.
curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/labels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repo": "firecrawl/firecrawl"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/labels"
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/labels', 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/labels",
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/labels"
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/labels")
.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/labels")
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{
"count": 3,
"has_next": true,
"labels": [
{
"color": "f2c94c",
"default": false,
"description": null,
"id": 9916384425,
"name": "/map"
},
{
"color": "f2c94c",
"default": false,
"description": null,
"id": 9750447226,
"name": "/scrape"
},
{
"color": "8bfe82",
"default": false,
"description": "",
"id": 9301447387,
"name": "$100"
}
],
"next_page": 2,
"observed_at_ms": 1789441359075,
"page": 1,
"per_page": 3,
"repo": "firecrawl/firecrawl",
"source_url": "https://github.com/firecrawl/firecrawl/labels",
"upstream_requests": 1
}Request contract
- Method and path: POST /apis/v1/github/repositories/labels
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/github/repositories/labels
{
"operationId": "github.repositories.labels",
"method": "POST",
"path": "/apis/v1/github/repositories/labels",
"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": {
"per_page": 3,
"repo": "firecrawl/firecrawl"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"repo": {}
},
"required": [
"repo"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"page": {
"default": 1,
"description": "1-based page; has_next in the response says whether page+1 exists.\n\nProvider reference: minimum 1; maximum 1000; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"per_page": {
"default": 100,
"description": "Records per page.\n\nProvider reference: minimum 1; maximum 100; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"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"
},
"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.Authorizations
Body
- 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}(?:[/?#].*)?$.
Response
The labels defined in a repository (name, color, description, whether GitHub-default), one page of up to 100. Use the names with issues and issue_counts.
The response contains the tool result directly.
The provider identifies labels as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
color | string | Hex without #. |
default | boolean | |
description | string | |
id | number | |
name | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.