get:
  tags:
    - All Resources
    - Playlists
    - Tracks
  summary: 'Search for TrackPositions'
  operationId: track_positions.search_playlists
  deprecated: true
  description: >-
    Resource route for getting a list of `TrackPositions`
    with filtering based on provided parameters. Currently only the latest results within the
    provided date range are included.

    Omitting start and end dates will return latest data for the passed params. Only limited amount of data
    in the past is scanned for getting the latest, so some old tracks may not have data in this case.  
    
    `DSP` param is disabled, only Amazon data is returned
  security:
    - bearerAuth: [ ]
  parameters:
    - $ref: '../parameters/start_date_optional.yaml'
    - $ref: '../parameters/end_date_optional.yaml'
    - $ref: '../parameters/dsp.yaml'
    - $ref: '../parameters/playlist_id.yaml'
    - $ref: '../parameters/playlist_type_array.yaml'
    - $ref: '../parameters/artist_id.yaml'
    - $ref: '../parameters/isrc_array.yaml'
    - $ref: '../parameters/country_code_array_without_ww.yaml'
    - $ref: '../parameters/streams_country_code_array.yaml'
    - $ref: '../parameters/include_tracklist_playlist.yaml'
    - $ref: '../parameters/limit_range.yaml'
    - $ref: '../parameters/cursor.yaml'
    - $ref: '../parameters/bigtable_limit.yaml'
    - $ref: '../parameters/offset.yaml'
    - $ref: '../parameters/group_by_field.yaml'
    - $ref: '../parameters/sort_by_track_positions_playlists.yaml'
    - $ref: '../parameters/sort_order.yaml'
  responses:
    200:
      $ref: '../responses/PlaylistTrackPositionsResponse.yaml'
    400:
      $ref: '../responses/InvalidInput.yaml'
    401:
      $ref: '../responses/Unauthorized.yaml'
    500:
      $ref: '../responses/InternalError.yaml'