get:
  tags:
    - All Resources
    - Spotify
    - Tracks
    - Charts
  summary: 'Get metadata about Charts by Tracks'
  operationId: spotify.tracks.charts.search
  description: |
    The endpoint can be used to get charts positions for the specific date using the track metrics in relation to Spotify charts.
    This endpoint is capable of returning track positions for tracks that are present in the chart on the provided date or chart's most recent date if the date is not provided.
    Exactly one of params 'track_id', 'isrc' must be specified.
  security:
    - bearerAuth: []
  parameters:
    - $ref: '../parameters/spotify_track_id_array.yaml'
    - $ref: '../parameters/isrc_array.yaml'
    - $ref: '../parameters/tracks_charts_chart_date.yaml'
    - $ref: '../parameters/spotify_track_state_includes_array.yaml'
    - $ref: '../parameters/chart_track_metrics_dimension.yaml'
    - $ref: '../parameters/spotify_chart_type.yaml'
    - $ref: '../parameters/spotify_chart_breakdown.yaml'
    - $ref: '../parameters/chart_country_code_array.yaml'
    - $ref: '../parameters/chart_min_rank.yaml'
    - $ref: '../parameters/chart_max_rank.yaml'
    - $ref: '../parameters/min_track_position.yaml'
    - $ref: '../parameters/max_track_position.yaml'
  responses:
    200:
      $ref: '../responses/SpotifyTrackChartsSearchResultsResponse.yaml'
    400:
      $ref: '../responses/InvalidInput.yaml'
    401:
      $ref: '../responses/Unauthorized.yaml'
    500:
      $ref: '../responses/InternalError.yaml'