Facebook Video Up Next API
Query Facebook video up next. Empty results and failures are free.
POST https://api.goanyapi.com/api/v1/facebook/video/up-nextRequest and input parameters
Synchronous POST JSON query. There are no Path or Query parameters and no asynchronous task.
| Parameter | Location | Type | Required | Default | Constraints and meaning |
|---|---|---|---|---|---|
| Authorization | Header | string | Yes | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | Yes | application/json | application/json |
| url | JSON body | string | Optional or conditional | — | Complete HTTPS resource URL; takes precedence over resource identifiers; maxLength=4096 |
| videoId | JSON body | string | Optional or conditional | — | Facebook video ID; alternatively supply its URL; pattern=^[0-9]{1,25}$ |
| upNextVideoId | JSON body | string | Optional or conditional | — | Next video identifier from related results when available; pattern=^[0-9]{1,25}$ |
Conditional requirements (required lists mandatory fields; satisfy at least one anyOf branch, exactly one oneOf branch, and every allOf branch):
{
"required": [],
"anyOf": [
{
"required": [
"url"
]
},
{
"required": [
"videoId"
]
}
]
}Request example
POST /api/v1/facebook/video/up-next
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"url": "https://www.facebook.com/reel/1147461147666979"
}Output fields
| Field path | Type | Meaning |
|---|---|---|
| code | string | ok on success; public error code otherwise |
| message | string | Request status message |
| data.result | object / null | Business result; actual null, empty and missing values are preserved |
| data.creditsUsed | integer | Actual charge; empty results and failures are free |
| data.remainingCredits | number | Account balance after settlement |
| data.result.videoId | string | videoId: public business value; may be empty or absent |
| data.result.currentVideo | object | currentVideo: public business value; may be empty or absent |
| data.result.currentVideo.id | string | Record identifier |
| data.result.currentVideo.author | object | Public author details |
| data.result.currentVideo.author.id | string | Record identifier |
| data.result.currentVideo.author.name | string | Display name |
| data.result.currentVideo.author.url | string | Public resource URL |
| data.result.currentVideo.author.avatar | null | avatar: public business value; may be empty or absent |
| data.result.nextVideo | object | nextVideo: public business value; may be empty or absent |
| data.result.nextVideo.type | string | type: public business value; may be empty or absent |
| data.result.nextVideo.id | string | Record identifier |
| data.result.nextVideo.url | string | Public resource URL |
| data.result.nextVideo.title | string | Title |
| data.result.nextVideo.author | object | Public author details |
| data.result.nextVideo.thumbnail | string | thumbnail: public business value; may be empty or absent |
| data.result.nextVideo.duration | number | duration: public business value; may be empty or absent |
| data.result.nextVideo.createdAt | integer | createdAt: public business value; may be empty or absent |
| data.result.nextVideo.viewCount | integer | viewCount: public business value; may be empty or absent |
| data.result.nextVideo.viewCountText | string | viewCountText: public business value; may be empty or absent |
| data.result.nextVideo.reactionCount | integer | reactionCount: public business value; may be empty or absent |
| data.result.nextVideo.commentCount | integer | commentCount: public business value; may be empty or absent |
| data.result.nextVideo.commentCountText | string | commentCountText: public business value; may be empty or absent |
| data.result.candidates | array | candidates: public business value; may be empty or absent |
| data.result.candidates[].type | string | type: public business value; may be empty or absent |
| data.result.candidates[].id | string | Record identifier |
| data.result.candidates[].url | string | Public resource URL |
| data.result.candidates[].title | string | Title |
| data.result.candidates[].author | object | Public author details |
| data.result.candidates[].author.id | string | Record identifier |
| data.result.candidates[].author.name | string | Display name |
| data.result.candidates[].author.url | string | Public resource URL |
| data.result.candidates[].author.avatar | null | avatar: public business value; may be empty or absent |
| data.result.candidates[].thumbnail | string | thumbnail: public business value; may be empty or absent |
| data.result.candidates[].duration | number | duration: public business value; may be empty or absent |
| data.result.candidates[].createdAt | integer | createdAt: public business value; may be empty or absent |
| data.result.candidates[].viewCount | integer | viewCount: public business value; may be empty or absent |
| data.result.candidates[].viewCountText | string | viewCountText: public business value; may be empty or absent |
| data.result.candidates[].reactionCount | integer | reactionCount: public business value; may be empty or absent |
| data.result.candidates[].commentCount | integer | commentCount: public business value; may be empty or absent |
| data.result.candidates[].commentCountText | string | commentCountText: public business value; may be empty or absent |
| data.result.count | integer | Records in this response, not the total |
| data.result.pagination_supported | boolean | Whether continuation is supported; false means no next-page request |
Real response example
Captured: 2026-11-25T10:22:38Z. Real public response excerpt; only data.creditsUsed and data.remainingCredits are omitted. Charges and balance depend on the actual request.
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"videoId": "1147461147666979",
"currentVideo": {
"id": "1147461147666979",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/61571700369424",
"avatar": null
}
},
"nextVideo": null,
"candidates": [
{
"type": "video",
"id": "2910578309140938",
"url": "https://www.facebook.com/reel/2910578309140938/",
"title": "🚨 Democrats have spent YEARS slamming shutdowns, but now they're bending the knee to the radical left, pushing a reckless $1.5T spending spree, including health care for illegal aliens.\n\nTheir unhinged agenda is OUT OF CONTROL. Tell Congress to STOP the Dem-led shutdown disaster!",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/WhiteHouse",
"avatar": null
},
"thumbnail": "https://scontent-lhr11-1.xx.fbcdn.net/v/t15.5256-10/558171620_652726317903153_7341636114508084873_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=p206x206&_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=73dd82&_nc_ohc=wHfv8u49HRUQ7kNvwG744Tc&_nc_oc=AdrWwD3YCSJLrbXf6L-wdoLmKhJz-Tj6AsjRcww_ySZwPDMZksRx3S5KTzk879s8kPxPZs1fBRMaifRMjfklvBnp&_nc_zt=23&_nc_ht=scontent-lhr11-1.xx&_nc_gid=MYeB5ACkQ2NgUk-4QtZI8w&_nc_ss=78389&oh=00_AQTxAmUszb4f_QsDLrH8U1qWg_RScrAYcKF6b5sH5u_oZg&oe=6B0C876A",
"duration": 65,
"createdAt": null,
"viewCount": null,
"viewCountText": null,
"reactionCount": null,
"commentCount": null,
"commentCountText": null
},
{
"type": "video",
"id": "791018880213010",
"url": "https://www.facebook.com/reel/791018880213010/",
"title": "** Democrats doing anything BUT keeping the government open for the American people. **",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/WhiteHouse",
"avatar": null
},
"thumbnail": "https://scontent-lhr11-1.xx.fbcdn.net/v/t15.5256-10/556224380_1133926085381176_1110844759490459072_n.jpg?stp=dst-jpg_tt6&cstp=mx1152x2048&ctp=p206x206&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=73dd82&_nc_ohc=uFNH-G-nBTgQ7kNvwGRe79h&_nc_oc=AdqtI8fM0XtsFG-n8zX7Ti_-VupQ4DBZnOxQwhahFAVKoRL_2lyGPM8GTipeqSLlgFrOoBIG2ug7wjgRVq_pPQoJ&_nc_zt=23&_nc_ht=scontent-lhr11-1.xx&_nc_gid=MYeB5ACkQ2NgUk-4QtZI8w&_nc_ss=78389&oh=00_AQRFxWJuH9Jg-XTHmhgz8XzIzgtmWAU0cOZ3KI8XcV4B3g&oe=6B0C957E",
"duration": 46,
"createdAt": null,
"viewCount": null,
"viewCountText": null,
"reactionCount": null,
"commentCount": null,
"commentCountText": null
},
{
"type": "video",
"id": "4225835634411752",
"url": "https://www.facebook.com/reel/4225835634411752/",
"title": "\"In 2019, I was proud to launch the Childhood Cancer Data Initiative... and today, in line with recommendations made by Secretary Kennedy and the MAHA Commission, we're doubling that investment.\" - PRESIDENT DONALD J. TRUMP 🙏❤️",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/WhiteHouse",
"avatar": null
},
"thumbnail": "https://scontent-lhr11-1.xx.fbcdn.net/v/t15.5256-10/555912645_781510848075829_4645688149747742740_n.jpg?stp=dst-jpg_tt6&cstp=mx1152x2048&ctp=p206x206&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=73dd82&_nc_ohc=ppeHg30-XPwQ7kNvwHkuGo8&_nc_oc=Adpd0AACmTdMqKqmRQ4d7GM9gEkee0ikIYN7LQ9tZJItUv60CHj3oHGCL3Y0wnHLyz3csvpG6IAiu5MLMjPMqE62&_nc_zt=23&_nc_ht=scontent-lhr11-1.xx&_nc_gid=MYeB5ACkQ2NgUk-4QtZI8w&_nc_ss=78389&oh=00_AQTjHwuXiCEp_iNyE2ndL17HK0TDfHxBMlszwh2vDiqTBA&oe=6B0C9CC8",
"duration": 90,
"createdAt": null,
"viewCount": null,
"viewCountText": null,
"reactionCount": null,
"commentCount": null,
"commentCountText": null
},
{
"type": "video",
"id": "1915946946000450",
"url": "https://www.facebook.com/reel/1915946946000450/",
"title": "President Trump to U.S. Military Leaders: \"I am with you, I support you, and as President, I have your backs 100%\" 🇺🇸🦅\n\nGOD BLESS OUR TROOPS!",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/WhiteHouse",
"avatar": null
},
"thumbnail": "https://scontent-lhr6-2.xx.fbcdn.net/v/t15.5256-10/557741003_4048016425528628_1813453305157423222_n.jpg?stp=dst-jpg_tt6&cstp=mx1152x2048&ctp=p206x206&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=73dd82&_nc_ohc=vVaC7C8Sc08Q7kNvwF-63lP&_nc_oc=AdoR0R7yQj6Xd6_nr05wbxEAo8A_S9Om0ToPiyzL6KqCfR2gU6_SvhzL73oP9_vRQmOcVKENHrHbS-YVXs_cipqF&_nc_zt=23&_nc_ht=scontent-lhr6-2.xx&_nc_gid=MYeB5ACkQ2NgUk-4QtZI8w&_nc_ss=78389&oh=00_AQSgp33woI_ReH0xsw2rHXETJ7RV34U55taGeW39DREDeQ&oe=6B0C98AD",
"duration": 27,
"createdAt": null,
"viewCount": null,
"viewCountText": null,
"reactionCount": null,
"commentCount": null,
"commentCountText": null
},
{
"type": "video",
"id": "816286227448191",
"url": "https://www.facebook.com/reel/816286227448191/",
"title": "24 hours until a Democrat shutdown. \n\nTime starts now. ⏳",
"author": {
"id": "61571700369424",
"name": "The White House",
"url": "https://www.facebook.com/WhiteHouse",
"avatar": null
},
"thumbnail": "https://scontent-lhr11-1.xx.fbcdn.net/v/t15.5256-10/557710057_794737592942400_2615450224135130958_n.jpg?stp=dst-jpg_tt6&cstp=mx1638x2048&ctp=p296x100&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=73dd82&_nc_ohc=sYVB-0vGDqUQ7kNvwFYzeaG&_nc_oc=AdppPwojK42tpK9GIgJ8Fn7IuauIsegMcUSnv3b8p-oWN-dtRjZchHHpR4Az1bc3awnHawKDO3b2LW__-wD4dyZv&_nc_zt=23&_nc_ht=scontent-lhr11-1.xx&_nc_gid=MYeB5ACkQ2NgUk-4QtZI8w&_nc_ss=78389&oh=00_AQS4wbWDa6ToifmTVIsOmrGA0mawDYnrUTqPHVPbtyO4OQ&oe=6B0C7D3B",
"duration": 12,
"createdAt": null,
"viewCount": null,
"viewCountText": null,
"reactionCount": null,
"commentCount": null,
"commentCountText": null
}
],
"count": 5,
"pagination_supported": false
}
}
}Pagination and billing
This operation does not support cursor pagination; do not invent a next page.
…
Successful nonempty requests use the current database-configured price. Empty results and failures are free; each page is billed separately. Empty optional fields do not make a record empty. Missing fields, null, empty strings and arrays are preserved. Saved media URLs and cursors may expire; query again for current values.
Status codes
| HTTP | Meaning |
|---|---|
| 200 | Success; results may be empty |
| 400 | Invalid parameters or JSON |
| 401 | Missing or invalid authentication |
| 402 | Insufficient credits |
| 429 | Rate limit exceeded |
| 502 | The data request could not complete |
| 503 | API or pricing is not configured |