{
  "openapi": "3.0.1",
  "info": {
    "title": "Fixed Income Fund Ownership Tracker — SEC N-PORT",
    "description": "A structured data pipeline that extracts and normalizes SEC N-PORT filings to track bond-level ownership across funds. Supports reverse CUSIP search, concentration metrics, and time-series analysis of holdings across fixed income asset classes including corporates, munis, Treasuries, MBS, and CLOs.",
    "version": "1.0",
    "x-build-id": "tofL4pIffdC7oAcQB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/integrative_tangent~fixed-income-fund-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-integrative_tangent-fixed-income-fund-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/integrative_tangent~fixed-income-fund-tracker/runs": {
      "post": {
        "operationId": "runs-sync-integrative_tangent-fixed-income-fund-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/integrative_tangent~fixed-income-fund-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-integrative_tangent-fixed-income-fund-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode",
          "quarter"
        ],
        "properties": {
          "mode": {
            "title": "Search Mode",
            "enum": [
              "cusip_lookup",
              "isin_lookup",
              "issuer_search",
              "filter_issuer_category",
              "filter_asset_type",
              "concentration",
              "quarter_comparison",
              "top_held",
              "fund_summary"
            ],
            "type": "string",
            "description": "What type of search to perform",
            "default": "cusip_lookup"
          },
          "quarter": {
            "title": "Quarter",
            "type": "string",
            "description": "Which quarterly N-PORT data set to use. Format: 2024Q3. Available from 2019Q4 onwards.",
            "default": "2024Q3"
          },
          "cusip": {
            "title": "CUSIP",
            "type": "string",
            "description": "9-character CUSIP identifier. Required for cusip_lookup, concentration, and quarter_comparison modes. Example: 037833BS8 (Apple Inc 3.85% 2043)"
          },
          "isin": {
            "title": "ISIN",
            "type": "string",
            "description": "12-character ISIN identifier. Required for isin_lookup mode. Example: US037833BS80"
          },
          "issuer_name": {
            "title": "Issuer Name",
            "type": "string",
            "description": "Issuer name to search (partial match supported). Required for issuer_search mode. Example: APPLE, JPMORGAN, CALIFORNIA"
          },
          "issuer_category": {
            "title": "Issuer Category",
            "enum": [
              "CORP",
              "UST",
              "AGEN",
              "AGSE",
              "MUN",
              "NUSS",
              "PF",
              "RF",
              "OTH"
            ],
            "type": "string",
            "description": "Filter by issuer type. Required for filter_issuer_category mode."
          },
          "asset_type": {
            "title": "Asset Type",
            "enum": [
              "DBT",
              "ABS-MBS",
              "ABS-CBDO",
              "ABS-ABCP",
              "ABS-O",
              "LON",
              "SN",
              "RA",
              "STIV"
            ],
            "type": "string",
            "description": "Filter by asset category. Required for filter_asset_type mode."
          },
          "series_id": {
            "title": "Fund Series ID",
            "type": "string",
            "description": "SEC Series ID for fund_summary mode. Example: S000002150 (Vanguard Total Bond Market)"
          },
          "previous_quarter": {
            "title": "Previous Quarter (for QoQ comparison)",
            "type": "string",
            "description": "Required for quarter_comparison mode. Format: 2024Q2"
          },
          "maturity_start": {
            "title": "Maturity Start Date (optional filter)",
            "type": "string",
            "description": "Only include bonds maturing on or after this date. Format: YYYY-MM-DD"
          },
          "maturity_end": {
            "title": "Maturity End Date (optional filter)",
            "type": "string",
            "description": "Only include bonds maturing on or before this date. Format: YYYY-MM-DD"
          },
          "coupon_min": {
            "title": "Minimum Coupon Rate (optional filter)",
            "type": "number",
            "description": "Only include bonds with coupon rate >= this value. Example: 4.0"
          },
          "coupon_max": {
            "title": "Maximum Coupon Rate (optional filter)",
            "type": "number",
            "description": "Only include bonds with coupon rate <= this value. Example: 6.0"
          },
          "top_n": {
            "title": "Top N Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Number of results for top_held mode",
            "default": 50
          },
          "max_results": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit output to this many holdings (for filter modes)",
            "default": 500
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}