Naar de inhoud
GET /v1/sketch

A single sketch's detail

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/openprocessing-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}