Display Slot Rotation

Compile weighted content slots into a repeatable loop with media durations and explicit end timecodes.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /display-slot-rotation/v1/check with an x402 V2 client.

Worked example

Request

{
  "program": [
    {
      "id": "a",
      "seconds": 5,
      "plays": 2
    },
    {
      "id": "b",
      "seconds": 7,
      "plays": 1
    }
  ]
}

Result

{
  "duration_seconds": 17,
  "sequence": [
    {
      "id": "a",
      "start": 0,
      "end": 5
    },
    {
      "id": "b",
      "start": 5,
      "end": 12
    },
    {
      "id": "a",
      "start": 12,
      "end": 17
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter