Which requests count toward the 1,500 per 24 hours stream limit, and how to request higher production limits?

Đang mở
#607 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
api

Hướng nghiên cứu

Start with the repository's Rate Limits page, which the issue cites, and check whether it explains which stream requests count, the daily window, remaining quota headers, and how production apps request higher limits. The issue does not name a documentation file or test. Done means the page answers those questions accurately, including the application requirements.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,

I run a small music website (evanvandoren.com) that plays my own SoundCloud tracks through a registered app using client credentials. I'd like to confirm how the stream limit on the Rate Limits page applies to us before we get close to it.

How we call the API:

  1. GET /tracks/{id}/streams to get the HLS URLs. We cache this response for a week, so it's only 5 to 25 calls a day.
  2. A request to the returned hls_aac_160_url (or hls_aac_96_url / hls_mp3_128_url) with the OAuth header, which gives us a signed playlist link. Those links expire after a few minutes, so we fetch a new one for each play. That's about 500 to 1,000 a day.

Questions:

  1. Do the requests in step 2 count toward the 1,500 per 24 hours limit on GET /tracks/:id/stream(s), or does only the /streams call in step 1 count?
  2. Is that 24-hour window rolling, or does it reset at a fixed time? On both kinds of request, the X-Ratelimit-Limit header we get back is 100 (the per-minute budget). Is there a header that shows how much of the daily stream limit is left?
  3. The page says approved production apps can get up to 10 times these limits. How do we apply, and what do you need from us? Happy to send our client ID by DM.

Our busiest day so far was about 1,100 total requests (steps 1 and 2 together), and we haven't had any 429s. If you count every request, we'd like the higher limit before we reach 1,500.

Thanks,
Evan VanDoren

Ngôn ngữ chính
JavaScript
Star
262
Fork
52
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của soundcloud/api

Tất cả issue của soundcloud/api

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.