Optional
options: WaifuClientOptionsOptional
tokenThe token used for authentication, if provided.
The User-Agent used in requests.
Private
#requestRemoves an image from the user
The ID of the image to insert.
Optional
user_id: numberThe user ID of the user whose favorites you want to edit. Defaults to token's owner.
Get your favorites. By default, this endpoint returns all images in the user favorites, meaning it will also returns lewd images if there are some in the user favorites.
Optional
query: SearchQuerySearch query options.
Optional
userId: numberArray of images.
Get full tag information.
Get list of available tags.
Gets the list of available tags.
Whether to return full tag information.
Inserts an image into the user
The ID of the image to insert.
Optional
user_id: numberThe user ID of the user whose favorites you want to edit. Defaults to token's owner.
Reports an image. Used to report any inappropriate, offensive or wrongly labelled image in the API. Requires report permission.
The ID of the image to report.
A brief explanation (up to 200 characters) used to describe the issue.
Search images. Retrieves images randomly or by tag based on the specified search criteria.
Optional
query: SearchQuerySearch query options.
Array of images.
Toggles an image in the user
The ID of the image to insert.
Optional
user_id: numberThe user ID of the user whose favorites you want to edit. Defaults to token's owner.
WaifuClient is the main class used to interact with the Waifu.im API.