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

# Search discovered resources



## OpenAPI

````yaml /openapi.json get /discovery/search
openapi: 3.1.0
info:
  title: openx402 Facilitator API
  version: 0.1.0
  description: >-
    HTTP, Bazaar discovery, analytics, and facilitator endpoints for openx402 on
    Stellar. This production API playground targets the public hosted testnet
    facilitator. Self-hosted operators can copy this specification and replace
    the server URL.
servers:
  - url: https://facilitator-production-8430.up.railway.app
    description: Hosted Stellar testnet preview
security: []
tags:
  - name: Health
    description: Liveness and readiness checks.
  - name: Facilitator
    description: x402 verification, settlement, and supported capabilities.
  - name: Bazaar discovery
    description: Public catalog browsing and ranked search.
  - name: Analytics
    description: Operator analytics. Fields and access depend on deployment configuration.
paths:
  /discovery/search:
    get:
      tags:
        - Bazaar discovery
      summary: Search discovered resources
      operationId: searchDiscoveryResources
      parameters:
        - $ref: '#/components/parameters/Query'
        - $ref: '#/components/parameters/Type'
        - $ref: '#/components/parameters/Network'
        - $ref: '#/components/parameters/Scheme'
        - $ref: '#/components/parameters/PayTo'
        - $ref: '#/components/parameters/Asset'
        - $ref: '#/components/parameters/MaxPrice'
        - $ref: '#/components/parameters/Extensions'
        - $ref: '#/components/parameters/Mode'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Ranked resources with partial-result state and a cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  parameters:
    Query:
      name: query
      in: query
      required: true
      schema:
        type: string
        maxLength: 512
        example: weather API in Mumbai
    Type:
      name: type
      in: query
      schema:
        type: string
        enum:
          - http
          - mcp
    Network:
      name: network
      in: query
      schema:
        type: string
        example: stellar:testnet
    Scheme:
      name: scheme
      in: query
      schema:
        type: string
        example: exact
    PayTo:
      name: payTo
      in: query
      schema:
        type: string
        example: G...
    Asset:
      name: asset
      in: query
      schema:
        type: string
        example: CDLZFC3...
    MaxPrice:
      name: maxPrice
      in: query
      description: Atomic-unit maximum. Provide asset too so the unit is unambiguous.
      schema:
        type: string
        pattern: ^(0|[1-9][0-9]{0,38})$
    Extensions:
      name: extensions
      in: query
      schema:
        type: string
        example: bazaar
    Mode:
      name: mode
      in: query
      schema:
        type: string
        enum:
          - lexical
          - semantic
          - hybrid
        default: hybrid
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 20
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
  schemas:
    SearchResponse:
      type: object
      required:
        - x402Version
        - resources
        - pagination
        - partialResults
      properties:
        x402Version:
          type: integer
          example: 2
        resources:
          type: array
          items:
            $ref: '#/components/schemas/DiscoveryResource'
        partialResults:
          type: boolean
        pagination:
          $ref: '#/components/schemas/FreeformObject'
    DiscoveryResource:
      type: object
      required:
        - resource
        - type
        - x402Version
        - accepts
      properties:
        resource:
          type: string
          format: uri
        type:
          type: string
          enum:
            - http
            - mcp
        x402Version:
          type: integer
          example: 2
        accepts:
          type: array
          items:
            $ref: '#/components/schemas/PaymentAccept'
        lastUpdated:
          type: string
          format: date-time
        description:
          type: string
        serviceName:
          type: string
        tags:
          type: array
          items:
            type: string
        extensions:
          type: object
          additionalProperties: true
      additionalProperties: true
    FreeformObject:
      type: object
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: string
      additionalProperties: true
    PaymentAccept:
      type: object
      additionalProperties: true
      properties:
        scheme:
          type: string
        network:
          type: string
        asset:
          type: string
        amount:
          type: string
        payTo:
          type: string
  responses:
    BadRequest:
      description: Invalid request or filter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````