curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/file"
payload = { "url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore" }
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({
url: 'https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore'
})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/file', 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/file",
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([
'url' => 'https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore'
]),
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/file"
payload := strings.NewReader("{\n \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\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/file")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/file")
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 \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\n}"
response = http.request(request)
puts response.read_body{
"content": ".DS_Store\n/node_modules/\n/dist/\n.env\n*.csv\ndump.rdb\n/mongo-data\napps/js-sdk/node_modules/\n\napps/api/.env.local\n\napps/test-suite/node_modules/\n\n\napps/test-suite/.env\napps/test-suite/logs\n\napps/playwright-service-ts/node_modules/\napps/playwright-service-ts/package-lock.json\n\n\n/examples/o1_web_crawler/venv\n*.pyc\n.rdb\n\napps/js-sdk/firecrawl/dist\n\n/examples/o1_web_crawler/firecrawl_env\n/examples/crm_lead_enrichment/crm_lead_enrichment_env\n/.venv\n/examples/claude_web_crawler/firecrawl_env\n/examples/haiku_web_crawler/firecrawl_env\n/examples/sonnet_web_crawler/firecrawl_env\n/examples/internal_link_assitant/firecrawl_env\n\n/apps/api/logs/*\n/apps/api/debug/*\n\n.vscode\nllm-links.txt\nmapped-links.txt\ngke-key.json\n\nCLAUDE.local.md\n\n*.egg-info/\n# local SDK venv\napps/python-sdk/.venv/\n\n/apps/api/running-docs/\n\n\n/apps/go-html-to-md-service/.gomodcache/\ntarget/\n\n.cursor/\n\n# local files\n_local/\n\n\napps/api/src/lib/scrape-interact/*.md\n.pnpm-store\n\n# stray test runner logs\nvitest.out\n\ntmp/",
"content_type": "text/plain; charset=utf-8",
"observed_at_ms": 1792172213215,
"path": ".gitignore",
"ref": "386330419c6924cc5d733e59abca9b857241acc4",
"repo": "firecrawl/firecrawl",
"returned_bytes": 982,
"size_bytes": 982,
"source_url": "https://github.com/firecrawl/firecrawl/blob/386330419c6924cc5d733e59abca9b857241acc4/.gitignore",
"truncated": false,
"upstream_requests": 1,
"url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore"
}File
The text of one file in a public GitHub repository at a branch, tag or commit, given as a raw.githubusercontent.com URL, a github.com blob URL, or repo plus path (ref defaults to HEAD, the default branch). One ranged GET to raw.githubusercontent.com, which does not use the REST API’s 60/hour quota. Returns at most the first 1 MiB: size_bytes is the full size and truncated marks a cut file, reported as partial. A binary or non-UTF-8 file fails with invalid_input (not_text); a missing file, ref or repository is not_found.
curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore"
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/file"
payload = { "url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore" }
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({
url: 'https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore'
})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/file', 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/file",
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([
'url' => 'https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore'
]),
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/file"
payload := strings.NewReader("{\n \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\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/file")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/file")
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 \"url\": \"https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore\"\n}"
response = http.request(request)
puts response.read_body{
"content": ".DS_Store\n/node_modules/\n/dist/\n.env\n*.csv\ndump.rdb\n/mongo-data\napps/js-sdk/node_modules/\n\napps/api/.env.local\n\napps/test-suite/node_modules/\n\n\napps/test-suite/.env\napps/test-suite/logs\n\napps/playwright-service-ts/node_modules/\napps/playwright-service-ts/package-lock.json\n\n\n/examples/o1_web_crawler/venv\n*.pyc\n.rdb\n\napps/js-sdk/firecrawl/dist\n\n/examples/o1_web_crawler/firecrawl_env\n/examples/crm_lead_enrichment/crm_lead_enrichment_env\n/.venv\n/examples/claude_web_crawler/firecrawl_env\n/examples/haiku_web_crawler/firecrawl_env\n/examples/sonnet_web_crawler/firecrawl_env\n/examples/internal_link_assitant/firecrawl_env\n\n/apps/api/logs/*\n/apps/api/debug/*\n\n.vscode\nllm-links.txt\nmapped-links.txt\ngke-key.json\n\nCLAUDE.local.md\n\n*.egg-info/\n# local SDK venv\napps/python-sdk/.venv/\n\n/apps/api/running-docs/\n\n\n/apps/go-html-to-md-service/.gomodcache/\ntarget/\n\n.cursor/\n\n# local files\n_local/\n\n\napps/api/src/lib/scrape-interact/*.md\n.pnpm-store\n\n# stray test runner logs\nvitest.out\n\ntmp/",
"content_type": "text/plain; charset=utf-8",
"observed_at_ms": 1792172213215,
"path": ".gitignore",
"ref": "386330419c6924cc5d733e59abca9b857241acc4",
"repo": "firecrawl/firecrawl",
"returned_bytes": 982,
"size_bytes": 982,
"source_url": "https://github.com/firecrawl/firecrawl/blob/386330419c6924cc5d733e59abca9b857241acc4/.gitignore",
"truncated": false,
"upstream_requests": 1,
"url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore"
}Request contract
- Method and path: POST /apis/v1/github/repositories/file
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/github/repositories/file
{
"operationId": "github.repositories.file",
"method": "POST",
"path": "/apis/v1/github/repositories/file",
"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": {
"url": "https://raw.githubusercontent.com/firecrawl/firecrawl/386330419c6924cc5d733e59abca9b857241acc4/.gitignore"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"path": {}
},
"required": [
"path"
]
},
{
"properties": {
"repo": {}
},
"required": [
"repo"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"path": {
"description": "File path inside the repository, for example `skills/frontend-design/SKILL.md`.",
"type": "string"
},
"ref": {
"description": "Branch, tag or commit SHA, with repo and path. Defaults to HEAD, the default branch.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"repo": {
"description": "Repository as `owner/name`, for example `anthropics/skills`. Requires path. 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://raw.githubusercontent.com/{owner}/{name}/{ref}/{path} or https://github.com/{owner}/{name}/blob/{ref}/{path}. The ref is one segment (branch, tag or SHA) or refs/heads/{branch}. Provide exactly one of url or repo with path. Pattern: ^(?:https?://)?(?:raw\\.githubusercontent\\.com/[^/?#\\s]+/[^/?#\\s]+/|(?:www\\.)?github\\.com/[^/?#\\s]+/[^/?#\\s]+/(?:blob|raw)/)[^?#\\s]+(?:[?#].*)?$.",
"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.0001 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
- Option 3
https://raw.githubusercontent.com/{owner}/{name}/{ref}/{path} or https://github.com/{owner}/{name}/blob/{ref}/{path}. The ref is one segment (branch, tag or SHA) or refs/heads/{branch}. Provide exactly one of url or repo with path. Pattern: ^(?:https?://)?(?:raw.githubusercontent.com/[^/?#\s]+/[^/?#\s]+/|(?:www.)?github.com/[^/?#\s]+/[^/?#\s]+/(?:blob|raw)/)[^?#\s]+(?:[?#].*)?$.
Response
The text of one file in a public GitHub repository at a branch, tag or commit, given as a raw.githubusercontent.com URL, a github.com blob URL, or repo plus path (ref defaults to HEAD, the default branch). One ranged GET to raw.githubusercontent.com, which does not use the REST API's 60/hour quota. Returns at most the first 1 MiB: size_bytes is the full size and truncated marks a cut file, reported as partial. A binary or non-UTF-8 file fails with invalid_input (not_text); a missing file, ref or repository is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
content | string | The file's text; the first 1 MiB when truncated, cut at a character boundary. |
content_type | string | Content-Type GitHub served. |
observed_at_ms | number | |
path | string | File path as requested, URL-encoded. |
ref | string | Branch, tag, SHA or HEAD as requested, URL-encoded. |
repo | string | owner/name as requested. |
returned_bytes | number | UTF-8 bytes in content. |
size_bytes | number | Full file size in bytes. |
source_url | string | https://github.com/{owner}/{name}/blob/{ref}/{path} |
truncated | boolean | True when the file is larger than content. |
upstream_requests | number | |
url | string | The raw.githubusercontent.com URL read. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.