get:
  tags:
    - All Resources
    - Spotify
    - Charts
  summary: 'Get metadata about Spotify Charts'
  operationId: spotify.charts.search
  description: |
    The endpoint is used to find chart ids based on the specific country codes, chart types,
    and breakdowns or select the chart metadata for specific charts.
    This is useful when you want to identify specific chart ids (to use in other endpoints)
    but can provide broader filters like country_code or chart rank.
    Either chart_id or country_code should be provided. In Spotify Charts also have type and breakdown dimensions.
  security:
    - bearerAuth: []
  parameters:
    - $ref: '../parameters/spotify_chart_id_array.yaml'
    - $ref: '../parameters/country_code_array.yaml'
    - $ref: '../parameters/spotify_type_array.yaml'
    - $ref: '../parameters/spotify_breakdown_array.yaml'
    - $ref: '../parameters/min_rank.yaml'
    - $ref: '../parameters/max_rank.yaml'
  responses:
    200:
      $ref: '../responses/SpotifyChartsResponse.yaml'
    400:
      $ref: '../responses/InvalidInput.yaml'
    401:
      $ref: '../responses/Unauthorized.yaml'
    500:
      $ref: '../responses/InternalError.yaml'