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

# getStrategies

> Get strategy information.



## OpenAPI

````yaml /openapi.yaml get /getStrategies
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:
  /getStrategies:
    get:
      tags:
        - Strategies
      summary: getStrategies
      description: Get strategy information.
      operationId: getStrategies
      parameters:
        - $ref: '#/components/parameters/optional_api_token'
        - name: strategy_id[]
          in: query
          required: true
          schema:
            type: array
            description: Array of strategy IDs.
            maxItems: 100
            items:
              $ref: '#/components/schemas/strategy_id'
        - name: timeframe
          in: query
          schema:
            $ref: '#/components/schemas/timeframe'
      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: YdNf91nP-Q-YB39RwtlHQ
                        product_id: yvtLPHMNML3th6csjO_bV
                        user_id: user_1
                        type: cryptocurrency
                        private: false
                        name: vdsvdsvds
                        description: ''
                        categories:
                          - other
                        updated_at: '2024-10-07T15:05:09.124Z'
                        created_at: '2024-10-07T15:05:09.124Z'
                        price: 0
                        subscriber_count: '0'
                        timeframes:
                          - timeframe: week
                            rank_performance: '4'
                            rank_popular: '4'
                            rank_trending: '5'
                            rank_top: '5'
                            max_drawdown: '0.000000000000000'
                            past_value: '1.000000000000000'
                          - timeframe: year
                            rank_performance: '4'
                            rank_popular: '4'
                            rank_trending: '5'
                            rank_top: '5'
                            max_drawdown: '0.000000000000000'
                            past_value: '1.000000000000000'
                          - timeframe: day
                            rank_performance: '4'
                            rank_popular: '4'
                            rank_trending: '5'
                            rank_top: '5'
                            max_drawdown: '0.000000000000000'
                            past_value: '1.000000000000000'
                          - timeframe: month
                            rank_performance: '4'
                            rank_popular: '4'
                            rank_trending: '5'
                            rank_top: '5'
                            max_drawdown: '0.000000000000000'
                            past_value: '1.000000000000000'
                          - timeframe: five_year
                            rank_performance: '4'
                            rank_popular: '4'
                            rank_trending: '5'
                            rank_top: '5'
                            max_drawdown: '0.000000000000000'
                            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:
    strategy_id:
      type: string
      description: AlphaInsider strategy identifier.
    timeframe:
      type: string
      description: Time window used for ranking or performance data.
      enum:
        - day
        - week
        - month
        - year
        - five_year
      default: month
    success:
      type: boolean
      description: True when the request succeeded.
    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.

````