Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
DailyDoses
Posts: 1
Joined: Sun Dec 01, 2024 10:22 am

403 Error using API as a VIP user (User-Agent Specified)

Sun Dec 01, 2024 10:36 am

Hi there,

So I just became a VIP user yesterday. I'm trying to use OpenSubtitle API for gathering, searching, and downloading subtitles.
But I'm having issues.


I followed this document:
https://opensubtitles.stoplight.io/docs ... -subtitles


And created this CURL code:

Code: Select all

curl --location --request GET 'https://api.opensubtitles.com/api/v1/subtitles' \ --header 'api-key: API_KEY' \ --header 'User-Agent: DailyDoses v1'

But I'm getting this error:

Code: Select all

403 { "message":"You cannot consume this service" }

I also got my api key from profile page in opensubtitle.com:
https://www.opensubtitles.com/en/users/profile

Any insights?

User avatar
oss
Site Admin
Posts: 6100
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: 403 Error using API as a VIP user (User-Agent Specified)

Sun Dec 01, 2024 6:27 pm

Hi

when I try your code with PROPER API KEY, I get error (what should be searched...?):
"{"errors":["Not enough parameters"],"status":400}"

make sure you are NOT using KEY which start with "ey..." - this is not KEY, this is JWT token...

please read this as well:
https://opensubtitles.tawk.help/article ... -api-token


Return to “Developing”

Who is online

Users browsing this forum: No registered users and 21 guests