banner_jpg
Username/Email: Password:
Forums

We Need An API!

You must be registered to post!
From User
Message Body
Post #772709
user avatar
Kuudere-chan~
 Member

8:01 pm, Nov 1 2019
Posts: 598


We need an api for make good extension, app etc for this website!

________________
MILESTONES
1st: Death Note
Post #772711
Member

11:52 pm, Nov 1 2019
Posts: 3


I second this!

Post #772719
user avatar
Member

5:48 am, Nov 2 2019
Posts: 1032


Why?

Every recent discussion I've heard of in regards to API is how nearly every "popular" website needs the web browser (As in, your computer) to pull the load of actually getting the site to work correctly. What's wrong with having a website that's still compatible with something as old as Netscape or the Dreamcast web browser?

________________
User Posted Image
Post #772722
user avatar
Member

9:07 am, Nov 2 2019
Posts: 21


I like the simplicity of the site as it is. It doesn't tax my computer/phone or bandwidth and loads instantly.

Post #772743
user avatar
A dignified
Member

10:06 pm, Nov 2 2019
Posts: 546


What functionality do you want from an API? I think it would help if you suggested some specific features. That said, I'm not sure what you could want that wouldn't be or isn't already implemented via a browser extension/userscript.

________________
"People don't change, they just give in."
Kubera is the best.
同人音楽 (Japanese indie music)
User Posted Image
Post #780057
Member

9:29 am, Sep 6 2020
Posts: 1


Quote
Why?

Every recent discussion I've heard of in regards to API is how nearly every "popular" website needs the web browser (As in, your computer) to pull the load of actually getting the site to work correctly. What's wrong with having a website that's still compatible with something as old as Netscape or the Dreamcast web browser?

Quote
I like the simplicity of the site as it is. It doesn't tax my computer/phone or bandwidth and loads instantly.

An API is an orthogonal concept to the website. The addition of an API can, but does not imply change to the current site in any way. An API lets headless consumer (e.g. machines) consume MU great database without the noise created by user-friendly, machine-unfriendly HTML.

(EDIT: I now understand your concern. I am not looking for an API so that I can build another MU client/website. The MU website is good. I want an API to build integrations/synchronization with other manga indexes and/or readers)

Quote
What functionality do you want from an API? I think it would help if you suggested some specific features.

- I would like to be able to get and update reading list (including updating read chapter position). Really useful in syncing MU reading list with manga hosting services as you read the releases. (1)
- Poll and be informed of new releases for your lists. I don't think the current RSS feed is powerful enough (only texts and links for RSS readers, not meant for machines, not meant for backward querying, filtering).
- Nice to be able to add releases (and more, e.g. series) as well. Sometimes manga hosting services have things not listed on MU. (2)
- Authentication mechanism to the API so you don't have to login by the website and then use your session token cookie inappropriately.

Now I understand that all of this is doable manually or through userscript on the website, of course. An API doesn't mean new core features. It is just a different way to interact with MU. Integrations can be built to not only help users (like 1) but contribute to MU database as well (like 2).

Quote
That said, I'm not sure what you could want that wouldn't be or isn't already implemented via a browser extension/userscript.

However, crawling the website by userscripts is something that might actually require the browser and will break if the site visual changes. Userscripts in general are obscure, flaky, easy to develop initially but hard to scale and maintain. Browser extensions for sure requires a browser. Headless services can crawl and parse HTML but that is nowhere machine-friendly and it suffers the same drawback as userscripts in general.

In the end, these are just my opinions and I do not have complete knowledge of MU and whether an API would be a good direction for it. Thanks to the MU team for building a great site/service that is essential to me.

Last edited by quanganhhero at 11:32 am, Sep 6

Post #780058
user avatar
Member

10:24 am, Sep 6 2020
Posts: 9


Quote
However, crawling the website by userscripts is something that might actually require the browser and will break if the site visual changes. Userscripts in general are obscure, flaky, easy to develop initially but hard to scale and maintain. Browser extensions for sure requires a browser. Headless services can crawl and parse HTML but that is nowhere machine-friendly and it suffers the same drawback as userscripts in general.

Furthermore, APIs gives a way to interact with the site with minimal server overhead. Manually crawling HTML pages requires the user to download the entire page, most of which are going to be thrown out anyway.

Post #780125
Member

9:06 am, Sep 9 2020
Posts: 2


I would like API so that MALSync would integrate with this site (I want to use baka-updates instead of MyAnimeList)

https://github.com/MALSync/MALSync/issues/290

Post #788441
user avatar
Member

5:39 am, Jan 28 2021
Posts: 1


Since it doesn't seem like this info is available anywhere on the internet, and the developers have not revealed that there is in fact a hidden API, I thought I might as well post it for anyone who finds my research useful.

I was looking to use MU data, and I'm sick of parsing HTML soup on this site. Thankfully the pages are simple and static enough that it's not difficult, but it's just not right. So I found out that MU has/had an iOS app at some point, screenshots/info here: https://applion.jp/iphone/app/598640522/ (I don't have iOS devices). Then based on forum complaints about app errors containing the phrase "application/json" I figured there must be a JSON API somewhere.
Hmmm https://www.mangaupdates.com/api/ returns nginx 403... that means it's a folder! Then I took an obvious endpoint, https://www.mangaupdates.com/api/series.php and sure enough, there is a hidden API! But all I got was a "Version is required." error. I tried all sorts of url parameters and headers, and finally got a hit with the super secret "API-Version" header (using 1.1.0 because it's latest version of the app on that listing page). And yes, it actually works. Example:
Quote
curl -H "API-Version: 1.1.0" "https://www.mangaupdates.com/api/series.php?id=1"

{
"seriesName":"Open Sesame",
"description":"Danjou Yamato is a high-school student who lives in the countryside and is the boxing champion of the region. However, when his family has to move out to live in Tokyo, he is transfered to a school in Tokyo that was previously an all-girls school. Girls have a lot of power and give the guys a hard time. But Yamato will not bow down to the power of the girls, and on his way to claim power for the guys in the school, he finds out something about his past... something that he had forgotten long ago...",
"year":"2001",
"licensed":"Yes",
"countryStatus":"20 Volumes (Complete)",
"serialzation":"N\/A",
"type":"Manga",
"genre":"Comedy\r\nDrama\r\nHarem\r\nRomance\ r\nSchool Life\r\nShounen",
"completlyScanlated":"Yes",
"englishLicensed":"Yes",
"imageURL":"https:\/\/www.mangaupdates.com\/i mage\/i164349.jpg",
"authors":"KAWAKATA Kaoru",
"artists":"KAWAKATA Kaoru",
"originalPublisher":"Kodansha",
"englishPublisher":"MANGA.CLUB (Ch. 69.5 - Ongoing;digital)\r\nMedia Do (5 Vols - Ongoing; digital)",
"associatedNames":"A\u00e7\u0131k Susam\r\nOpen Sesame\r\n\u30aa\u30fc\u30d7\u30f3\u30bb\u30b5\u30df\uff0 8\u6cb3\u65b9 \u304b\u304a\u308b\uff09\r\n\u604b\u7231\u65b0\u9c9c\u4eb a",
"relatedSeries":"N\/A",
"animeStatus":"N\/A",
"listID":null
}

So now what? Well maybe some MU developers or community members can help figure out the rest of the endpoints and parameters they accept. Based on the screenshots, stuff like login, reading lists, search, releases must exist. Endpoints I've found so far:
Quote


I hope this helps...

Post #790210 - Reply to (#788441) by chocolatkey
user avatar
Member

11:13 am, Apr 30 2021
Posts: 1


Launched DirBuster and so far found those endpoints:
Quote
/api/search.php
/api/users.php
/api/list.php
/api/releases.php
/api/lists.php
/api/base.php
/api/series.php

But I didn't have any luck in querying anything other than
Quote
/api/series?id=<number>
endpoint. I have to restart the search with some bigger timeout between requests to prevent throttling and connection refusal by server. I'll update if any new endpoint is found during scan.

Last edited by T3sT3ro at 11:30 am, Apr 30

________________
-_-
You must be registered to post!