get:
  tags:
    - All Resources
    - Playlists
    - Tracks
    - Public Playlists
  summary: 'Query for PlaylistTrackPreviousPositions (public)'
  operationId: public.track_position.search_previous_playlists
  description: >-
    Resource route for getting a list of `PlaylistTrackPreviousPositions`.  

    This endpoint can be used to query for playlists which contained requested track (isrc)
    at some point but not currently  
    
    Logic for `isrc` list param: if `isrc=isrc1,isrc2` passed and at least one of these isrcs is 'current' in some playlist - 
    then all of these isrcs are considered 'current' for this playlist (and absent from response)  
    
    Supports multi-field sorting e.g. `&sort_by=num_days_on,removed_date_time&sort_order=asc,desc`  

    Sort by values: 
      * num_days_on
      * earliest_position_date_time
      * removed_date_time
      * playlist_id
      * playlist.followers
  security:
    - bearerAuth: [ ]
  parameters:
    - $ref: '../parameters/isrc_array_required.yaml'
    - $ref: '../parameters/dsp_array.yaml'
    - $ref: '../parameters/playlist_id_array.yaml'
    - $ref: '../parameters/min_removed_date_optional.yaml'
    - $ref: '../parameters/country_code_array_without_ww.yaml'
    - $ref: '../parameters/apple_country_code_array_without_ww.yaml'
    - $ref: '../parameters/playlist_type_array.yaml'
    - $ref: '../parameters/playlist_name_contains.yaml'
    - $ref: '../parameters/playlist_owner_category_id.yaml'
    - $ref: '../parameters/include_ignored.yaml'
    - $ref: '../parameters/include_removed.yaml'
    - $ref: '../parameters/include_track_positions_previous_playlists.yaml'
    - $ref: '../parameters/streams_country_code_with_local_array.yaml'
    - $ref: '../parameters/limit.yaml'
    - $ref: '../parameters/offset.yaml'
    - $ref: '../parameters/sort_by_public_track_positions_previous_playlists.yaml'
    - $ref: '../parameters/sort_order.yaml'
  responses:
    200:
      $ref: '../responses/PublicPlaylistTrackPreviousPositionsResponse.yaml'
    400:
      $ref: '../responses/InvalidInput.yaml'
    401:
      $ref: '../responses/Unauthorized.yaml'
    500:
      $ref: '../responses/InternalError.yaml'