Swiss Floorball API
Unofficial plugin: show Swiss floorball games, rankings, topscorers, rosters and player stats from the public Swiss Unihockey API via shortcodes.
Escolha sólida
Swiss Floorball API is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 4 days ago, and scores 64/100 on our health check.
- Desenvolvido ativamente — última atualização 4 dias atrás
- Testado com as últimas WordPress (7.1)
- Base de usuários pequenas (<10 instalações ativas)
- Muito poucos comentários até agora
- Precisa de PHP 8.2 ou mais recente
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Swiss Floorball API stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| api | >100 |
| floorball | #2 |
| sports | >100 |
| swiss floorball | #1 |
| unihockey | #1 |
About Swiss Floorball API
From the official readme · v2.2.1Descrição
Independent project: This plugin is developed and maintained by Flavio Waser as a personal open-source project. It is not affiliated with, endorsed by or sponsored by Swiss Unihockey (swissunihockey.ch). It only reads data from their public API.
Recursos
- Plug & Play: Configure your Club ID once and get instant access to your club’s data.
- Calendars: Display upcoming games for teams or entire clubs. Includes ICS subscription links so visitors can add games to their personal calendars.
- Rankings: Always up-to-date league tables for any group or league.
- Statistics: Show topscorer lists and detailed game events.
- Player Profiles: Showcase individual player stats and national team members.
- Responsive: Built-in responsive tables that look great on mobile devices, with dark mode support.
- Cached: API responses are cached for one hour, so your pages stay fast and the API is not hammered.
- ID finder: Admin helper pages let you browse leagues, clubs, games and seasons and copy the IDs you need for shortcodes.
Códigos de acesso
Use these shortcodes in any Page or Post to display data. Attributes that are left out fall back to the values from the settings page where applicable.
Club & Team Data
[swfl-club-teams]– List all teams in your club.[swfl-club-games]– Club games, shown week by week with previous/next week buttons. Attributes:season,limit,offset,show_upcoming,show_pagination.[swfl-team-games]– Games of one team, paged around the next game. Attributes:team_id,season,page_size(default 4),limit,offset,show_upcoming,show_pagination.[swfl-club-team-games]– All teams of a club with a team selector and their games. Attributes:season,page_size(default 4).[swfl-next-game]– The next upcoming game of the club, or of one team. Attributes:team_id,season,limit(default 1, max 10).[swfl-last-result]– The most recent result of the club, or of one team. Attributes:team_id,season,limit(default 1, max 10).[swfl-teams]– List teams.[swfl-clubs]– List all clubs.[swfl-calendars]– Show upcoming games + ICS link. Attributes:team_id,club_id,season,league,game_class,group.
Exemplo:
[swfl-calendars team_id="427892"]
[swfl-club-team-games season="2025" page_size="6"]
The games, ranking and Mobiliar topscorer shortcodes mirror the official Swiss Unihockey web components (uniho-*). Attribute names with hyphens (game-class, club-id, page-size) work as well as the underscore forms. Week and page navigation need JavaScript; without it the initial view is still shown.
League & Rankings
[swfl-league-games]– Games of a league and group, navigable round by round; playoff series are grouped. Attributes:game_class,league,season,group.[swfl-rankings]– Show the ranking table. Attributes:season,league,game_class,group(name, e.g.Gruppe 1).[swfl-mobiliar-topscorer]– The Mobiliar topscorers as cards: of the whole league, or of one club whenclub_idis set. Attributes:club_id,season.[swfl-topscorers]– Show the topscorer list. Attributes:season,league,game_class,group,limit,offset,show_pagination.[swfl-groups]– List available groups. Attributes:season,league,game_class.[swfl-cups]– List available cups.
Exemplo:
[swfl-rankings season="2025" league="3" game_class="21" group="Gruppe 1"]
Players & Games
[swfl-player]– Show player profile. Attributes:player_id.[swfl-game-events]– Show events (goals, penalties) of a game. Attributes:game_id.[swfl-national-players]– List national team players.
Customization
The plugin uses standard CSS classes prefixed with .sfa-, scoped to .swiss-floorball-plugin. You can override them in your theme’s style.css or the Customizer to match your site’s branding.
Ícones
The plugin ships inline SVG icons from Material Symbols (Outlined, filled, Apache License 2.0, see THIRD-PARTY.md). No fonts or external requests are used.
- Setting: Show or hide all icons under Settings > Swiss Floorball API > Show icons (option
swfl_show_icons, on by default). - Styling: Use the CSS variables
--swfl-icon-sizeand--swfl-icon-coloron.swiss-floorball-plugin. - Filter:
swfl_icon_svglets you replace an icon. The result is sanitized withwp_kses()(onlysvg,pathandspanwith a fixed set of attributes are kept).
Exemplo:
add_filter( 'swfl_icon_svg', function ( $svg, $name, $args ) {
if ( 'refresh' === $name ) {
return '<svg viewBox="0 0 24 24" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M12 4V1L8 5l4 4V6a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z"/></svg>';
}
return $svg;
}, 10, 3 );
Developer Hooks
swfl_icon_svg(Filter) – Replace the SVG markup of an icon.swfl_request_timeout(Filter) – Override the API request timeout (seconds). Takes precedence over the setting.swfl_rest_rate_limit(Filter) – Override the REST requests per minute and visitor (0 = off). Takes precedence over the setting.swfl_upstream_budget(Filter) – Override the site-wide uncached upstream requests per minute (0 = off). Takes precedence over the setting.swfl_upstream_visitor_budget(Filter) – Override the share of the upstream budget per visitor and minute (0 = off). Takes precedence over the setting.swfl_trusted_proxies(Filter) – Change the list of trusted proxy addresses and CIDR ranges.swfl_client_ip(Filter) – Replace the address that identifies a visitor for the rate limit.swfl_error_cache_ttl(Filter) – Seconds a failed or empty API answer is remembered (default 300, transient failures at most 60, 0 = off).swfl_stale_ttl(Filter) – Seconds an answer is kept as an expired copy after its cache lifetime (default 3600, 0 = none).swfl_upstream_budget_exceeded(Action) – Fires at most once per minute while the site-wide upstream budget is used up.
Serviços externos
This plugin connects to the Swiss Unihockey API: by default the free wc.swissunihockey.ch, optionally the Partner API on office.swissunihockey.ch, depending on the API source setting.
It is used to retrieve floorball data such as club games, team rosters, league rankings, player statistics, and calendar feeds.
What data is sent and when:
- Your configured Club ID and Season are sent to the API every time a shortcode is rendered or an admin page is loaded.
- No personal data of website visitors is transmitted. All requests are read-only.
- With the Partner API selected, your API key and secret are sent to
office.swissunihockey.chto request a short-lived auth token.
Service provider: Swiss Unihockey (Floorball Schweiz)
Terms of Service | Privacy Policy
Data stored on your site: To protect the public REST routes, the plugin counts the requests of each visitor per minute by IP address (IPv6 by its /64 prefix); the counter keeps only a hash and expires with the minute. When a visitor exceeds a limit, the address or IPv6 prefix is kept for one hour in the Blocked visitors list on the settings page, visible to administrators only, and then deleted. The plugin adds a suggested text to Settings → Privacy → Policy guide that you can copy into your privacy policy.
Images from Cloudinary: Team logos and player portraits come from the API as image URLs on res.cloudinary.com (Swiss Unihockey’s image host). The visitor’s browser loads these images directly from Cloudinary when a page with such a shortcode is shown, so the visitor’s IP address and browser data are transmitted to Cloudinary. The plugin does not store or process this data.
Service provider: Cloudinary Ltd. | Terms of Service | Privacy Policy
Links to other services: Venue cells link to OpenStreetMap (built from the venue coordinates) and game links point to myapp.swissunihockey.ch. No data is sent to these sites unless a visitor clicks the link.
Disclaimer: This is an independent plugin. It is not affiliated with, endorsed by or sponsored by Swiss Unihockey (Floorball Schweiz). “Swiss Unihockey” is the name of its respective owner and is used only to describe the data source. “Swiss floorball” in the plugin name describes the sport in Switzerland and does not refer to any organisation.
Instalação
- Download the plugin from the releases page on GitHub and upload the
swiss-floorball-api.zipfile to your WordPress plugins (or install it from the WordPress.org plugin directory). - Ative o plugin através do menu plugins em WordPress.
- Navigate to Settings > Swiss Floorball API.
- Enter your Club ID (e.g.,
427892) and the Current Season (e.g.,2025). - Click Save Changes.
- Add the shortcodes to your pages or posts.
API sources
The free API is a read-only whitelist. Shortcodes that need an endpoint it does not offer show a notice that points to the settings.
- Games, rankings, teams, clubs, seasons, cups, game details – available with: Free, Partner
- Leagues and groups (ID finder) – available with: Partner
- Topscorers, player profiles, national players, game events – available with: Partner
- Calendars / ICS links (generated by the plugin from the games) – available with: Free, Partner
Definições
- API source – Where the data comes from (
swfl_api_source). Free API (default,wc.swissunihockey.ch) or Partner API (office.swissunihockey.ch, needs credentials). See API sources above for what each source provides. - Partner API key / secret – Credentials for the Partner API (
swfl_api_key,swfl_api_secret). Only used when the source is Partner API; the plugin exchanges them for a short-lived auth token. - Swiss Floorball Club Number – Your club’s ID (
swfl_club_number), used by the club shortcodes. - Swiss Floorball Club Name – Filled in automatically from the API when you save a new Club ID (
swfl_club_name). - Swiss Floorball Aktuelle Saison – Season as a year, e.g.
2025(swfl_actual_season). Used when a shortcode has noseasonattribute. - Show icons – Show or hide all icons in the admin and in the shortcodes (on by default).
- Theme – Controls whether the plugin uses light, dark, or auto (follows system preference) colors (
swfl_theme). Option values areauto(default),light, ordark. - Seed colour – Optional brand colour as hex, e.g.
#0066cc(swfl_seed_color). Primary and secondary colours are derived from it for light and dark mode with AA text contrast. Leave empty for the default colours. - Table style –
flat(default: no border or shadow, thin row dividers, accent line under the header) orclassic(the previous boxed look) (swfl_table_style). - Table colours – Optional hex colours picked with the WordPress colour picker: accent (header line), header text, row divider and row highlight (
swfl_table_{accent,header,divider,highlight}_color). Accent and header text are adjusted to keep AA contrast in light and dark mode. Empty uses the defaults derived from the seed colour. - Striped table rows – Subtle zebra striping for table rows (
swfl_table_striped, off by default). - API request timeout (seconds) – Seconds to wait for the API, 1-30 (default 3).
- REST requests per minute and visitor – Rate limit of the public REST routes per visitor, 0-1000 (default 60, 0 = off) (
swfl_rest_rate_limit). Visitors are told apart by IP address, IPv6 by their /64 prefix. - Upstream requests per minute – Site-wide limit for the uncached API requests that the public REST routes may cause per clock minute, 0-10000 (default 120, 0 = off) (
swfl_upstream_budget). When it is used up, the routes serve an expired cached copy or answer503withRetry-After. Shortcode page views, the admin area, administrators and the cache warm-up are not limited. - Upstream requests per minute and visitor – Share of that limit one visitor (IP address, IPv6 /64 prefix) may use per minute, 0-10000 (default 20, 0 = off) (
swfl_upstream_visitor_budget), so one or two addresses cannot use it up for everybody. Beyond it a visitor gets an expired cached copy or429withRetry-After. - Trusted proxies – Only behind a reverse proxy or CDN that does not pass the real visitor address on: one IP address or CIDR range per line (IPv4 from /8, IPv6 from /16) (
swfl_trusted_proxies). For requests from these addresses the rate limit reads the visitor fromX-Forwarded-For; otherwise the header is ignored. Restoring the real address in the web server (mod_remoteip,real_ip_header) is the better way.
The settings page also lists the visitors the REST rate limit blocked during the last hour (kept for one hour, then removed). The admin interface is currently in German. Under Cache Verwaltung the button Cache leeren removes all cached API responses. Changing the Club Number clears the cache automatically.
Log de Changes
Breaking changes: the API source, the calendar feed, shortcode attributes and the table markup changed. Read the upgrade guide at https://github.com/flawas/floorball-api-for-swiss-unihockey/blob/main/docs/migration.md before updating.
2.2.1 – 2026-11-29
- Change: Tested up to WordPress 7.2; CI also lints and tests on PHP 8.6
- Change: The frontend no longer loads jQuery. The empty
swfl-public.jsis gone and the widget script is plain JavaScript, loaded deferred in the footer. Code that relied on the plugin loading jQuery on the frontend must enqueue jQuery itself - Fix: Shortcodes outside the post content (archives, block theme templates, page builders) now load their styles and scripts themselves, so their tables are no longer unstyled
- Change: The admin script loads in the footer;
:first/:lastselectors and$(document).readywere replaced ahead of jQuery 4 - Change: French and Italian translations proofread (French typography, clearer wording of the colour, limit and API secret settings)
2.2.0 – 2026-10-22
- Security: The plugin needs PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer (also newer branches), the releases that fix the critical remote code execution vulnerabilities CVE-2026-109618 and CVE-2026-109619 (
Requires PHPis now 8.2). On an older release, and on PHP 8.1 and older, the plugin loads nothing, shows administrators the version they need and refuses to be activated.define( 'SWFL_ALLOW_OTHER_PHP', true );inwp-config.phpruns it anyway, e.g. on distribution builds with backported fixes - Security: Failed API requests are cached briefly, so repeating a request with an unknown ID no longer reaches the Swiss Unihockey API every time. Permanent failures (such as 404 for an unknown ID) are remembered for 5 minutes, transient ones (timeouts, 5xx, 429) for at most 60 seconds, never longer than the cache lifetime of the endpoint (filter
swfl_error_cache_ttl, 0 turns it off). Answers without any rows are cached just as briefly. Missing or rejected Partner API credentials are never cached, a forced refresh (cache warm-up) never writes a failure, and a failure never replaces cached data (Issue #112) - Security: Every argument of the public REST routes is validated before any upstream request: IDs are digits only from 1 to 10,000,000,
seasonis empty, 0 or a start year from 1996 to next year, andgroupis up to 40 letters, digits, spaces or. _ / -. Invalid values get400 rest_invalid_param(Issue #113) - Security: New setting Upstream requests per minute (default 120, filter
swfl_upstream_budget): a site-wide budget for the uncached API requests that the public REST routes may cause, counted per page of a long list and exact also without a persistent object cache. When it is used up, the routes serve an expired cached copy (kept up to an hour longer, filterswfl_stale_ttl) with a shortmax-age, otherwise503withRetry-After; the settings page shows a notice and the actionswfl_upstream_budget_exceededfires once per minute. Shortcode page views, the admin area, administrators and the cache warm-up are not limited. Every visitor may only use a share of it (setting Upstream requests per minute and visitor, default 20, filterswfl_upstream_visitor_budget; beyond it429), so one or two addresses can no longer use the budget up for everybody (Issue #114) - Security: The REST rate limit groups IPv6 visitors by their /64 prefix and counts atomically, also without a persistent object cache (one option row per visitor and minute, increased by a single SQL statement; rows of ended windows are removed, refused requests only read). A new opt-in setting Trusted proxies reads the visitor from
X-Forwarded-Foronly for requests from listed proxy ranges (filtersswfl_trusted_proxiesandswfl_client_ip). Forwarded headers are still ignored by default. A rate-limit rule for/wp-json/swfl/in your CDN or WAF remains the recommended first line of defence (Issue #115) - New: The settings page lists the visitors the REST rate limit or their upstream share blocked during the last hour (IPv4 address or IPv6 /64 prefix, whether the block is still running, blocked minutes, first block). Entries are kept for one hour after their last block, at most 50, written at most once per visitor and minute
- Change: The settings page shows the problems its automatic saving found (for example ignored trusted proxy entries or a club number without a name) instead of only “Saved.”
- Change: Refused (429, 503) and failed widget reloads show a short notice instead of failing silently, and the team select returns to the team whose games are shown
- New: The plugin is fully available in English, German, French and Italian. All texts in the code are English; translations ship in
languages/and are used unless a language pack from translate.wordpress.org exists: German for Switzerland (de_CH, Swiss spelling) and for all other German locales (de_DE), French (fr_FR, also used forfr_CA,fr_BE, …) and Italian (it_IT), with the Swiss floorball terms (“unihockey”, “topscorer”, “La Mobilière” / “La Mobiliare”). Admin pages and texts that were hard-coded in German (the shortcode overview, settings help, menus, notices) are now translatable. Column titles and names delivered by the Swiss Unihockey API stay as the API sends them (German) - New: Suggested privacy policy text under Settings → Privacy → Policy guide (requests to the Swiss Unihockey API, images from Cloudinary, the IP-based rate limit and the one-hour list of blocked visitors)
- Fix: The club name in the “Club name automatically set” notice is escaped
2.1.2 – 2026-10-18
- Change: The WordPress.org plugin page is easier to read.
readme.txtis generated with the sections WordPress.org knows (Description, Installation, FAQ, Screenshots, Changelog, Upgrade Notice); tables became lists, code examples are indented blocks and emoji are gone. The nine screenshots are now published, and the release deploysassets/(banner, icon, screenshots). The icon and the 772×250 banner now have their correct sizes. No code changes
2.1.1 – 2026-10-13
- Change: Readme: the short description, FAQ and disclaimer now state clearly that this is an independent, unofficial plugin that is not affiliated with Swiss Unihockey and only reads their public API. No code changes
2.1.0 – 2026-10-11
- New: Read-only JSON REST routes under
swfl/v1:/games,/next-game,/last-result,/rankings,/topscorers. They use the shared cache and the existing rate limit; visitors get a neutral 502 on upstream errors (Issue #22) - New: Shortcodes
[swfl-next-game]and[swfl-last-result](attributesteam_id,season,limit) and the sidebar widget Swiss Floorball: Nächstes Spiel und letztes Resultat with the display mode next / last / both and an optional team ID. They read the club and season from the settings. A game counts as a result from the day after it was played. Internally the games list options gotshow_past, which keeps past games, newest first (Issue #18) - New: Scheduled cache warm-up. A WP-Cron job refreshes the games, rankings and topscorers of your club in the background (setting Cache warm-up interval (minutes), default 30, 0 turns it off), so the first visitor after a cache expiry no longer waits for the API. The option Warm up after clearing the cache refills the cache right after a manual clear.
SWFL_Client::fetch_data()got a$force_refreshargument that skips the cache read but still writes the response back. - New: List options
limit,offset,show_upcomingandshow_paginationfor[swfl-club-games],[swfl-team-games](andlimit,offset,show_paginationfor[swfl-topscorers]). Any of them shows a static, trimmed list instead of the week/pager navigation; pagination uses theswfl_pagequery argument. Example:[swfl-team-games team_id="12345" limit="5" show_upcoming="true"] - New: Configurable cache lifetime per API endpoint (games, rankings, game events, topscorers, leagues, seasons, clubs, cups, groups, teams, players, national players) on the settings page. Game events default to 120 seconds for near-live updates, rankings and topscorers to 2 hours.
SWFL_Client::fetch_data()keeps its signature; without an explicit lifetime it uses the setting of the endpoint
2.0.3 – 2026-10-11
- Security: Values sent to the Swiss Unihockey API are URL-encoded, so a request value such as a group name can no longer add query parameters of its own (parameter injection through the public REST routes and shortcode attributes)
- Security: The public REST routes
swfl/v1/*are rate limited per visitor (setting REST requests per minute and visitor, default 60, 0 turns it off, filterswfl_rest_rate_limit), and thegroupvalue accepts only letters, digits, spaces and. _ / -up to 40 characters. This stops anonymous visitors from filling the options table with cached responses - Security: The calendar feed no longer returns the upstream API’s error text to visitors; administrators still get it
- Fix: WordPress.org plugin review: escape late. Icon markup is passed through
wp_kses()where it is printed, inline CSS goes throughwp_strip_all_tags(), and table cells, row attributes, settings inputs and the unknown-response fallback are escaped at the point of output - Remove: The compatibility loader
floorball-api-for-swiss-unihockey.phpis gone, because a plugin must not change the list of active plugins itself. Sites that update from 2.0.1 or older may show the plugin as deactivated once; activate it again, the settings are kept - Change: The cache is cleared through
SWFL_Client::clear_cache()(one shared implementation instead of two copies)
Capturas de tela
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Swiss Floorball API alternatives
All api plugins →FAQ
Swiss Floorball API: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Swiss Floorball API free?
Yes. Swiss Floorball API is free to download and use from the official WordPress.org plugin directory.
Is Swiss Floorball API safe to use in 2026?
Swiss Floorball API is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 4 days ago, and scores 64/100 on our health check.
How many websites use Swiss Floorball API?
Swiss Floorball API is active on <10 WordPress websites and has been downloaded 357 times since it launched in October 2026. It was downloaded 161 times in the last 30 days.
Does Swiss Floorball API work with WordPress 7.1?
Yes. The developer has tested Swiss Floorball API up to WordPress 7.2, the latest release. It requires WordPress 5.0 or newer.
What PHP version does Swiss Floorball API need?
Swiss Floorball API requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Swiss Floorball API last updated?
The latest version, 2.2.1, was released on November 29, 2026 (4 days ago).
Who makes Swiss Floorball API?
Swiss Floorball API is developed and maintained by flaviowaser.
What are the best alternatives to Swiss Floorball API?
The most popular alternatives to Swiss Floorball API are WP Consent API (300K+ installs), Disable REST API (80K+ installs) and Mailgun for WordPress (70K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
