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

# searchStrategies

> Search strategies.



## OpenAPI

````yaml /openapi.yaml post /searchStrategies
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /searchStrategies:
    post:
      tags:
        - Strategies
      summary: searchStrategies
      description: Search strategies.
      operationId: searchStrategies
      parameters:
        - $ref: '#/components/parameters/optional_api_token'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                search:
                  type: string
                  description: Term to search for.
                type:
                  type: object
                  description: Filter by strategy security type.
                  properties:
                    includes:
                      type: array
                      description: Must ***include*** these types.
                      items:
                        type: string
                        enum:
                          - stock
                          - cryptocurrency
                    excludes:
                      type: array
                      description: Must ***exclude*** these types.
                      items:
                        type: string
                        enum:
                          - stock
                          - cryptocurrency
                categories:
                  type: object
                  description: Filter by category.
                  properties:
                    includes:
                      type: array
                      description: Must ***include*** these categories.
                      items:
                        type: string
                    excludes:
                      type: array
                      description: Must ***exclude*** these categories.
                      items:
                        type: string
                max_drawdown:
                  type: number
                  description: Filter by max drawdown.
                positions:
                  type: object
                  description: Filter by current stock positions.
                  properties:
                    includes:
                      type: array
                      description: >-
                        Must ***include*** these stock positions.
                        `["stock:exchange"]` or `["stock_id"]`
                      maxItems: 100
                      items:
                        type: string
                    excludes:
                      type: array
                      description: >-
                        Must ***exclude*** these stock positions.
                        `["stock:exchange"]` or `["stock_id"]`
                      maxItems: 100
                      items:
                        type: string
                sectors:
                  type: object
                  description: Filter by sector.
                  properties:
                    includes:
                      type: array
                      description: Must ***include*** these sectors.
                      items:
                        type: string
                    excludes:
                      type: array
                      description: Must ***exclude*** these sectors.
                      items:
                        type: string
                trade_count_min:
                  type: number
                  description: Filter by minimum trade count.
                trade_count_max:
                  type: number
                  description: Filter by maximum trade count.
                price_min:
                  type: number
                  description: Filter by minimum price.
                price_max:
                  type: number
                  description: Filter by maximum price.
                created_min:
                  type: string
                  format: date-time
                  description: Filter by minimum strategy created date.
                created_max:
                  type: string
                  format: date-time
                  description: >-
                    Filter by maximum strategy created date.<br/> Must be
                    greater than or equal to created_min.
                timeframe:
                  $ref: '#/components/schemas/timeframe'
                sort:
                  $ref: '#/components/schemas/sort'
                limit:
                  $ref: '#/components/schemas/limit'
                offset_id:
                  $ref: '#/components/schemas/offset_id'
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: array
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    items:
                      type: object
                      properties:
                        strategy_id:
                          $ref: '#/components/schemas/strategy_id'
                        product_id:
                          type: string
                          description: Billing product identifier.
                        user_id:
                          $ref: '#/components/schemas/user_id'
                        type:
                          type: string
                          enum:
                            - stock
                            - cryptocurrency
                          description: Type or category for this object.
                        private:
                          type: boolean
                          description: Whether the strategy is private.
                        name:
                          type: string
                          description: Display name.
                        description:
                          type: string
                          description: Human-readable description.
                        categories:
                          type: array
                          description: Strategy category labels.
                          items:
                            type: string
                        updated_at:
                          $ref: '#/components/schemas/updated_at'
                        created_at:
                          $ref: '#/components/schemas/created_at'
                        price:
                          type: integer
                          description: Price or execution price, depending on context.
                        subscriber_count:
                          type: string
                          description: Number of subscribers.
                        timeframes:
                          type: array
                          description: Per-timeframe ranking and historical value data.
                          items:
                            type: object
                            properties:
                              timeframe:
                                $ref: '#/components/schemas/timeframe'
                              rank_performance:
                                type: string
                                description: Performance rank for the timeframe.
                              rank_popular:
                                type: string
                                description: Popularity rank for the timeframe.
                              rank_trending:
                                type: string
                                description: Trending rank for the timeframe.
                              rank_top:
                                type: string
                                description: Overall top rank for the timeframe.
                              max_drawdown:
                                type: string
                                description: Maximum drawdown for the timeframe.
                              past_value:
                                type: string
                                description: Strategy value at the start of the timeframe.
              examples:
                '200':
                  value:
                    success: true
                    response:
                      - strategy_id: RXKyIAbn7iUy0IPdPg18T
                        product_id: vAXJP6VnKsEJeUgs36ao0
                        user_id: TradingViewTracker
                        type: cryptocurrency
                        private: false
                        name: >-
                          Voss Strategy (Filter + Trend Indicator) [Bitduke] by
                          Bitduke
                        description: >-
                          Created strategy based on Voss Predictive Filter,
                          implemented by TradingView user e2e4mfck. 


                          Voss Predictive Filter 


                          This is a relatively new filter from John F. Ehlers 
                          article,  A Peek Into The Future .  Ehlers describes
                          the calculation of a new filter that could help signal
                          cyclical turning points in markets. 


                          But filter has a negative group delay and while an
                          indicator based on it cannot actually see into the
                          future, it may provide the trader with signals in
                          advance of other indicators.  


                          Trading View Link:
                          https://www.tradingview.com/script/CymW3DRi-Voss-Strategy-Filter-Trend-Indicator-Bitduke/

                          (If you're the owner of this script and would like to
                          delete it. Please contact me:
                          miami_coder@protonmail.com)
                        categories:
                          - other
                        updated_at: '2024-10-15T20:42:57.868Z'
                        created_at: '2023-01-09T19:31:05.177Z'
                        price: 0
                        subscriber_count: '200'
                        timeframes:
                          - timeframe: week
                            rank_performance: '25'
                            rank_popular: '6'
                            rank_trending: '2'
                            rank_top: '5'
                            max_drawdown: '0.008102630749388'
                            past_value: '17.121975147643069'
                          - timeframe: year
                            rank_performance: '1'
                            rank_popular: '6'
                            rank_trending: '1'
                            rank_top: '1'
                            max_drawdown: '0.051727391692518'
                            past_value: '2.258474326291726'
                          - timeframe: month
                            rank_performance: '720'
                            rank_popular: '6'
                            rank_trending: '2'
                            rank_top: '74'
                            max_drawdown: '0.007996851899074'
                            past_value: '18.950175146020312'
                          - timeframe: day
                            rank_performance: '748'
                            rank_popular: '6'
                            rank_trending: '748'
                            rank_top: '748'
                            max_drawdown: '0.004051215253596'
                            past_value: '18.122730158452871'
                          - timeframe: five_year
                            rank_performance: '1'
                            rank_popular: '6'
                            rank_trending: '2'
                            rank_top: '1'
                            max_drawdown: '0.050710664377589'
                            past_value: '1.000000000000000'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
components:
  parameters:
    optional_api_token:
      in: header
      name: Authorization
      description: User API token.
      schema:
        type: string
        format: JWT
  schemas:
    timeframe:
      type: string
      description: Time window used for ranking or performance data.
      enum:
        - day
        - week
        - month
        - year
        - five_year
      default: month
    sort:
      type: string
      description: Sort results by.
      enum:
        - top
        - trending
        - performance
        - popular
        - newest
      default: top
    limit:
      type: number
      description: Number of results to return.
    offset_id:
      type: string
      description: Offet by ID. Used for pagination.
    success:
      type: boolean
      description: True when the request succeeded.
    strategy_id:
      type: string
      description: AlphaInsider strategy identifier.
    user_id:
      type: string
      description: AlphaInsider user identifier.
    updated_at:
      type: string
      format: date-time
      description: Last update timestamp.
    created_at:
      type: string
      format: date-time
      description: Creation timestamp.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.
    '401':
      description: Authentication failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '401':
              value:
                success: false
                response: Authentication failed.

````