Skip to content
An image API for
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Bannero API


Simple random banner pictures for blogs, websites and more.


Another way to implement spencerwooo/bannero API service

Just for seeking a new free approach to host an redirect server

Powered by Cloudflare Worker®

Workers Free plan Includes 100,000 total requests per day


I think this simple code do not need the help of wrangler CLI tool and webpack

Only 3 steps:

  1. Goto the Cloudflare Worker® DashBoard
  2. Create a new script with the following code
  3. Add a route and deploy it
addEventListener('fetch', event => {

const handleRequest = async request => {
	let list = await bannero(request)
	let choice = crypto.getRandomValues(new Uint16Array(1))[0] % list.length
	return Response.redirect(list[choice], 302)

const bannero = async () => {
	let remote = await fetch('', {cf: {cacheEverything: true}})
	let text = await remote.text()
	return text.split('\n').slice(0, -1)

The code will be deployed to hundreds of data centers around the world returning responses to your users faster than your origin ever could. You get all the speed and security of the world’s most peered CDN with all the power of JavaScript.




You can’t perform that action at this time.