banner_jpg
Username/Email: Password:
Forums

MangaUpdates API Comments/Suggestions/Bugs

Pages (10) [ First ... 6 7 8 9 10 ] Next
You must be registered to post!
From User
Message Body
Member

9:58 am, Feb 13 2024
Posts: 1


Just wanted to check if other people were getting 500 errors from every url when trying to implement the api? I'm very new to coding so its possible I'm doing something wrong, but I wanted to check.

Member

7:19 am, Mar 16 2024
Posts: 10


Switch to a document database & keep mangasearch in memory.

To improve the performance of the search you could just load everything relevant into memory and access it in every search.

This is a calculation how much memory it will take to load every manga for the search, 60 chars on average for titles 20 tags/genres, 8 uploader ä artist etc and manga and oneshot. Iguessed that this site has arround 200k mangas. The amount of bytes per manga is probably way more than it actually is.

16 byte updated,created timestamp
4 bytes * 20 tags, genres
4 bytes * 8 uploader, artist, …
4 bytes* 2 types
1 licensed bool
4 bytes * 60 chars

(4*60+1+4*2+4* 28)*200000= 75400000byte => 75mb

It would probably make sense to load users and tags into a hashmap. If there would be 50000 tags/users with a namelengrh of 10 chars it would take up 2 mb. In comparison some chrome tabs take up more memory than that. The search would probably only take a view ms. This calculation is made based on the actual size of chars/ints in a low level language. If implemented in python it would probably be more

Since the mangas get looked up by the id there won't be much load on the db compared to a normal db.

Member

10:37 pm, Apr 25 2024
Posts: 1


Anyone using an app called Obsidian? Im hoping that i can use mangaupdates api however i don't know what to do because im not a code expert. I only know that i need the script of this web api so i can use it in quickadd plugin but... all i can found was jikan api script but its not as detailed when it comes to manga, manhwa compared to your incredible website!! Sigh Im so upset...

Post #806364 - Reply to (#798364) by vishnubly
user avatar
Member

6:59 pm, May 28 2024
Posts: 3


Quote from vishnubly
Hello, I believe I have found a bug, in "categories/search", we cannot see any more than 2500 results, i.e for per page 100 results, after page 25, we cannot see any results, the same behavior is observed from UI as well: https://www.mangaupdates.com/categories.html?page=26&perpage=100&am ...

Wanted to echo this! Is there a way around this to see more than 2.5k results for a genre?

Post #806366 - Reply to (#806364) by goblincat
user avatar


7:38 pm, May 28 2024
Posts: 2677


The current implementation of the Categories page uses an elastic aggregation which is limited by size. It's not something we're willing to increase at this point due to performance concerns.

user avatar
Member

7:48 pm, May 28 2024
Posts: 3


Thank you for the response!

user avatar
Member

3:55 pm, May 29 2024
Posts: 3


Another question! I am making a request on 'https://api.mangaupdates.com/v1/series/search' using these parameters: {'genre':["Yuri"],'page':1,'perpage':5} but the results are respecting the genre parameter. Is this a bug or did I do this incorrectly?
Thanks!

Post #806376 - Reply to (#806374) by goblincat
user avatar


8:17 pm, May 29 2024
Posts: 2677


Can you change the single quotes to double quotes like this:

Quote
{
"genre": [
"Yuri"
],
"page": 1,
"perpage": 5
}


It worked for me.

Member

9:55 am, Jun 23 2024
Posts: 10


Why is there a limit when there is no search criteria? Only order_by date_added or nothing at all shouldn’t take up much performance so why is it capped to 10k?

Post #806613 - Reply to (#806606) by AskingBrigade
user avatar


7:52 pm, Jun 23 2024
Posts: 2677


It's based on elasticsearch which has a built in 10k limit

Post #806616 - Reply to (#806613) by Manick
Member

12:56 am, Jun 24 2024
Posts: 10


Is there a search_after or scroll api simple search for a single genre/no search at all? https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after

Post #806642 - Reply to (#806616) by AskingBrigade
user avatar


5:36 am, Jun 27 2024
Posts: 2677


I don't recall this parameter existing when we did the original elasticsearch 5 implementation. Regardless, we're more focused on the UI right now, so I can't guarantee any major refactors like that in the short term.

Post #806918
Member

3:55 pm, Jul 28 2024
Posts: 2


Hello, I have a question about API. I have noticed that API is tend to raise 503 errors and I can do noting with that. Can you please say me what can be a reason of that?

user avatar


9:43 pm, Jul 28 2024
Posts: 10734


You are being rate limited by the API

________________
A just ruler amongst tyrants
Post #806922
Member

3:22 am, Jul 29 2024
Posts: 2


Got it, what number of requests is rate limit for API? And one more question isn't that better to raise 422 status in that situation?

Last edited by whofru at 12:45 am, Jul 30 2024

Pages (10) [ First ... 6 7 8 9 10 ] Next
You must be registered to post!