Skip to main content
GET
/
analytics
/
production
Production metrics over a date range
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/analytics/production \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "date_range": {
      "from": "<string>",
      "to": "<string>"
    },
    "summary": {
      "jobs_completed": 123,
      "jobs_failed": 123,
      "completion_rate": 123,
      "units_produced": 123,
      "total_print_time_hours": 123,
      "revenue_cents": 123
    },
    "daily": [
      {
        "date": "<string>",
        "jobs_completed": 123,
        "jobs_failed": 123,
        "units_produced": 123,
        "total_print_time_minutes": 123,
        "revenue_cents": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Query Parameters

from
string

Start of the reporting window (ISO date, e.g. 2026-01-01). Defaults to 30 days ago.

to
string

End of the reporting window (ISO date). Defaults to today.

printer_id
string

Filter by printer ID

product_id
string

Filter by product ID

Response

Production report

success
enum<boolean>
required
Available options:
true
data
object
required