Hanime API Documentation

Your guide to the Hanime API by Ashlynn Repository

Features

Explore the powerful features of the Hanime API:

Endpoints

Details of available endpoints:

GET /

Returns a welcome message to indicate the API is operational.

curl -X GET https://hentai.ashlynn.workers.dev/

GET /watch/:slug

Fetches detailed information about a specific video using its unique slug.

curl -X GET https://hentai.ashlynn.workers.dev/watch/sample-video-slug

GET /trending/:time/:page

Fetches trending videos based on the specified time filter and page number.

curl -X GET https://hentai.ashlynn.workers.dev/trending/week/1

GET /browse/:type

Fetches browsing data for a specific type, such as hentai tags or brands.

curl -X GET https://hentai.ashlynn.workers.dev/browse/hentai_tags

GET /tags

Fetches all available hentai tags for exploration.

curl -X GET https://hentai.ashlynn.workers.dev/tags

Example Usage

Using curl

curl -X GET https://hentai.ashlynn.workers.dev/trending/week/1

Using JavaScript Fetch

fetch('https://hentai.ashlynn.workers.dev/trending/week/1')
  .then(response => response.json())
  .then(data => console.log(data));

Error Handling

In case of errors, the API responds with a JSON object containing the error message:

{
  "error": "Something went wrong"
}

HTTP Status Codes:

License

This project is licensed under the MIT License.

About the Creator

This API was created by Ashlynn Repository. Check out the official channel for updates:

Visit Ashlynn Repository