Skip to content

Favicon API

Marius David Wieschollek edited this page Feb 4, 2024 · 1 revision

The favicon endpoint returns a png favicon icon for the given domain.

Contents

[[TOC]]

Version History

App Version Change
2018.1.0 Initial introduction of the API

Endpoints

Website Favicon GET Endpoint

URL

Path Method Session required
/api/1.0/service/favicon/{domain}/{size} GET no

Arguments

Arguments Type Default Required Description
domain string - yes The domain name
size int 32 no The size of the favicon in pixels. I must be a multiple of 8 and between 16 and 256.

Restrictions

  • Nextcloud Authentication required

Response

The success status code is 200 Ok. This action returns a png image file on success

Status MIME Description
200 image/png The avatar image file
500 text/html Error page
502 text/html Error page

Notes

  • If no favicon can be found, a default image will be generated
  • Favicons rarely change and can be cached for a long time
Clone this wiki locally