Data Exports
CICosts allows you to export your cost data for external analysis, reporting, and integration with other tools.
Export Formats
CSV Export
Export data as comma-separated values:
- Opens in Excel, Google Sheets, Numbers
- Easy to analyze with pivot tables
- Simple to share with stakeholders
Example CSV Output:
date,repository,workflow,job,runner,duration_minutes,cost
2024-01-15,api-service,ci.yml,build,ubuntu-latest-8-core,12,$0.38
2024-01-15,api-service,ci.yml,test,ubuntu-latest-4-core,8,$0.13
2024-01-15,api-service,ci.yml,deploy,ubuntu-latest-2-core,3,$0.02
JSON Export
Export data as structured JSON:
- Easy to parse programmatically
- Preserves data types
- Good for API integrations
Example JSON Output:
{
"export_date": "2024-01-15T12:00:00Z",
"date_range": {
"start": "2024-01-01",
"end": "2024-01-15"
},
"summary": {
"total_cost": 1234.56,
"total_runs": 789,
"total_minutes": 15678
},
"data": [
{
"date": "2024-01-15",
"repository": "api-service",
"workflow": "ci.yml",
"runs": 45,
"cost": 123.45
}
]
}
What You Can Export
Cost Summary
High-level overview of spending:
| Field | Description |
|---|---|
| Total Cost | Sum of all costs |
| Total Runs | Number of workflow runs |
| Total Minutes | Billable minutes used |
| Average Cost/Run | Mean cost per workflow run |
Detailed Breakdown
Granular data per run:
| Field | Description |
|---|---|
| Date | When the run occurred |
| Repository | Repository name |
| Workflow | Workflow file name |
| Run ID | GitHub run identifier |
| Jobs | List of jobs in the run |
| Duration | Total runtime in minutes |
| Cost | Calculated cost |
Aggregated Views
Pre-aggregated exports:
- By Repository: Costs grouped by repo
- By Workflow: Costs grouped by workflow
- By Runner: Costs grouped by runner type
- By Day/Week/Month: Time-series aggregations
How to Export
From Dashboard
- Navigate to the view you want to export
- Click the Export button
- Choose format (CSV or JSON)
- Select what to include
- Download the file
From Reports
If you have scheduled reports (Pro+):
- Go to Settings → Reports
- Find your report
- Click Download Latest
- Or configure automatic email delivery
Via API
Use the CICosts API for programmatic exports:
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.cicosts.dev/v1/costs/export?format=csv&start=2024-01-01&end=2024-01-31"
Export Filters
Date Range
Select the time period for export:
- Preset ranges (Today, This Week, This Month)
- Custom start and end dates
- Rolling periods (Last 30 days)
Scope
Filter by scope:
- All organizations
- Specific organization
- Specific repository
- Specific workflow
Granularity
Choose data granularity:
- Summary: Totals only
- Daily: Day-by-day breakdown
- Per-Run: Individual workflow runs
- Per-Job: Job-level details
Use Cases
Financial Reporting
Export monthly costs for budget tracking:
- Select the month
- Choose "By Repository" grouping
- Export as CSV
- Import into your finance system
Client Billing
Generate client invoices:
- Select client organization
- Set billing period
- Export with cost details
- Attach to invoice
Trend Analysis
Analyze costs in external tools:
- Export 6+ months of data
- Import into Excel/Sheets
- Create pivot tables
- Build visualizations
Data Warehouse
Load into your data warehouse:
- Export as JSON via API
- Transform with ETL tools
- Load into BigQuery/Snowflake
- Join with other business data
Scheduled Exports (Pro+)
Automate regular exports:
Email Delivery
- Go to Settings → Reports
- Click Create Report
- Configure:
- Frequency (daily, weekly, monthly)
- Format (CSV or JSON)
- Recipients
- Save
Webhook Delivery
Push exports to your systems:
- Configure a webhook endpoint
- CICosts posts data on schedule
- Your system processes the data
Data Limits
Export Limits
| Plan | Max Rows | Max Date Range |
|---|---|---|
| Free | 10,000 | 30 days |
| Pro | 100,000 | 1 year |
| Team | 500,000 | 1 year |
Rate Limits
- Web exports: 10 per hour
- API exports: 60 per hour (Pro+)
Large Exports
For very large exports:
- Request via API with pagination
- Or request a bulk export (processed async)
- Download link sent via email
Privacy and Security
Data Included
Exports include:
- Repository names
- Workflow names
- Cost and timing data
- Job names
Exports do not include:
- Source code
- Secrets or variables
- Personal user data
- GitHub tokens
Export Audit
All exports are logged:
- Who exported
- When
- What data
- Download count
See also: API Reference →