Vai al contenuto
GET /v1/search/videos

Federated video search

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/peertube-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "data": [
            {
                "id": 167978,
                "url": "https://spectra.video/videos/watch/da5463ca-fbc7-4311-948a-356594d5c70a",
                "name": "Installing Linux Doesn't Need to Change. The Experience Does.",
                "nsfw": false,
                "tags": [
                    "linux"
                ],
                "uuid": "da5463ca-fbc7-4311-948a-356594d5c70a",
                "likes": 4,
                "score": 1,
                "views": 935,
                "isLive": false,
                "account": {
                    "id": 276396,
                    "url": "https://spectra.video/accounts/trafotin.com",
                    "host": "spectra.video",
                    "name": "trafotin.com",
                    "avatars": [
                        {
                            "url": "https://spectra.video/lazy-static/avatars/e664482e-4d2a-415d-b9bd-e8539d10037e.png",
                            "path": "/lazy-static/avatars/e664482e-4d2a-415d-b9bd-e8539d10037e.png",
                            "width": 48,
                            "fileUrl": "https://spectra.video/lazy-static/avatars/e664482e-4d2a-415d-b9bd-e8539d10037e.png",
                            "createdAt": "2024-12-05T21:22:15.958Z",
                            "updatedAt": "2024-12-05T21:22:15.958Z"
                        },
                        {
                            "url": "https://spectra.video/lazy-static/avatars/fdb8db5e-d408-4d81-aa9b-25ac51153bb5.png",
                            "path": "/lazy-static/avatars/fdb8db5e-d408-4d81-aa9b-25ac51153bb5.png",
                            "width": 120,
                            "fileUrl": "https://spectra.video/lazy-static/avatars/fdb8db5e-d408-4d81-aa9b-25ac51153bb5.png",
                            "createdAt": "2024-12-05T21:22:15.957Z",
                            "updatedAt": "2024-12-05T21:22:15.957Z"
                        },
                        {
                            "url": "https://spectra.video/lazy-static/avatars/df633951-6419-43ee-a05e-6994641c3f2e.png",
                            "path": "/lazy-static/avatars/df633951-6419-43ee-a05e-6994641c3f2e.png",
                            "width": 600,
                            "fileUrl": "https://spectra.video/lazy-static/avatars/df633951-6419-43ee-a05e-6994641c3f2e.png",
                            "createdAt": "2024-12-05T21:22:15.956Z",
                            "updatedAt": "2024-12-05T21:22:15.956Z"
                        },
                        {
                            "url": "https://spectra.video/lazy-static/avatars/a1ac6835-ac65-4718-bbf9-efe7559aa122.png",
                            "path": "/lazy-static/avatars/a1ac6835-ac65-4718-bbf9-efe7559aa122.png",
                            "width": 1500,
                            "fileUrl": "https://spectra.video/lazy-static/avatars/a1ac6835-ac65-4718-bbf9-efe7559aa122.png",
                            "createdA
…