Skip to content

Instantly share code, notes, and snippets.

@idolmatster
Created October 24, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idolmatster/8a1fa4a60e6a6c04733479de8453342a to your computer and use it in GitHub Desktop.
Save idolmatster/8a1fa4a60e6a6c04733479de8453342a to your computer and use it in GitHub Desktop.
nHentai API Endpoint findings

Api endpoints

endpoints

${id} = the name in the url of the doujin itself

normal api

image + metadata api

image baselink

${gallery_id} = the gallery id you get from the api
${image_number} = number of the image (e.g. 1 if you want the first)
${file_extension} = file extentsion (png, jpg...) https://cdn.nhentai.com/assets/images/${gallery_id}/${image_number}.${file_extension}

why use link collections

for one you can simply pass the collection from the resonse object
but than there is the issue that nhentai dot com sometimes has the untranslated images
on the same gallery id just with a diffrent file extension.
Be sure to use the image + metadata api if you wanna download the doujin as it's visible on the site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment