/v1/sketch
A single sketch's detail
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/openprocessing-api/v1/sketch" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/openprocessing-api/v1/sketch", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/openprocessing-api/v1/sketch");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/openprocessing-api/v1/sketch",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"mode": "pjs",
"tags": [],
"title": "Sugar buildings in HTML5",
"source": "OpenProcessing",
"created": "2012-03-03 23:35:46",
"fork_of": 2921,
"license": "by-nc-sa",
"updated": "2025-12-30 08:03:21",
"user_id": 1,
"username": "msawired",
"libraries": [],
"visual_id": 13481,
"mode_label": "Processing (Java)",
"description": "To see if it is going to work in HTML5, I just copy pasted the code of Sugar Buildings by Jean-no:\nhttp://www.openprocessing.org/visuals/?visualID=2921\nPerformance is not too bad unless there are more than 100 blocks, but probably depends on the computer",
"is_template": false,
"instructions": null
},
"meta": {
"timestamp": "2026-06-12T01:41:38.146Z",
"request_id": "374657be-275a-4459-8415-02b86b3f8032"
},
"status": "ok",
"message": "Sketch retrieved successfully",
"success": true
}