banner_jpg
Username/Email: Password:
Forums

MangaUpdates API Comments/Suggestions/Bugs

Pages (5) [ First ... 2 3 4 5 ]  
You must be registered to post!
From User
Message Body
Post #797376
Member

8:51 pm, May 22 2022
Posts: 2


I have a userscript for Mangadex that, if there's MangaDex has a MangaUpdates link for a series, scrapes the MangaUpdates series page to see if MangaUpdates knows of a more recent release than Mangadex. As it is now, the new API is not an improvement for this particular purpose.

Having to scrape the series page for the new ID prevents my userscript from benefiting from the API's laxer rate limit. Scraping the series page also gives me release times at hour granularity (ie "4 hours ago" vs only day granularity for api.mangaupdates.com/v1/releases/search. If that information is available from api.mangaupdates.com/v1/releases/{id}, it requires authentication, unlike scraping.

Last edited by blommpp at 8:51 pm, May 22 2022

Post #797385
Post #797395 - Reply to (#797385) by YuriM
user avatar


5:42 pm, May 23 2022
Posts: 2583


One can be accessed by others publicly, and the other one is for access by you only...

Post #797396 - Reply to (#797376) by blommpp
user avatar


5:45 pm, May 23 2022
Posts: 2583


I want to discourage scraping as it really reduces the performance of the site for others. I know some people will scrape the pages and get the new ids, but I don't want to make it easy because that's not the way I want people to use the API. I prefer people to use the search function.

Last edited by Manick at 5:45 pm, May 23 2022

Post #797397 - Reply to (#797396) by Manick
Member

8:17 pm, May 23 2022
Posts: 2


I tried putting the old id into https://api.mangaupdates.com/v1/releases/search and https://api.mangaupdates.com/v1/series/search without success

You want to discourage scraping and I want to avoid it, so what should I do instead of
Quote


The docs say "This API powers our website." What API functions enable fetching the series info for old urls like https://www.mangaupdates.com/series.html?id=53203? What API functions enable reporting releases as X hours ago instead of the day of the release?

Post #797401 - Reply to (#797397) by blommpp
user avatar


6:54 am, May 24 2022
Posts: 2583


All we want to prevent is enumeration of the database, because it's extremely heavy on our servers. That means we don't want folks to just run 200k GET requests, from 1-200k, all at once. If you scrape a page occasionally or on demand when you want to find the new ID, we realize that's going to happen and we're not going to prevent it. However, we would prefer you use our API's search function to find series going forward.

We have an API function that does what you're asking, but it's tagged as admin and hidden from the public schema. It is also controlled behind a service account role. We have several other functions that are available (that our site uses) that are hidden with this tag as well. These are mostly based around administrative functions like spam control and reporting, and aren't really of interest to users anyway.

Post #797410 - Reply to (#797294) by YuriM
Member

1:00 pm, May 24 2022
Posts: 2


Do you have an example API request using this? https://api.mangaupdates.com/v1/series/search
Or is there a method to do a simple search with just the name?

Last edited by elevate at 1:43 pm, May 24 2022

Pages (5) [ First ... 2 3 4 5 ]  
You must be registered to post!