> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentpowers.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Marketplace

> Full-text search across skills and agents. Returns sectioned results.

Sheds load past a process-wide concurrency cap so a request flood cannot
starve the event loop and wedge /health into the liveness-watchdog crash
loop seen in the 2026-06-16 outage (issue #197). Per-IP rate limiting still
applies first via the @limiter decorator; this is the last-resort backstop.

Deliberately does NOT depend on the shared request connection: all of
search's DB work runs off the event loop on dedicated worker connections
(issue #203, see _run_search_db), so the loop stays free to answer /health
under load.



## OpenAPI

````yaml /openapi.json get /v1/search
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/search:
    get:
      tags:
        - search
      summary: Search Marketplace
      description: >-
        Full-text search across skills and agents. Returns sectioned results.


        Sheds load past a process-wide concurrency cap so a request flood cannot

        starve the event loop and wedge /health into the liveness-watchdog crash

        loop seen in the 2026-06-16 outage (issue #197). Per-IP rate limiting
        still

        applies first via the @limiter decorator; this is the last-resort
        backstop.


        Deliberately does NOT depend on the shared request connection: all of

        search's DB work runs off the event loop on dedicated worker connections

        (issue #203, see _run_search_db), so the loop stays free to answer
        /health

        under load.
      operationId: search_marketplace_v1_search_get
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 200
            title: Q
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(skill|agent)$
              - type: 'null'
            title: Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SectionedSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SectionedSearchResponse:
      properties:
        agentpowers:
          $ref: '#/components/schemas/NativeSkillSection'
      additionalProperties: true
      type: object
      required:
        - agentpowers
      title: SectionedSearchResponse
      description: |-
        Top-level search response with sections per source.

        Always has 'agentpowers' key. External source keys added dynamically.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    NativeSkillSection:
      properties:
        items:
          items:
            $ref: '#/components/schemas/SkillSummary'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: NativeSkillSection
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SkillSummary:
      properties:
        slug:
          type: string
          title: Slug
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        long_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Description
        category:
          type: string
          title: Category
        type:
          type: string
          title: Type
        price_cents:
          type: integer
          title: Price Cents
        currency:
          type: string
          title: Currency
        version:
          type: string
          title: Version
        security_status:
          type: string
          title: Security Status
        download_count:
          type: integer
          title: Download Count
        view_count:
          type: integer
          title: View Count
          default: 0
        install_count:
          type: integer
          title: Install Count
          default: 0
        rating_average:
          anyOf:
            - type: number
            - type: 'null'
          title: Rating Average
        rating_count:
          type: integer
          title: Rating Count
          default: 0
        author:
          anyOf:
            - $ref: '#/components/schemas/AuthorSummary'
            - type: 'null'
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        source_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Url
        source_installs:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Installs
        source_stars:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Stars
      type: object
      required:
        - slug
        - title
        - description
        - category
        - type
        - price_cents
        - currency
        - version
        - security_status
        - download_count
      title: SkillSummary
    AuthorSummary:
      properties:
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        github_username:
          anyOf:
            - type: string
            - type: 'null'
          title: Github Username
        display_name_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name Slug
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        verified:
          type: boolean
          title: Verified
          default: false
      type: object
      title: AuthorSummary

````