Auto-scrapes popular video memes and exposes them as a CORS-enabled JSON API so your Unity VideoPlayer can fetch and play them. Built with Cloudflare Pages + Wrangler.
Paste your deployed .pages.dev URL into MemeFeed.cs and hand videoUrl to VideoPlayer.url.
GET https://YOUR_PROJECT.pages.dev/api/memes
?source=auto&subreddit=memes&timeframe=year&limit=24
{
"count": 24,
"source": "coub",
"memes": [
{
"source": "coub",
"title": "...",
"videoUrl": "https://YOUR_PROJECT.pages.dev/api/video?url=...",
"directUrl": "https://media.coub.com/.../coub-share.mp4",
"thumbnail": "...",
"permalink": "https://coub.com/view/...",
"score": 12345
}
]
}
npm install
npx wrangler login
npm run dev
# deploy when ready
npm run deploy
See README.md and unity/MemeFeed.cs in the project for the full setup.