๐ REST API Overview
Fuyu provides a full-featured REST API so you can interact with your scripts, jobs, datasets, accounts, and more โ all programmatically.
๐ฆ Base URLโ
The public API is available at:
https://fuyu.gg/api/
All requests must include your API key using the x-api-key
header:
x-api-key: YOUR_API_KEY
Example:
curl https://fuyu.gg/api/scripts -H "x-api-key: api_abc123.xyz456"
โ Do not use
https://api.fuyu.gg
โ it is reserved for internal services.
๐ Authenticationโ
Refer to API Keys to create and manage secure tokens.
๐งฐ What You Can Doโ
With the REST API, you can:
- Create, run, and monitor scripts
- View job results and logs
- Upload and access datasets
- Manage proxies and accounts
- Retrieve per-script output programmatically
๐ Response Formatโ
All responses are in JSON. Errors are returned with appropriate HTTP status codes and a message
field in the body.
Example success:
{
"data": [...],
}
Example error:
{
"error": true,
"url": "http://fuyu.gg/api/scripts",
"statusCode": 401,
"statusMessage": "Server Error",
"message": "Unauthorized"
}
๐ Endpoint Referenceโ
A complete endpoint listing will be published soon.
๐งช Test and Exploreโ
You can use tools like: