> ## 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

# Search repos

> Search public GitHub repositories with GitHub's search syntax (free text plus qualifiers such as language:rust, stars:>1000, topic:llm, org:firecrawl, created:>2025-01-01), sorted by best match, stars, forks, help-wanted issues or last update. Returns one page of repository records with stars, forks and dates; total_count is GitHub's overall match count, capped at 1000 reachable results (page * per_page <= 1000). Keyless search is limited to 10 requests per minute per IP. A user:, org: or repo: qualifier naming an account or repository that does not exist or is not visible fails with not_found; any other query GitHub rejects (bad qualifier value, page beyond 1000 results) fails with invalid_input and GitHub's message.

## 请求规范

* **方法与路径:** POST /apis/v1/github/repositories/search-repos
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/github/repositories/search-repos`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi-public/zh/github.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "github.repositories.search-repos",
  "method": "POST",
  "path": "/apis/v1/github/repositories/search-repos",
  "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,
              "query": "web scraping",
              "sort": "stars"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "order": {
              "default": "desc",
              "description": "order\n\nProvider reference: allowed values [\"asc\", \"desc\"]; default \"desc\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "asc",
                  "desc"
                ]
              }
            },
            "page": {
              "default": 1,
              "description": "page\n\nProvider reference: minimum 1; maximum 100; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "per_page": {
              "default": 10,
              "description": "per_page\n\nProvider reference: minimum 1; maximum 100; default 10.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "query": {
              "description": "GitHub repository search query.",
              "type": "string"
            },
            "sort": {
              "default": "best_match",
              "description": "sort\n\nProvider reference: allowed values [\"best_match\", \"stars\", \"forks\", \"help_wanted_issues\", \"updated\"]; default \"best_match\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "best_match",
                  "stars",
                  "forks",
                  "help_wanted_issues",
                  "updated"
                ]
              }
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi-public/zh/github.json POST /apis/v1/github/repositories/search-repos
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:9dc6e539704826c0c3ce6b4314a66e0e0af86714e3c0350d0ce04fdb4b5c98ce
  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/search-repos:
    post:
      tags:
        - GitHub
      summary: Search repos
      description: >-
        Search public GitHub repositories with GitHub's search syntax (free text
        plus qualifiers such as language:rust, stars:>1000, topic:llm,
        org:firecrawl, created:>2025-01-01), sorted by best match, stars, forks,
        help-wanted issues or last update. Returns one page of repository
        records with stars, forks and dates; total_count is GitHub's overall
        match count, capped at 1000 reachable results (page * per_page <= 1000).
        Keyless search is limited to 10 requests per minute per IP. A user:,
        org: or repo: qualifier naming an account or repository that does not
        exist or is not visible fails with not_found; any other query GitHub
        rejects (bad qualifier value, page beyond 1000 results) fails with
        invalid_input and GitHub's message.
      operationId: github.repositories.search-repos
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  per_page: 3
                  query: web scraping
                  sort: stars
            schema:
              additionalProperties: true
              properties:
                order:
                  default: desc
                  description: >-
                    order


                    Provider reference: allowed values ["asc", "desc"]; default
                    "desc".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - asc
                      - desc
                page:
                  default: 1
                  description: |-
                    page

                    Provider reference: minimum 1; maximum 100; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                per_page:
                  default: 10
                  description: |-
                    per_page

                    Provider reference: minimum 1; maximum 100; default 10.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                query:
                  description: GitHub repository search query.
                  type: string
                sort:
                  default: best_match
                  description: >-
                    sort


                    Provider reference: allowed values ["best_match", "stars",
                    "forks", "help_wanted_issues", "updated"]; default
                    "best_match".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - best_match
                      - stars
                      - forks
                      - help_wanted_issues
                      - updated
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T03:02:39.778492+00:00.
                  summary: Official provider example
                  value:
                    count: 3
                    has_next: true
                    incomplete_results: false
                    next_page: 2
                    observed_at_ms: 1789441359778
                    order: desc
                    page: 1
                    per_page: 3
                    query: web scraping
                    repositories:
                      - archived: false
                        created_at: '2024-04-15T21:02:29Z'
                        default_branch: main
                        description: >-
                          The context API to search, scrape, and interact with
                          the web at scale. 🔥
                        disabled: false
                        forks: 9791
                        full_name: firecrawl/firecrawl
                        has_discussions: true
                        has_issues: true
                        has_pages: false
                        has_wiki: false
                        homepage: https://firecrawl.dev
                        id: 787076358
                        is_fork: false
                        is_template: false
                        language: TypeScript
                        license:
                          key: agpl-3.0
                          name: GNU Affero General Public License v3.0
                          spdx_id: AGPL-3.0
                          url: https://api.github.com/licenses/agpl-3.0
                        name: firecrawl
                        open_issues_and_prs: 628
                        owner:
                          avatar_url: >-
                            https://avatars.githubusercontent.com/u/135057108?v=4
                          html_url: https://github.com/firecrawl
                          id: 135057108
                          login: firecrawl
                          type: Organization
                        parent_full_name: null
                        pushed_at: '2026-09-15T02:24:10Z'
                        size_kb: 179466
                        source_url: https://github.com/firecrawl/firecrawl
                        stars: 180475
                        topics:
                          - ai
                          - ai-agents
                          - ai-crawler
                          - ai-scraping
                          - ai-search
                          - crawler
                          - data-extraction
                          - html-to-markdown
                          - llm
                          - markdown
                          - scraper
                          - scraping
                          - web-crawler
                          - web-data
                          - web-data-extraction
                          - web-scraper
                          - web-scraping
                          - web-search
                          - webscraping
                        updated_at: '2026-09-15T03:02:33Z'
                        visibility: public
                        watchers: null
                      - archived: false
                        created_at: '2024-10-13T20:29:53Z'
                        default_branch: main
                        description: >-
                          🕷️ An adaptive Web Scraping framework that handles
                          everything from a single request to a full-scale
                          crawl! Don't be shy, join here:
                          https://discord.gg/EMgGbDceNQ
                        disabled: false
                        forks: 8175
                        full_name: D4Vinci/Scrapling
                        has_discussions: true
                        has_issues: true
                        has_pages: false
                        has_wiki: true
                        homepage: https://scrapling.readthedocs.io/en/latest/
                        id: 872119017
                        is_fork: false
                        is_template: false
                        language: Python
                        license:
                          key: bsd-3-clause
                          name: BSD 3-Clause "New" or "Revised" License
                          spdx_id: BSD-3-Clause
                          url: https://api.github.com/licenses/bsd-3-clause
                        name: Scrapling
                        open_issues_and_prs: 6
                        owner:
                          avatar_url: https://avatars.githubusercontent.com/u/20604835?v=4
                          html_url: https://github.com/D4Vinci
                          id: 20604835
                          login: D4Vinci
                          type: User
                        parent_full_name: null
                        pushed_at: '2026-09-14T19:47:52Z'
                        size_kb: 10036
                        source_url: https://github.com/D4Vinci/Scrapling
                        stars: 80976
                        topics:
                          - ai
                          - ai-scraping
                          - automation
                          - crawler
                          - crawling
                          - crawling-python
                          - data
                          - data-extraction
                          - mcp
                          - mcp-server
                          - playwright
                          - python
                          - scraping
                          - selectors
                          - stealth
                          - web-scraper
                          - web-scraping
                          - web-scraping-python
                          - webscraping
                          - xpath
                        updated_at: '2026-09-15T02:59:00Z'
                        visibility: public
                        watchers: null
                      - archived: false
                        created_at: '2010-02-22T02:01:14Z'
                        default_branch: master
                        description: >-
                          Scrapy, a fast high-level web crawling & scraping
                          framework for Python.
                        disabled: false
                        forks: 11961
                        full_name: scrapy/scrapy
                        has_discussions: true
                        has_issues: true
                        has_pages: false
                        has_wiki: true
                        homepage: https://scrapy.org
                        id: 529502
                        is_fork: false
                        is_template: false
                        language: Python
                        license:
                          key: bsd-3-clause
                          name: BSD 3-Clause "New" or "Revised" License
                          spdx_id: BSD-3-Clause
                          url: https://api.github.com/licenses/bsd-3-clause
                        name: scrapy
                        open_issues_and_prs: 394
                        owner:
                          avatar_url: https://avatars.githubusercontent.com/u/733635?v=4
                          html_url: https://github.com/scrapy
                          id: 733635
                          login: scrapy
                          type: Organization
                        parent_full_name: null
                        pushed_at: '2026-09-14T14:43:54Z'
                        size_kb: 32299
                        source_url: https://github.com/scrapy/scrapy
                        stars: 64350
                        topics:
                          - crawler
                          - crawling
                          - framework
                          - hacktoberfest
                          - python
                          - scraping
                          - web-scraping
                          - web-scraping-python
                        updated_at: '2026-09-15T02:27:23Z'
                        visibility: public
                        watchers: null
                    sort: stars
                    source_url: >-
                      https://github.com/search?type=repositories&q=web%20scraping
                    total_count: 137789
                    upstream_requests: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search public GitHub repositories with GitHub's search syntax (free
            text plus qualifiers such as language:rust, stars:>1000, topic:llm,
            org:firecrawl, created:>2025-01-01), sorted by best match, stars,
            forks, help-wanted issues or last update. Returns one page of
            repository records with stars, forks and dates; total_count is
            GitHub's overall match count, capped at 1000 reachable results (page
            * per_page <= 1000). Keyless search is limited to 10 requests per
            minute per IP. A user:, org: or repo: qualifier naming an account or
            repository that does not exist or is not visible fails with
            not_found; any other query GitHub rejects (bad qualifier value, page
            beyond 1000 results) fails with invalid_input and GitHub's message.


            The response contains the tool result directly.


            The provider identifies `repositories` as the primary payload key.


            | Documented field | Provider type | Description |

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

            | `archived` | boolean |  |

            | `created_at` | string | RFC 3339 UTC |

            | `default_branch` | string |  |

            | `description` | string |  |

            | `disabled` | boolean |  |

            | `forks` | number | forks_count |

            | `full_name` | string | owner/name as GitHub spells it. |

            | `has_discussions` | boolean |  |

            | `has_issues` | boolean |  |

            | `has_pages` | boolean |  |

            | `has_wiki` | boolean |  |

            | `homepage` | string | Project website; null when unset or blank. |

            | `id` | number |  |

            | `is_fork` | boolean |  |

            | `is_template` | boolean |  |

            | `language` | string | Primary language as GitHub detects it. |

            | `license` | object |  |

            | `name` | string |  |

            | `open_issues_and_prs` | number | GitHub's open_issues_count, which
            includes open pull requests. Use issue_counts for issues only. |

            | `owner` | object |  |

            | `parent_full_name` | string | For a fork, the repository it was
            forked from; null otherwise or in search results. |

            | `pushed_at` | string |  |

            | `size_kb` | number |  |

            | `source_url` | string | https://github.com/{owner}/{name} |

            | `stars` | number | stargazers_count |

            | `topics` | string[] |  |

            | `updated_at` | string |  |

            | `visibility` | string |  |

            | `watchers` | number | subscribers_count (people watching). Null in
            search results, which do not carry it. |



            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.