Pesquisar no MotionVideo

Pesquisar vídeos, criadores, ferramentas, criativos…

Get a video

One gallery video with its prompt or skill, its category, the videos before and after it in that category, and the five most similar videos.

GEThttps://motionvideo.xyz/api/catalog/videos/{slug}

Parâmetros

  • slugstringpathObrigatório

    The video's slug.

Exemplo de pedido

curl -X GET 'https://motionvideo.xyz/api/catalog/videos/string'

Respostas

200

The video.

Cabeçalhos

  • Cache-Controlstring

    Browsers reuse a response for 5 minutes and shared caches for an hour, then may serve it stale for up to a day while they revalidate.

    Valores:public, max-age=300, s-maxage=3600, stale-while-revalidate=86400

Corpo da respostaapplication/json

    Exemplo

    {
      "slug": "string",
      "title": "string",
      "date": "2019-08-24",
      "tags": [
        "prompt"
      ],
      "contentTags": [
        "product-ui"
      ],
      "promptShared": true,
      "handle": "string",
      "creatorName": "string",
      "avatar": "http://example.com",
      "poster": "http://example.com",
      "preview": "http://example.com",
      "video": "http://example.com",
      "width": 0,
      "height": 0,
      "description": "string",
      "model": "Opus 5.5",
      "stack": "string",
      "effort": "medium",
      "iterations": "one-shot",
      "colorNames": [
        "red"
      ],
      "pageUrl": "http://example.com",
      "prompt": "string",
      "skillUrl": "http://example.com",
      "skillInstall": "string",
      "tweetUrl": "http://example.com",
      "colors": [
        "string"
      ],
      "category": "product-ui",
      "categoryUrl": "http://example.com",
      "neighbours": {
        "previous": "string",
        "next": "string"
      },
      "similar": [
        {
          "slug": "string",
          "title": "string"
        }
      ]
    }

    400

    A parameter is unknown or has a value it can't take.

    Corpo da respostaapplication/json

    • errorstringObrigatório

      Valores:invalid_parameter

    • parameterstringObrigatório
    • messagestringObrigatório
    • allowedstring[]

      The values the parameter can take, when it has a fixed set.

    Exemplo

    {
      "error": "invalid_parameter",
      "parameter": "string",
      "message": "string",
      "allowed": [
        "string"
      ]
    }

    404

    No video with that slug. Names the video it duplicated when it was removed as a duplicate, and suggests the creator's other videos.

    Corpo da respostaapplication/json

    • errorstringObrigatório

      Valores:not_found

    • messagestringObrigatório
    • duplicateOfstring

      When the slug was removed as a duplicate: the video it duplicated.

    • suggestionsVideoRef[]Obrigatório

      Up to five videos by the same creator.

      Mostrar campos
      • slugstringObrigatório
      • titlestringObrigatório

    Exemplo

    {
      "error": "not_found",
      "message": "string",
      "duplicateOf": "string",
      "suggestions": [
        {
          "slug": "string",
          "title": "string"
        }
      ]
    }