PhotoGPT Developers

Get videos

GET
/videos

Retrieves sanitized videos owned by the authenticated user using cursor pagination. Omit cursor or send an empty string for the first page. When hasMore is true, send nextCursor from the response as cursor for the next page. Keep pageSize and filters unchanged between pages. Restart with an empty cursor when changing them.

Authorization

BearerAuth
AuthorizationBearer <token>

Developer API key. Send as Authorization: Bearer <api_key>.

In: header

Query Parameters

videoType?string

Video type filter. Use all or omit for all videos

cursor?string

Opaque nextCursor token from the previous response. Omit or leave empty for the first page.

pageSize?integer

Results per page. Invalid values use the default.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/videos"
{  "hasMore": false,  "nextCursor": "string",  "page": 1,  "pageSize": 20,  "result": [    {      "createdAt": "string",      "data": {        "property1": null,        "property2": null      },      "folderID": "string",      "id": "string",      "jobId": "string",      "liked": true,      "modelID": "string",      "publicMediaID": "string",      "type": "string",      "updatedAt": "string",      "url": "string"    }  ],  "status": "OK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}