Get an Image's Characters
This endpoint allows you to get an image's characters.
Endpoint Details
- URL:
/v3/images/{id}/characters
- Method:
GET
- Response:
JSON
Parameters
Location | Name | Type | Description | Required |
---|---|---|---|---|
Path | id | Integer | The image's ID. | Yes |
Query | limit | Integer [1..100] | The amount of characters to return. | No |
Query | offset | Integer | The amount of characters to skip. | No |
Example Request
image_characters.py
import requests
res = requests.get(f"https://api.nekosapi.com/v3/images/{image_id}/characters")
res.raise_for_status()
data = res.json()