Meme Feed for Unity

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.

Build your API URL

/api/memes?subreddit=memes&timeframe=year&limit=12
Loading…

Live feed

Unity endpoint

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
    }
  ]
}

Local dev

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.