Μετάβαση στο περιεχόμενο
GET /v1/sketches

A creator's published sketches

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/openprocessing-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/openprocessing-api/v1/sketches" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/openprocessing-api/v1/sketches", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/openprocessing-api/v1/sketches");
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/sketches",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "count": 25,
        "limit": 25,
        "offset": 0,
        "source": "OpenProcessing",
        "user_id": 1,
        "sketches": [
            {
                "mode": "pjs",
                "title": "Sugar buildings in HTML5",
                "created": "2012-03-03 23:35:46",
                "license": null,
                "updated": "2025-12-30 08:03:21",
                "is_draft": false,
                "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"
            },
            {
                "mode": "pjs",
                "title": "Swirlies in HTML5",
                "created": "2012-04-24 21:47:59",
                "license": null,
                "updated": "2025-12-30 08:03:21",
                "is_draft": true,
                "visual_id": 19142,
                "mode_label": "Processing (Java)",
                "description": "Html5 version of Swirlies by Tymm.\n\nPerformance drops a lot if you increase the SIZEW, SIZEH"
            },
            {
                "mode": "pjs",
                "title": "Leaf Experience",
                "created": "2011-01-31 00:06:19",
                "license": null,
                "updated": "2025-12-30 08:03:21",
                "is_draft": true,
                "visual_id": 19220,
                "mode_label": "Processing (Java)",
                "description": "A project I did when I was at ITP."
            },
            {
                "mode": "pjs",
                "title": "testing sketch\"s opengl",
                "created": "2011-10-04 14:49:10",
                "license": null,
                "updated": "2025-12-30 08:03:21",
                "is_draft": false,
                "visual_id": 40563,
                "mode_label": "Processing (Java)",
                "description": "testing OpenGL sketch"
            },
            {
                "mode": "pjs",
                "title": "sugar buildings for bus-tops",
                "created": "2012-02-07 17:05:03",
                "license": null,
                "updated": "2025-12-30 08:03:21",
                "is_draft": false,
                "visual_id": 51522,
                "mode_label": "Processing (Java)",
                "description": "Original code belongs to Jean-no, I just copy pasted the code of Sugar Buildings, and changed the color, dimensions and framerate for bus-tops competition:\nhttp://www.openprocessing.org/visuals/?visualID=2921"
            },
            {
                "mode": "pjs",
                "title": "matrix extended",
                "created": "2012-02-21 09:01:42",
                "license": null,
                "updated": "2025-12-30 08:03:21",
         
…