Q quartertrace
SEC DATA FOR AI AGENTS

Quarterly fundamentals.
One request away.

Find a covered quarter, send one JSON request, and receive source-linked financial data in a predictable schema.

Start with the API ↓
OpenAPI 3.1·12,199 records·$0.05 per paid financial response · all GET endpoints are free
agent.request POST
// Quarterly financials
POST /api/financials/AAPL
{ "year": 2025, "quarter": 1 }
Financials endpointJSON response
01 / 03
API REFERENCE

API reference
for agents.

Choose a ticker and period from live coverage, then send a POST request. Quarters use the calendar year.

POST/api/financials/{ticker}JSON

One record per supported ticker, calendar year, and quarter.

Path parameter

tickerstringCase-insensitive symbol, e.g. AAPL

JSON body

yearintegerCalendar year ≥ 1
quarterinteger1, 2, 3, or 4 (calendar quarter)
x402 · exact$0.05 USDC · Base (chain 8453)

First check free availability at GET /api/coverage/{ticker}; it returns years and quarters only. For example, COO ends at 1993 Q3; MMM ends at 1993 Q3; APD ends at 1993 Q4. A listed ticker may have only historical data. Financial values cost $0.05 USDC per request; every retry or repeat request is charged again. An available record returns a 402 payment challenge.

Read the OpenAPI 3.1 contract inline ↓ · Agent workflow guide ↗
REQUESTcURL · unpaid first attempt → 402
curl -i -X POST https://www.quartertrace.com/api/financials/AAPL \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"year":2025,"quarter":1}'

An available quarter returns 402 Payment Required with a PAYMENT-REQUIRED challenge; this first request is unpaid. Open the x402 client steps below. Each paid response costs $0.05, including repeats.

Pay for one quarter with x402

Each request for an available record costs $0.05 USDC on Base (chain 8453). Every repeat request or retry for the same ticker and quarter is charged another $0.05; there are no free repeats. Invalid or missing quarters return 400 before payment; 503 means the service or payment setup is unavailable. A 402 is a payment challenge; the x402 client signs it and retries automatically. Fund an EVM wallet with Base USDC and keep its private key in a local secret.

npm install @x402/fetch @x402/core @x402/evm viem
# save as client.mjs; set EVM_PRIVATE_KEY in .env
node --env-file=.env client.mjs
import { x402Client, wrapFetchWithPayment, x402HTTPClient } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const base = "https://www.quartertrace.com";
const check = await fetch(base + "/api/coverage/AAPL");
if (!check.ok) throw Error("Coverage lookup failed: " + check.status);
const coverage = await check.json();
if (!coverage.years.some(y => y.year === 2025 && y.quarters.includes(1))) throw Error("Quarter unavailable");
try {
 const client = new x402Client();
 registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
 const paidFetch = wrapFetchWithPayment(fetch, client);
 const response = await paidFetch(base + "/api/financials/AAPL", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ year: 2025, quarter: 1 }) });
 const paymentHeader = response.headers.get("PAYMENT-RESPONSE") ?? response.headers.get("X-PAYMENT-RESPONSE");
 const receipt = paymentHeader ? new x402HTTPClient(client).getPaymentSettleResponse(name => response.headers.get(name)) : null;
 const challenge = response.status === 402 && response.headers.has("PAYMENT-REQUIRED");
 console.log(response.status, await response.json(), challenge ? "payment challenge; no settlement receipt" : receipt ?? "no settlement receipt");
 if (response.ok && !receipt) console.warn("Verify payment status before retrying.");
} catch (error) {
 console.error("Check EVM_PRIVATE_KEY, Base USDC, and network/facilitator access. After a timeout, verify settlement before retrying.", error);
}

Every retry or duplicate paid request incurs another $0.05 charge, even for the same ticker and quarter. After a timeout or lost response, check the wallet receipt before retrying; the retry is still charged.

200 RESPONSE · AFTER PAID RETRY · AAPL 2025 Q1application/json

Real API values and units. Expand the full response to inspect every metric and source.

{
"ticker": "AAPL",
"year": 2025,
"quarter": 1,
"periodStart": "2024-12-29",
"periodEnd": "2025-03-29",
"fiscalPeriod": "FY2025-Q2",
"metrics": { … },
"incomeStatement": { … }
"revenue": { … },
"value": 95359,
"unit": "USD_MILLIONS"
},
"netIncome": { … },
"value": 24780,
"unit": "USD_MILLIONS"
},
"basicEarningsPerShare": { … }
"value": 1.65,
"unit": "USD_PER_SHARE"
}
}
},
"sources": { … }
"sec": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000057/aapl-20250329.htm"
}
}
SEC filing ↗
Full JSON response · AAPL 2025 Q1
{
  "ticker": "AAPL",
  "year": 2025,
  "quarter": 1,
  "periodStart": "2024-12-29",
  "periodEnd": "2025-03-29",
  "fiscalPeriod": "FY2025-Q2",
  "sources": {
    "sec": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000057/aapl-20250329.htm",
    "appleRelease": "https://www.apple.com/newsroom/pdfs/fy2025-q2/FY25_Q2_Consolidated_Financial_Statements.pdf",
    "cashFlowQuarterMethod": "Fiscal Q2 standalone cash flows = six-month values in this filing minus FY2025 Q1 values in the prior filing.",
    "cashFlowPriorQuarter": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000008/aapl-20241228.htm"
  },
  "metrics": {
    "incomeStatement": {
      "productRevenue": {
        "value": 68714,
        "unit": "USD_MILLIONS"
      },
      "servicesRevenue": {
        "value": 26645,
        "unit": "USD_MILLIONS"
      },
      "revenue": {
        "value": 95359,
        "unit": "USD_MILLIONS"
      },
      "productCostOfSales": {
        "value": 44030,
        "unit": "USD_MILLIONS"
      },
      "servicesCostOfSales": {
        "value": 6462,
        "unit": "USD_MILLIONS"
      },
      "costOfSales": {
        "value": 50492,
        "unit": "USD_MILLIONS"
      },
      "grossProfit": {
        "value": 44867,
        "unit": "USD_MILLIONS"
      },
      "researchAndDevelopment": {
        "value": 8550,
        "unit": "USD_MILLIONS"
      },
      "sellingGeneralAndAdministrative": {
        "value": 6728,
        "unit": "USD_MILLIONS"
      },
      "operatingExpenses": {
        "value": 15278,
        "unit": "USD_MILLIONS"
      },
      "operatingIncome": {
        "value": 29589,
        "unit": "USD_MILLIONS"
      },
      "otherIncomeExpenseNet": {
        "value": -279,
        "unit": "USD_MILLIONS"
      },
      "incomeBeforeTaxes": {
        "value": 29310,
        "unit": "USD_MILLIONS"
      },
      "incomeTaxExpense": {
        "value": 4530,
        "unit": "USD_MILLIONS"
      },
      "netIncome": {
        "value": 24780,
        "unit": "USD_MILLIONS"
      },
      "basicEarningsPerShare": {
        "value": 1.65,
        "unit": "USD_PER_SHARE"
      },
      "dilutedEarningsPerShare": {
        "value": 1.65,
        "unit": "USD_PER_SHARE"
      },
      "weightedAverageBasicShares": {
        "value": 14994082,
        "unit": "SHARES_THOUSANDS"
      },
      "weightedAverageDilutedShares": {
        "value": 15056133,
        "unit": "SHARES_THOUSANDS"
      },
      "effectiveTaxRate": {
        "value": 15.5,
        "unit": "PERCENT"
      }
    },
    "revenueByProduct": {
      "iPhone": {
        "value": 46841,
        "unit": "USD_MILLIONS"
      },
      "Mac": {
        "value": 7949,
        "unit": "USD_MILLIONS"
      },
      "iPad": {
        "value": 6402,
        "unit": "USD_MILLIONS"
      },
      "wearablesHomeAndAccessories": {
        "value": 7522,
        "unit": "USD_MILLIONS"
      },
      "services": {
        "value": 26645,
        "unit": "USD_MILLIONS"
      }
    },
    "revenueByRegion": {
      "Americas": {
        "value": 40315,
        "unit": "USD_MILLIONS"
      },
      "Europe": {
        "value": 24454,
        "unit": "USD_MILLIONS"
      },
      "GreaterChina": {
        "value": 16002,
        "unit": "USD_MILLIONS"
      },
      "Japan": {
        "value": 7298,
        "unit": "USD_MILLIONS"
      },
      "RestOfAsiaPacific": {
        "value": 7290,
        "unit": "USD_MILLIONS"
      }
    },
    "balanceSheet": {
      "cashAndCashEquivalents": {
        "value": 28162,
        "unit": "USD_MILLIONS"
      },
      "currentMarketableSecurities": {
        "value": 20336,
        "unit": "USD_MILLIONS"
      },
      "accountsReceivableNet": {
        "value": 26136,
        "unit": "USD_MILLIONS"
      },
      "vendorNonTradeReceivables": {
        "value": 23662,
        "unit": "USD_MILLIONS"
      },
      "inventories": {
        "value": 6269,
        "unit": "USD_MILLIONS"
      },
      "otherCurrentAssets": {
        "value": 14109,
        "unit": "USD_MILLIONS"
      },
      "currentAssets": {
        "value": 118674,
        "unit": "USD_MILLIONS"
      },
      "nonCurrentMarketableSecurities": {
        "value": 84424,
        "unit": "USD_MILLIONS"
      },
      "propertyPlantAndEquipmentNet": {
        "value": 46876,
        "unit": "USD_MILLIONS"
      },
      "otherNonCurrentAssets": {
        "value": 81259,
        "unit": "USD_MILLIONS"
      },
      "nonCurrentAssets": {
        "value": 212559,
        "unit": "USD_MILLIONS"
      },
      "totalAssets": {
        "value": 331233,
        "unit": "USD_MILLIONS"
      },
      "accountsPayable": {
        "value": 54126,
        "unit": "USD_MILLIONS"
      },
      "otherCurrentLiabilities": {
        "value": 61849,
        "unit": "USD_MILLIONS"
      },
      "deferredRevenue": {
        "value": 8976,
        "unit": "USD_MILLIONS"
      },
      "commercialPaper": {
        "value": 5982,
        "unit": "USD_MILLIONS"
      },
      "currentTermDebt": {
        "value": 13638,
        "unit": "USD_MILLIONS"
      },
      "currentLiabilities": {
        "value": 144571,
        "unit": "USD_MILLIONS"
      },
      "nonCurrentTermDebt": {
        "value": 78566,
        "unit": "USD_MILLIONS"
      },
      "otherNonCurrentLiabilities": {
        "value": 41300,
        "unit": "USD_MILLIONS"
      },
      "nonCurrentLiabilities": {
        "value": 119866,
        "unit": "USD_MILLIONS"
      },
      "totalLiabilities": {
        "value": 264437,
        "unit": "USD_MILLIONS"
      },
      "commonStockAndAdditionalPaidInCapital": {
        "value": 88711,
        "unit": "USD_MILLIONS"
      },
      "accumulatedDeficit": {
        "value": -15552,
        "unit": "USD_MILLIONS"
      },
      "accumulatedOtherComprehensiveLoss": {
        "value": -6363,
        "unit": "USD_MILLIONS"
      },
      "shareholdersEquity": {
        "value": 66796,
        "unit": "USD_MILLIONS"
      },
      "liabilitiesAndShareholdersEquity": {
        "value": 331233,
        "unit": "USD_MILLIONS"
      },
      "issuedAndOutstandingShares": {
        "value": 14939315,
        "unit": "SHARES_THOUSANDS"
      }
    },
    "cashFlow": {
      "depreciationAndAmortization": {
        "value": 2661,
        "unit": "USD_MILLIONS"
      },
      "shareBasedCompensation": {
        "value": 3226,
        "unit": "USD_MILLIONS"
      },
      "otherOperatingAdjustments": {
        "value": -208,
        "unit": "USD_MILLIONS"
      },
      "accountsReceivableChange": {
        "value": 3669,
        "unit": "USD_MILLIONS"
      },
      "vendorReceivablesChange": {
        "value": 6005,
        "unit": "USD_MILLIONS"
      },
      "inventoryChange": {
        "value": 643,
        "unit": "USD_MILLIONS"
      },
      "otherAssetsChange": {
        "value": -5310,
        "unit": "USD_MILLIONS"
      },
      "accountsPayableChange": {
        "value": -7933,
        "unit": "USD_MILLIONS"
      },
      "otherLiabilitiesChange": {
        "value": -3581,
        "unit": "USD_MILLIONS"
      },
      "cashFromOperatingActivities": {
        "value": 23952,
        "unit": "USD_MILLIONS"
      },
      "marketableSecuritiesPurchases": {
        "value": -6318,
        "unit": "USD_MILLIONS"
      },
      "marketableSecuritiesMaturities": {
        "value": 10620,
        "unit": "USD_MILLIONS"
      },
      "marketableSecuritiesSales": {
        "value": 1718,
        "unit": "USD_MILLIONS"
      },
      "capitalExpenditures": {
        "value": -3071,
        "unit": "USD_MILLIONS"
      },
      "otherInvestingActivities": {
        "value": -32,
        "unit": "USD_MILLIONS"
      },
      "cashFromInvestingActivities": {
        "value": 2917,
        "unit": "USD_MILLIONS"
      },
      "shareBasedCompensationTaxPayments": {
        "value": -284,
        "unit": "USD_MILLIONS"
      },
      "dividendPayments": {
        "value": -3758,
        "unit": "USD_MILLIONS"
      },
      "shareRepurchases": {
        "value": -25898,
        "unit": "USD_MILLIONS"
      },
      "termDebtRepayments": {
        "value": -3000,
        "unit": "USD_MILLIONS"
      },
      "commercialPaperChange": {
        "value": 3976,
        "unit": "USD_MILLIONS"
      },
      "otherFinancingActivities": {
        "value": -42,
        "unit": "USD_MILLIONS"
      },
      "cashFromFinancingActivities": {
        "value": -29006,
        "unit": "USD_MILLIONS"
      },
      "changeInCash": {
        "value": -2137,
        "unit": "USD_MILLIONS"
      },
      "endingCashAndRestrictedCash": {
        "value": 28162,
        "unit": "USD_MILLIONS"
      },
      "cashTaxesPaid": {
        "value": 13032,
        "unit": "USD_MILLIONS"
      }
    },
    "comprehensiveIncome": {
      "foreignCurrencyTranslationNetOfTax": {
        "value": 90,
        "unit": "USD_MILLIONS"
      },
      "derivativeFairValueChangeNetOfTax": {
        "value": -318,
        "unit": "USD_MILLIONS"
      },
      "realizedDerivativeGainLossAdjustment": {
        "value": -628,
        "unit": "USD_MILLIONS"
      },
      "derivativeUnrealizedGainLossChange": {
        "value": -946,
        "unit": "USD_MILLIONS"
      },
      "marketableDebtFairValueChangeNetOfTax": {
        "value": 1097,
        "unit": "USD_MILLIONS"
      },
      "realizedDebtGainLossAdjustment": {
        "value": 185,
        "unit": "USD_MILLIONS"
      },
      "marketableDebtUnrealizedGainLossChange": {
        "value": 1282,
        "unit": "USD_MILLIONS"
      },
      "otherComprehensiveIncome": {
        "value": 426,
        "unit": "USD_MILLIONS"
      },
      "comprehensiveIncome": {
        "value": 25206,
        "unit": "USD_MILLIONS"
      }
    },
    "shareholdersEquityChanges": {
      "shareBasedCompensation": {
        "value": 3324,
        "unit": "USD_MILLIONS"
      },
      "declaredDividends": {
        "value": -3794,
        "unit": "USD_MILLIONS"
      },
      "sharesWithheldForEquityAwards": {
        "value": -85,
        "unit": "USD_MILLIONS"
      },
      "commonStockRepurchased": {
        "value": -25232,
        "unit": "USD_MILLIONS"
      },
      "dividendsDeclaredPerShare": {
        "value": 0.25,
        "unit": "USD_PER_SHARE"
      }
    },
    "derived": {
      "grossMarginPercent": {
        "value": 47.05,
        "unit": "PERCENT",
        "formula": "grossProfit / revenue * 100"
      },
      "operatingMarginPercent": {
        "value": 31.03,
        "unit": "PERCENT",
        "formula": "operatingIncome / revenue * 100"
      },
      "netMarginPercent": {
        "value": 25.98,
        "unit": "PERCENT",
        "formula": "netIncome / revenue * 100"
      },
      "freeCashFlow": {
        "value": 20881,
        "unit": "USD_MILLIONS",
        "formula": "cashFromOperatingActivities + capitalExpenditures"
      }
    }
  }
}

Missing-value example · AAPL 2024 Q1

{
  "ticker": "AAPL",
  "year": 2024,
  "quarter": 1,
  "metrics": {
    "cashFlow": {
      "shareBasedCompensationTaxPayments": {
        "value": null,
        "unit": "USD_MILLIONS"
      }
    }
  },
  "sources": {
    "sec": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000069/aapl-20240330.htm"
  }
}
SEC filing ↗
200Record returned as JSON.
400Invalid input or no matching record; unpaid.
402Payment required for an available record. Follow the x402 challenge.
503Database or payment configuration unavailable.
LIVE COVERAGE

Available tickers and quarters

375 tickers

375 of 375 tickers · 12199 matching records

A1 quarters · latest 1999 Q4 · historical
AAPL129 quarters · latest 2026 Q2 · recent
ABBV56 quarters · latest 2026 Q2 · recent
ABNB25 quarters · latest 2026 Q2 · recent
ABT106 quarters · latest 2020 Q2 · historical
ACGL4 quarters · latest 1996 Q4 · historical
ACN102 quarters · latest 2026 Q3 · recent
ADBE128 quarters · latest 2026 Q3 · recent
ADI131 quarters · latest 2026 Q2 · recent
ADM86 quarters · latest 2015 Q2 · historical
ADP70 quarters · latest 2011 Q3 · historical
ADSK115 quarters · latest 2022 Q3 · historical
Complete API contractOpenAPI 3.1 · JSON · expand inline
{
  "openapi": "3.1.0",
  "info": {
    "title": "Quartertrace Financials API",
    "version": "1.0.0",
    "description": "Read SEC-derived quarterly financial statements for supported tickers and calendar quarters."
  },
  "servers": [
    {
      "url": "https://www.quartertrace.com"
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "operationId": "getServiceStatus",
        "summary": "Check database, catalog, and payment configuration",
        "description": "Free health check for the database and presence of x402 configuration. It does not test facilitator availability or payment settlement.",
        "responses": {
          "200": {
            "description": "Database available.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "const": "available"
                    },
                    "checkedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "database": {
                      "const": "available"
                    },
                    "records": {
                      "type": "integer"
                    },
                    "tickers": {
                      "type": "integer"
                    },
                    "updatedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "paymentConfiguration": {
                      "description": "Presence of required x402 environment settings; does not verify validity or facilitator availability.",
                      "enum": [
                        "present",
                        "missing"
                      ]
                    },
                    "paymentSettlement": {
                      "const": "not checked"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Database unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "const": "degraded"
                    },
                    "checkedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "database": {
                      "const": "unavailable"
                    },
                    "paymentConfiguration": {
                      "enum": [
                        "present",
                        "missing"
                      ]
                    },
                    "paymentSettlement": {
                      "const": "not checked"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/coverage/{ticker}": {
      "get": {
        "operationId": "getQuarterlyCoverage",
        "summary": "Get free year and quarter availability for a ticker",
        "description": "Returns only years and quarters with data for this ticker. No financial values and no payment.",
        "parameters": [
          {
            "name": "ticker",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9.-]{1,10}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Free year and quarter list; no financial values.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TickerCoverage"
                },
                "example": {
                  "ticker": "AAPL",
                  "years": [
                    {
                      "year": 2025,
                      "quarters": [
                        1,
                        2
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid ticker or no data exists for the ticker.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "No data exists for ticker APPL."
                }
              }
            }
          },
          "503": {
            "description": "Coverage data is temporarily unavailable."
          }
        }
      }
    },
    "/api/financials/{ticker}": {
      "post": {
        "operationId": "getQuarterlyFinancials",
        "summary": "Get financials for a ticker and calendar quarter",
        "description": "Check GET /api/coverage/{ticker} first. It lists available years and quarters for free but contains no financial values. Missing or invalid data returns 400 before payment; 503 indicates service or payment configuration is unavailable. Each request for an available record costs 0.05 USDC on Base (chain 8453). Every repeat request or retry for the same ticker and quarter is charged another 0.05 USDC; there are no free repeats. The initial 402 is a payment challenge; pay using an x402 Exact client, then retry this POST.",
        "parameters": [
          {
            "name": "ticker",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9.-]{1,10}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "year",
                  "quarter"
                ],
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "quarter": {
                    "type": "integer",
                    "enum": [
                      1,
                      2,
                      3,
                      4
                    ],
                    "description": "Calendar quarter."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "year": 2025,
                "quarter": 1
              }
            }
          }
        },
        "x-x402": {
          "scheme": "exact",
          "price": "0.05",
          "asset": "USDC",
          "network": "eip155:8453",
          "networkName": "Base",
          "paymentTiming": "Only requested data that exists proceeds to x402 payment."
        },
        "responses": {
          "200": {
            "description": "Quarterly financial data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancialQuarter"
                }
              }
            },
            "headers": {
              "PAYMENT-RESPONSE": {
                "schema": {
                  "type": "string"
                },
                "description": "Base64-encoded x402 settlement response; may be exposed as X-PAYMENT-RESPONSE."
              },
              "X-PAYMENT-RESPONSE": {
                "schema": {
                  "type": "string"
                },
                "description": "Alternate base64-encoded x402 settlement response header."
              }
            }
          },
          "400": {
            "description": "Invalid request or the requested data does not exist. Missing data is rejected before payment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalidInput": {
                    "value": {
                      "error": "Use a valid ticker and only year and quarter with integer values (quarter 1–4)."
                    }
                  },
                  "dataUnavailable": {
                    "value": {
                      "error": "Data does not exist for the requested ticker, year, and quarter. No payment has been accepted."
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The body is empty JSON; PAYMENT-REQUIRED contains a Base64-encoded x402 v2 payment challenge. Decode it and use an x402 Exact client for Base (eip155:8453), then retry the POST. Each retry is another $0.05 charge.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "required": true,
                "schema": {
                  "type": "string"
                },
                "description": "Base64-encoded JSON x402 payment requirements, including resource, amount, asset, network, and timeout."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {}
              }
            }
          },
          "503": {
            "description": "Financial data or payment configuration is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "databaseUnavailable": {
                    "value": {
                      "error": "Financial data is temporarily unavailable."
                    }
                  },
                  "paymentUnavailable": {
                    "value": {
                      "error": "x402 payment configuration is missing"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/tickers": {
      "get": {
        "operationId": "listCoveredTickers",
        "summary": "Discover tickers and recent coverage",
        "description": "Free catalog. Historical means the latest stored period is at least eight calendar quarters behind the current quarter. Filter with recent=true and/or minQuarters.",
        "parameters": [
          {
            "name": "recent",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Return only tickers whose latest period is within eight calendar quarters."
          },
          {
            "name": "minQuarters",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Coverage catalog with aggregate recency counts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tickers": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CatalogTicker"
                      }
                    },
                    "records": {
                      "type": "integer"
                    },
                    "recentTickers": {
                      "type": "integer"
                    },
                    "historicalTickers": {
                      "type": "integer"
                    },
                    "recentThresholdQuarters": {
                      "const": 8
                    },
                    "updatedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid minQuarters."
          },
          "503": {
            "description": "Coverage data unavailable."
          }
        }
      }
    },
    "/api/metrics": {
      "get": {
        "operationId": "getMetricDictionary",
        "summary": "Get metric definitions and units",
        "description": "Free dictionary for metric keys returned by financial responses. The unit on each financial record is authoritative.",
        "responses": {
          "200": {
            "description": "Metric groups, labels, definitions, and observed units.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "units": {
                      "type": "object"
                    },
                    "groups": {
                      "type": "object"
                    },
                    "metrics": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TickerCoverage": {
        "type": "object",
        "required": [
          "ticker",
          "years"
        ],
        "properties": {
          "ticker": {
            "type": "string"
          },
          "years": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "year",
                "quarters"
              ],
              "properties": {
                "year": {
                  "type": "integer"
                },
                "quarters": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "enum": [
                      1,
                      2,
                      3,
                      4
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "Metric": {
        "type": "object",
        "required": [
          "value",
          "unit"
        ],
        "properties": {
          "value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Null when the filing does not report an exact matching value."
          },
          "unit": {
            "type": "string",
            "enum": [
              "USD_MILLIONS",
              "USD_PER_SHARE",
              "SHARES_THOUSANDS",
              "PERCENT"
            ]
          },
          "formula": {
            "type": "string"
          }
        }
      },
      "MetricGroup": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/Metric"
        }
      },
      "FinancialQuarter": {
        "type": "object",
        "required": [
          "ticker",
          "year",
          "quarter",
          "periodStart",
          "periodEnd",
          "fiscalPeriod",
          "metrics",
          "sources"
        ],
        "properties": {
          "ticker": {
            "type": "string"
          },
          "year": {
            "type": "integer"
          },
          "quarter": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ]
          },
          "periodStart": {
            "type": "string",
            "format": "date"
          },
          "periodEnd": {
            "type": "string",
            "format": "date"
          },
          "fiscalPeriod": {
            "type": "string"
          },
          "metrics": {
            "type": "object",
            "properties": {
              "incomeStatement": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "revenueByProduct": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "revenueByRegion": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "balanceSheet": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "cashFlow": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "comprehensiveIncome": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "shareholdersEquityChanges": {
                "$ref": "#/components/schemas/MetricGroup"
              },
              "derived": {
                "$ref": "#/components/schemas/MetricGroup"
              }
            }
          },
          "sources": {
            "type": "object",
            "required": [
              "sec"
            ],
            "properties": {
              "sec": {
                "type": "string",
                "format": "uri"
              }
            },
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "CatalogTicker": {
        "type": "object",
        "required": [
          "ticker",
          "quarterCount",
          "first",
          "latest",
          "historical"
        ],
        "properties": {
          "ticker": {
            "type": "string"
          },
          "quarterCount": {
            "type": "integer"
          },
          "first": {
            "$ref": "#/components/schemas/Period"
          },
          "latest": {
            "$ref": "#/components/schemas/Period"
          },
          "historical": {
            "type": "boolean"
          }
        }
      },
      "Period": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer"
          },
          "quarter": {
            "type": "integer",
            "enum": [
              1,
              2,
              3,
              4
            ]
          }
        }
      }
    }
  }
}
Calendar quarters and data method

Requests use calendar year and quarter. Each issuer period maps to the calendar quarter containing most of its days. Apple FY2025-Q2 ended March 29, 2025, so it maps to calendar 2025 Q1; responses retain the issuer fiscal label and actual dates. SEC line items map by economic meaning into a shared metric schema. Issuer-specific items are combined only when supported by the filing and described in source notes; unsupported or ambiguous items remain null. Values use the stated schema units. Derived metrics include formulas or source notes; standalone cash flows use year-to-date filing totals less prior-quarter totals. Source links identify the filing used and may not reflect later amendments, so compare later SEC filings before relying on restated values.

Freshness, service, and support

Coverage shows the latest database change and per-ticker latest quarter. Ingestion timing depends on SEC filings; no update interval or uptime SLA is promised. Check database health and payment configuration ↗ before a paid request; facilitator availability and settlement are not checked. Operator: quartertrace.com. Support: info@quartertrace.com.

Terms of use

Quartertrace.com provides SEC-derived financial data for informational use, not investment, tax, or legal advice. Verify material values against the linked filing. Coverage may be incomplete or historical, and service availability is not guaranteed. Each request for an available financial record costs $0.05 USDC on Base. Every repeat request or retry for the same ticker and quarter incurs another $0.05 charge; there are no free repeats. Invalid or missing quarters return 400 before payment. Contact info@quartertrace.com for payment disputes or terms questions.

Privacy

No account is required. Quartertrace operates the site and API; its app database stores the financial catalog, not API request bodies or x402 payment payloads, and this app does not store wallet private keys. Vercel hosts the site and its Analytics and Speed Insights may process request metadata and performance events. Coinbase’s x402 facilitator processes payment payloads; settled transactions are public on Base. Provider notices give no single fixed retention period for request data. Vercel’s notice covers its controller-side processing; customer-directed processing follows the service agreement and, where applicable, its Data Processing Addendum. Coinbase says it retains information as needed to provide services, meet legal obligations, and protect its services and users. See Analytics details and Speed Insights details. Contact Quartertrace about its app-held catalog and service handling; contact each provider about its separate processing. On-chain records cannot be deleted by Quartertrace. Do not include personal or secret data in requests. For privacy requests about app-held data, contact info@quartertrace.com.

Quarter values use calendar quarters. Responses include financial metrics and SEC source links.