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.
stephanoumenos
Posts: 1
Joined: Fri Dec 20, 2019 5:09 pm

Re: [NEW] REST search, JSON results

Fri Dec 20, 2019 5:32 pm

Hi,

The API apparently doesn't support leading zeros, for example:

Code: Select all

https://rest.opensubtitles.org/search/episode-05/imdbid-0455275/season-05
returns a empty response while

Code: Select all

https://rest.opensubtitles.org/search/episode-5/imdbid-0455275/season-5
returns the desired response.

Is this the desired behavior (and should be handled client-side) or this is a bug?
this is working now - following redirects is important:

Code: Select all

curl -L -A 'TemporaryUserAgent' https://rest.opensubtitles.org/search/episode-05/imdbid-0455275/season-03
Hello,

I believe the same problem might be happening to the moviehash field

for example, this request is giving me infinite redirections:

Code: Select all

curl -L -A 'TemporaryUserAgent' http://rest.opensubtitles.org/search/moviebytesize-287833887/moviehash-0E54610718077500
and it redirects to the same request with the wrong hash:

Code: Select all

Location: http://rest.opensubtitles.org/search/moviebytesize-287833887/moviehash-e54610718077500

whd
Posts: 2
Joined: Mon Jan 20, 2020 8:32 pm

Re: [NEW] REST search, JSON results

Mon Jan 20, 2020 8:33 pm

How to search subtitles for movies only? Following query returns zero results curl -A "TemporaryUserAgent" https://rest.opensubtitles.org/search/imdbid-7286456/
while
with language specified it returns results
curl -A "TemporaryUserAgent" https://rest.opensubtitles.org/search/i ... uageid-eng
so is on purpose? Or something is broken for the first query

whd
Posts: 2
Joined: Mon Jan 20, 2020 8:32 pm

Re: [NEW] REST search, JSON results

Mon Jan 20, 2020 8:34 pm

Why following query doesn't return any results curl -A "TemporaryUserAgent" https://rest.opensubtitles.org/search/imdbid-7286456/

when language is specified it works fine, curl -A "TemporaryUserAgent" https://rest.opensubtitles.org/search/i ... uageid-eng but i would like to get subtitles for all languages

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

Re: [NEW] REST search, JSON results

Tue Jan 21, 2020 12:33 pm

@stephanoumenos - thanks for report, it is now fixed.

@whd - follow redirects (always!) - check redirects and try to make URL according it, so this works ok:

Code: Select all

curl -L -A "TemporaryUserAgent" https://rest.opensubtitles.org/search/imdbid-7286456/

mntgoat
Posts: 47
Joined: Thu Sep 24, 2015 10:41 pm

Re: [NEW] REST search, JSON results

Thu Feb 20, 2020 3:43 am

While using the API a user found a subtitle that is a txt file instead of srt. Is it possible using the API to download it as srt or do I need to convert it on my client?

Thanks.

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

Re: [NEW] REST search, JSON results

Fri Feb 21, 2020 6:00 am

txt is really bad format, we dont offer conversion for this.

mntgoat
Posts: 47
Joined: Thu Sep 24, 2015 10:41 pm

Re: [NEW] REST search, JSON results

Fri Apr 24, 2020 6:36 am

I got an email saying authentication will be needed. Does that apply to this api as well? I had asked in the past about authentication for this api but was told it wasn't possible yet.
Also when will this change take place?
Thanks.

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

Re: [NEW] REST search, JSON results

Fri Apr 24, 2020 7:04 am

this REST API will be abandoned for new REST API we are developing here: https://www.opensubtitles.com/docs/api/html/index.htm

this REST API doesn't need authentication.

this REST API will be disabled later (together with api.opensubtitles.org/xml-rpc) in future (1-2 years in future)

mntgoat
Posts: 47
Joined: Thu Sep 24, 2015 10:41 pm

Re: [NEW] REST search, JSON results

Fri Apr 24, 2020 6:38 pm

Ok, thank you for the info. Will we be notified a few months before it is removed?

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

Re: [NEW] REST search, JSON results

Sat Apr 25, 2020 5:46 am

definitely. First let's make run new REST API 100%, then we will send mailing about future plans. So as I wrote, that means at least 1-2 years.

abdalaoe
Posts: 2
Joined: Sun Aug 30, 2020 1:19 am

Re: [NEW] REST search, JSON results

Sun Aug 30, 2020 1:22 am

this REST API will be abandoned for new REST API we are developing here: https://www.opensubtitles.com/docs/api/html/index.htm

this REST API doesn't need authentication.

this REST API will be disabled later (together with api.opensubtitles.org/xml-rpc) in future (1-2 years in future)
Hey there ! Nice API I'm trying to provide a golang client for it but I can't seem to manage to login with my account. Do you know if there is any steps I missed?

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

Re: [NEW] REST search, JSON results

Fri Jan 01, 2021 7:40 pm

I just fixed HTTP method OPTIONS, it returns 404 before. Now it is returning 200, so this rest.opensubtitles.org could be used via AJAX calls on other websites.

mntgoat
Posts: 47
Joined: Thu Sep 24, 2015 10:41 pm

Re: [NEW] REST search, JSON results

Thu Jan 14, 2021 5:14 pm

Can anyone spot what I'm doing wrong with this search?

https://rest.opensubtitles.org/search/e ... uageid-eng

The website returns values, if I use the old api then it works, but on this rest api it doesn't. Other searches work fine with the rest api.

Thanks.

Edit: I noticed the forum was shortening the address so for easy viewing, this is the search /episode-3/query-fear+the+waking+dead/season-6/sublanguageid-eng

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

Re: [NEW] REST search, JSON results

Sun Jan 17, 2021 3:22 pm

it seems ok, the problem is in our index. I can reindex the database and I believe it will start working again properly. Please try again tommorow or let me know it is still not going ok, and I try to reindex.

It is time to test our new API:

https://opensubtitles.stoplight.io/docs ... n_api.json

mntgoat
Posts: 47
Joined: Thu Sep 24, 2015 10:41 pm

Re: [NEW] REST search, JSON results

Mon Jan 18, 2021 7:17 pm

Thanks.

Is the new api ready for use in a production app?

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 26 guests