CoolFace
Apppublic

isakskogstad/api-data-fetcher

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

πŸš€ Optimized Data Harvester

Research-verified API endpoints with intelligent data extraction, compression, and optimized database storage.

✨ Features

🌍 10 Data Sources - Research-verified API endpoints based on 2024 official documentation

  • β€”πŸ‡ΈπŸ‡ͺ Swedish Government: Skolverket, SCB, Kolada, Riksbanken, Swecris, CSN
  • β€”πŸŒ International: Eurostat, WHO, OECD, World Bank

🎯 Modern Interface

  • β€”Minimalist Design - Clean, gradient interface with glass morphism
  • β€”Real-time Metrics - Live status indicators and progress tracking
  • β€”Interactive Cards - Hover effects and modern UI components
  • β€”Responsive Layout - Works perfectly on all devices

πŸš€ Optimized Features

  • β€”One-Click Collection - Single button fetches from all 10 APIs automatically
  • β€”Intelligent Data Extraction - Custom parsers for each API response format
  • β€”Smart Compression - Automatic gzip compression for data >512 bytes (up to 80% space savings)
  • β€”Enhanced Database - SQLite with WAL mode, proper indexing, and performance optimization
  • β€”Real-time Analytics - Live performance metrics, compression ratios, and error tracking
  • β€”Advanced Viewer - Enhanced database explorer with summary statistics

πŸ”§ Technical Architecture

  • β€”Response-Tested APIs - All endpoints verified by live testing in 2024
  • β€”Smart Data Paths - Configurable extraction using dot notation (e.g., "body._embedded.schoolUnits")
  • β€”Performance Database - WAL mode, 6 strategic indexes, compression support
  • β€”Error Resilience - Graceful degradation with detailed error logging
  • β€”Format Support - JSON-stat, SDMX-JSON, HAL+JSON, OData, PX-Web
  • β€”Authentication Handling - Bearer tokens, API keys, and public endpoints

πŸ“Š API Details

Swedish Sources (Research-Verified 2024)

  • β€”Skolverket: Education data, compact school units with coordinates (HAL+JSON v3)
  • β€”SCB: Population statistics via POST requests (Rate limit: 10/10 sec)
  • β€”Kolada: Municipal KPIs and regional data (No auth required)
  • β€”Riksbanken: Latest exchange rate observations (SWEA v1 API with public key)
  • β€”Swecris: Research projects (Bearer token: VRSwecrisAPI2025-1)
  • β€”CSN: Student finance statistics (PX-Web API format)

International Sources (Research-Verified 2024)

  • β€”Eurostat: EU demographic density statistics (JSON-stat 2.0 format)
  • β€”WHO: Global health dimensions via GHO OData API (No auth required)
  • β€”OECD: Economic data via SDMX-JSON format (stats.oecd.org)
  • β€”World Bank: Population indicators via API v2 (format=json)

πŸš€ Simple Workflow

One-Click Operation

  1. 1.Click Button - Press "FETCH ALL DATA FROM ALL APIS"
  2. 2.Watch Progress - Real-time updates as each API is contacted
  3. 3.View Results - Automatic display of success metrics and data preview
  4. 4.Explore Data - Built-in database viewer and analytics charts

What Happens Automatically:

  • β€”API Requests - All 10 APIs contacted with proper headers and authentication
  • β€”Data Processing - Responses parsed and meaningful data extracted
  • β€”Storage - Automatic saving to SQLite with compression and deduplication
  • β€”Analytics - Instant charts and statistics generated
  • β€”Error Handling - Failed requests logged with detailed error messages

🎨 Modern Design

  • β€”Glass Morphism - Translucent cards with backdrop blur
  • β€”Gradient Backgrounds - Beautiful blue-to-purple gradients
  • β€”Status Indicators - Color-coded API health monitoring
  • β€”Smooth Animations - CSS transitions and hover effects
  • β€”Responsive Grid - Adaptive layout for all screen sizes

πŸ“ˆ Data Visualization

  • β€”Success Rate Pie Charts - Visual fetch status overview
  • β€”Records Bar Charts - Compare data volume by API
  • β€”Real-time Metrics - Live updating counters and indicators
  • β€”Interactive Tables - Sortable, filterable data preview

The simplest and most efficient way to collect data from multiple international APIs with a single click.