{"product_id":"n8n-workflow-sync-trending-video-payloads-via-webhooks","title":"n8n Workflow: Sync Trending Video Payloads via Webhooks","description":"\u003ch3\u003eSync Trending Video Payloads to SkipPlay—Automatically via Webhooks\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow accepts a POST webhook containing trending video records, cleans and validates the data, then syncs the normalized payload to the \u003cstrong\u003eSkipPlay\u003c\/strong\u003e API and returns a JSON status response.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a webhook request\u003c\/strong\u003e: Listens for a \u003cstrong\u003ePOST\u003c\/strong\u003e on the workflow webhook URL with a \u003cstrong\u003eregion\u003c\/strong\u003e and a \u003cstrong\u003enon-empty array\u003c\/strong\u003e of video objects.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCleans and normalizes each video\u003c\/strong\u003e: Maps fields such as \u003cstrong\u003eVideo ID\u003c\/strong\u003e, \u003cstrong\u003eTitle\u003c\/strong\u003e, \u003cstrong\u003eViews\u003c\/strong\u003e, \u003cstrong\u003eDuration\u003c\/strong\u003e, and \u003cstrong\u003ePublished At\u003c\/strong\u003e into a consistent structure.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates payload entries\u003c\/strong\u003e: Drops any video items that are missing a \u003cstrong\u003eVideo ID\u003c\/strong\u003e (or \u003cstrong\u003eid\u003c\/strong\u003e \/ \u003cstrong\u003e“Video ID”\u003c\/strong\u003e field, depending on what you send).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSyncs to SkipPlay\u003c\/strong\u003e: Sends the cleaned video list and region via an \u003cstrong\u003eHTTP POST\u003c\/strong\u003e to the SkipPlay sync endpoint, including the required \u003cstrong\u003ex-sync-secret\u003c\/strong\u003e header.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds with JSON\u003c\/strong\u003e: Returns a webhook response confirming the sync, including \u003cstrong\u003eregion\u003c\/strong\u003e, \u003cstrong\u003eprocessed video count\u003c\/strong\u003e, and the \u003cstrong\u003eSkipPlay API response\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomate ingestion of a trending feed from your source system into \u003cstrong\u003eSkipPlay\u003c\/strong\u003e with consistent formatting.\u003c\/li\u003e\n  \u003cli\u003eRun a scheduled or event-driven pipeline where upstream systems post updated trending videos to an n8n webhook.\u003c\/li\u003e\n  \u003cli\u003eEnsure data quality by enforcing a required \u003cstrong\u003evideoId\u003c\/strong\u003e before attempting to sync records.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e: Accepts incoming POST requests with a \u003ccode\u003evideos\u003c\/code\u003e array and optional \u003ccode\u003eregion\u003c\/code\u003e, \u003ccode\u003eapiUrl\u003c\/code\u003e, and \u003ccode\u003esyncSecret\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e: Implements cleaning, normalization, and validation logic (including dropping entries without a Video ID).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e: Posts the normalized payload to the \u003cstrong\u003eSkipPlay\u003c\/strong\u003e sync endpoint using the \u003ccode\u003ex-sync-secret\u003c\/code\u003e header.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRespond to Webhook\u003c\/strong\u003e: Returns the JSON status response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSticky Note\u003c\/strong\u003e: Included for workflow documentation\/clarity.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938261131443,"sku":"N8N-19007","price":15.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/CSWRqwMmeGI8lTrKrH3hx_PiOyLNLT.png?v=1788340911","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-sync-trending-video-payloads-via-webhooks","provider":"N8N Commerce","version":"1.0","type":"link"}