{
  "x402Version": 2,
  "id": 29281,
  "slug": "29281",
  "resource": "https://api.agentstools.dev/edgar/ratios",
  "description": "Key financial ratios computed from SEC EDGAR XBRL: margins, liquidity, leverage and growth. Give a ticker or CIK and get ratios over recent periods, each computed number citing the source facts it was derived from, plus restatement flags and simple anomaly flags.",
  "type": "http",
  "serviceName": "edgar-ratios",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "freq": "annual",
            "periods": 5,
            "ticker": "AAPL"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "anomalies": [],
            "attribution": "SEC EDGAR (public domain); data.sec.gov XBRL frames API",
            "entity": {
              "cik": "0000320193",
              "name": "Apple Inc.",
              "ticker": "AAPL"
            },
            "found": true,
            "freq": "annual",
            "ratios": [
              {
                "change_vs_prev": 0.018,
                "kind": "ratio",
                "latest": 0.462,
                "name": "grossMargin",
                "series": [
                  {
                    "derived_from": [
                      {
                        "accn": "0000320193-24-000123",
                        "line": "grossProfit",
                        "sourceTag": "GrossProfit"
                      },
                      {
                        "accn": "0000320193-24-000123",
                        "line": "revenue",
                        "sourceTag": "RevenueFromContractWithCustomerExcludingAssessedTax"
                      }
                    ],
                    "period": {
                      "end": "2024-09-28",
                      "fp": "FY",
                      "fy": 2024
                    },
                    "value": 0.462
                  }
                ]
              }
            ],
            "restatements": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "cik": {
                    "description": "SEC EDGAR CIK, any zero-padding accepted",
                    "type": "string"
                  },
                  "freq": {
                    "description": "Reporting frequency, default annual",
                    "enum": [
                      "annual",
                      "quarterly"
                    ],
                    "type": "string"
                  },
                  "periods": {
                    "description": "Number of recent periods to return, default 8",
                    "maximum": 12,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "ticker": {
                    "description": "Stock ticker symbol, e.g. AAPL",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "ratios",
    "margins",
    "liquidity",
    "leverage",
    "growth",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:09:28.386Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:09:28.161Z"
  },
  "metadata": {
    "serviceName": "edgar-ratios",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "freq": "annual",
              "periods": 5,
              "ticker": "AAPL"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "anomalies": [],
              "attribution": "SEC EDGAR (public domain); data.sec.gov XBRL frames API",
              "entity": {
                "cik": "0000320193",
                "name": "Apple Inc.",
                "ticker": "AAPL"
              },
              "found": true,
              "freq": "annual",
              "ratios": [
                {
                  "change_vs_prev": 0.018,
                  "kind": "ratio",
                  "latest": 0.462,
                  "name": "grossMargin",
                  "series": [
                    {
                      "derived_from": [
                        {
                          "accn": "0000320193-24-000123",
                          "line": "grossProfit",
                          "sourceTag": "GrossProfit"
                        },
                        {
                          "accn": "0000320193-24-000123",
                          "line": "revenue",
                          "sourceTag": "RevenueFromContractWithCustomerExcludingAssessedTax"
                        }
                      ],
                      "period": {
                        "end": "2024-09-28",
                        "fp": "FY",
                        "fy": 2024
                      },
                      "value": 0.462
                    }
                  ]
                }
              ],
              "restatements": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "cik": {
                      "description": "SEC EDGAR CIK, any zero-padding accepted",
                      "type": "string"
                    },
                    "freq": {
                      "description": "Reporting frequency, default annual",
                      "enum": [
                        "annual",
                        "quarterly"
                      ],
                      "type": "string"
                    },
                    "periods": {
                      "description": "Number of recent periods to return, default 8",
                      "maximum": 12,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "ticker": {
                      "description": "Stock ticker symbol, e.g. AAPL",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "anomalies": [],
    "attribution": "SEC EDGAR (public domain); data.sec.gov XBRL frames API",
    "entity": {
      "cik": "0000320193",
      "name": "Apple Inc.",
      "ticker": "AAPL"
    },
    "found": true,
    "freq": "annual",
    "ratios": [
      {
        "change_vs_prev": 0.018,
        "kind": "ratio",
        "latest": 0.462,
        "name": "grossMargin",
        "series": [
          {
            "derived_from": [
              {
                "accn": "0000320193-24-000123",
                "line": "grossProfit",
                "sourceTag": "GrossProfit"
              },
              {
                "accn": "0000320193-24-000123",
                "line": "revenue",
                "sourceTag": "RevenueFromContractWithCustomerExcludingAssessedTax"
              }
            ],
            "period": {
              "end": "2024-09-28",
              "fp": "FY",
              "fy": 2024
            },
            "value": 0.462
          }
        ]
      }
    ],
    "restatements": []
  }
}