Skip to main content

fetchEmojis

Callable


  • Fetches and returns a localized list of emojis (and optional shortcodes) from our CDN. Uses fetchFromCDN and fetchShortcodes under the hood.

    import { fetchEmojis } from 'emojibase';

    await fetchEmojis('ja', {
    compact: true,
    shortcodes: ['cldr'],
    version: '2.1.3',
    });

    It's also possible to load shortcodes from other languages by prefixing the shortcode preset with the chosen locale. This is useful if you want to support English and Japanese in parallel, for example.

    await fetchEmojis('ja', {
    shortcodes: ['cldr', 'en/cldr'],
    });