CPI Inflation API - Dart/Flutter Client

CPI Inflation provides monthly Consumer Price Index data broken down by category including food, housing, transportation, medical care, and more. Includes year-over-year inflation rates for each category.

pub package License: MIT

This is the Dart/Flutter client for the CPI Inflation API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_cpiinflation: ^1.2.2

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_cpiinflation/apiverve_cpiinflation.dart';

void main() async {
  final client = CpiinflationClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'date': '2023-06',
      'category': 'food'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "yearMonth": "2026-08",
    "year": 2026,
    "month": 8,
    "category": "food",
    "index": 350.418,
    "yearOverYearChange": 2.67
  }
}

API Reference

Authentication

All requests require an API key. Get yours at apiverve.com.

License

MIT License - see LICENSE for details.


Built with Dart for APIVerve

Libraries

apiverve_cpiinflation
CPI Inflation API client for Dart/Flutter