Knowledge Panels API
FastAPI-generated endpoints for Open Food Facts facets and knowledge panels with structured, ready-to-display information
The Knowledge Panels API provides structured, ready-to-display information about Open Food Facts facets such as categories, brands, and other product attributes. This FastAPI-powered service delivers modern, typed endpoints for accessing enriched product data.
This API is automatically generated from FastAPI and provides structured knowledge panels that can be easily integrated into applications for enhanced user experiences.
What are Knowledge Panels?
Knowledge Panels transform raw product data into structured, human-readable information panels that help users understand complex product attributes through:
Convert product facets (categories, brands, labels) into structured information
Add contextual information, explanations, and educational content
Provide content in multiple languages based on user preferences
Generate HTML and JSON formats optimized for direct integration
API Capabilities
Content Types
- Product Facets: Categories, brands, labels, and other product classifications
- Educational Content: Explanations, definitions, and contextual information
- Visual Elements: Icons, images, and visual indicators for facets
- Interactive Elements: Links, actions, and navigation hints
Output Formats
- JSON Structure: Structured data for programmatic use
- HTML Rendering: Ready-to-display HTML content
- Multilingual: Content localized for different languages and regions
- Responsive: Mobile-friendly and accessible markup
The Knowledge Panels API enables applications to provide rich, educational content about products without requiring deep knowledge of Open Food Facts data structures.
Base URL
https://facets-kp.openfoodfacts.org
Common Use Cases
- Product Pages: Display rich information about product categories, brands, or ingredients
- Search Filters: Get structured data for building advanced search interfaces
- Content Management: Access curated information for content creation
- Mobile Apps: Receive ready-to-display panels for mobile applications
All endpoints support CORS and are optimized for high-performance access to structured product data.