Versioning
The API supports versioning through the Accept-Version header. Pinning your requests to a specific version protects your integration from breaking changes.
Current Version
The latest API version is v8.
Specifying a Version
Include the Accept-Version header in your requests:
- cURL
- JavaScript
- Python
- C#
curl -H "Accept-Version: v8" https://waifu-api-031n.onrender.com/images
const response = await fetch("https://waifu-api-031n.onrender.com/images", {
headers: { "Accept-Version": "v8" },
});
import requests
response = requests.get(
"https://waifu-api-031n.onrender.com/images",
headers={"Accept-Version": "v8"}
)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Accept-Version", "v8");
var response = await client.GetAsync("https://waifu-api-031n.onrender.com/images");
Default Behavior
If you do not specify a version, the API uses the latest available version. This can break your application if a new version introduces breaking changes.
Best practice: always include the Accept-Version header in production code.