Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Platform API auth on frontend with JS


Hello, I'm trying to build an upload form to upload videos to JW Player's platform. But before this I need to authenticate my API calls. I noticed to do this, I must use the API secret. Is it safe to have the API secret on the frontend with JavaScript? Thanks!

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

Our rate limit is 60 calls per minute as stated below:

“…To ensure fair access for all, usage of api.jwplatform.com is limited to 60 calls per minute. Calls that exceed this rate will result in a 429 Rate Limit Exceeded error and will not be executed…”
https://developer.jwplayer.com/jw-platform/reference/v1/
https://www.jwplayer.com/tos/

In general we highly discourage developers on giving JW Platform to end users for two reasons:
1) Your API key would have to be available to make a call, this poses a security issue
2) Our API limit as mentioned in our Terms of Service

Instead we suggest you setup an intermediate server that will “enqueue” the requests to JW Platform to ensure you stay below the API call limit and protect your API key.

This question has received the maximum number of answers.