Shorts API is a professional WordPress plugin designed to power high-performance, TikTok-style video portals. It bridges your WordPress content with a modern Node.js/Express backend to deliver video feeds with lightning speed.
- High-Performance Scaling: Bypasses heavy
WP_Queryby synchronizing specific video metadata to an external Express API. - WP-CLI Optimization: Bulk sync thousands of posts using the
wp shorts synccommand with built-in batching (--amount=X). - Real-time Synchronization: Automatically updates your video feed whenever a post is published, updated, or deleted.
- Media-Ready Settings: Integrated WordPress Media Uploader for Logos and Favicons.
- Multi-site Support: Dynamic domain verification and Traefik-ready configuration sync.
- GA4 Integration: Native support for Google Analytics tracking IDs for your shorts frontend.
The plugin acts as a Data Provider for a decoupled frontend (React/Next.js).
- WordPress: Content management and video attachment handling.
- Shorts API (Plugin): Extracts metadata and pushes to the backend.
- Express API: Handles indexing, ranking, and high-concurrency requests.
- Redis: Buffers actions (likes, views) and provides rate limiting (3 actions/min).
- Clone or download this repository into your
/wp-content/plugins/folder.git clone https://github.com/ersolucoesweb/shorts-api.git
- Activate the plugin in the WordPress Admin.
- Go to Shorts API menu to configure your branding (Logo, Favicon, Color).
- (Optional) Run your first sync via CLI:
wp shorts sync --amount=100
| Desktop View | Mobile View |
|---|---|
![]() |
![]() |
![]() |
![]() |
(More screenshots available in the assets/ directory)
wp shorts sync: Synchronizes published posts.- Usage:
wp shorts sync --amount=100
- Usage:
wp shorts sync-domain: Register/Update domain configuration in the backend.wp shorts sync-configs: Pushes settings (colors, logo, order) to the API.
Se você deseja usar a API sem o plugin do WordPress, pode integrar diretamente via HTTP ou usar nossas ferramentas administrativas prontas.
Para facilitar o uso sem o plugin, criamos ferramentas administrativas prontas:
- Registrar Site: Gere sua chave e configure seu domínio.
- Configurações: Atualize logos, cores e títulos do portal.
- Enviar Shorts: Interface visual para cadastrar vídeos manualmente. vídeos.
This project is licensed under the GPLv2 or later.
Developed with ❤️ by ER Soluções Web



