Provide a user UID and get back that bilibili user's avatar. This API is used mainly to display avatars for certain events in the LAPLACE Chat chat overlay
- API Base:
https://workers.vrp.moe/bilibili/avatar/<uid> - Params
uid: user UID
- Queries
size?: avatar size, defaults to240
- Backend Caching: 300 seconds
- Client Caching: 600 seconds
Why?
Because bilibili avatar images do not allow cross-origin (CORS) requests, and avatar URLs are provided as unordered hashes, an intermediate service is needed to proxy avatar image fetching
function Avatar() {
return (
<img
src={`https://workers.vrp.moe/bilibili/avatar/2132180406`}
referrerPolicy="no-referrer"
loading="lazy"
alt="头像"
/>
);
}Last updated on September 19, 2026