Skip to main content

apiverve_cpiinflation 1.2.3 copy "apiverve_cpiinflation: ^1.2.3" to clipboard
apiverve_cpiinflation: ^1.2.3 copied to clipboard

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.

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.3

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

0
likes
130
points
108
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_cpiinflation