Favicons API with Super Fast Global CDN
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
web Add `json` and `html` Format Oct 30, 2018
LICENSE Initial commit Sep 2, 2018
Procfile Fix root directory for Heroku Oct 30, 2018
README.md Add rewrite rule to nginx.conf Oct 31, 2018
app.json Initial commit Sep 2, 2018
composer.json Add monolog Sep 7, 2018
composer.lock Add monolog Sep 7, 2018
nginx-heroku.conf Add rewrite rule to nginx.conf Oct 31, 2018

README.md

Favicons

Free Favicons API with Super Fast Global CDN, proxying favicon from a domain. This is the code behind favicons.marsble.com.

Usage

GET `https://favicons.marsble.com/:domain`

Example:

Result:

Marsble · GitHub

Miscellaneous

Get as Raw Blob

GET `https://favicons.marsble.com/marsble.com?raw`

Get as Base64 String

GET `https://favicons.marsble.com/marsble.com?base64`

Get as JSON

GET `https://favicons.marsble.com/marsble.com?json`

Get as HTML

GET `https://favicons.marsble.com/marsble.com?html`

Get as XHTML

GET `https://favicons.marsble.com/marsble.com?xhtml`

Force to Use SSL

GET `https://favicons.marsble.com/marsble.com?ssl=1`

Disable Cache

GET `https://favicons.marsble.com/marsble.com?cache=0`

Set Custom Cache (In Seconds)

Example for 1 year:

GET `https://favicons.marsble.com/marsble.com?cache=31556952`

Installation

Clone this repository to your server and serve it with your favorite web server.

Documentations

Documentation is available on Developers page.

License

MIT