{
  "openapi": "3.0.1",
  "info": {
    "title": "Crunchbase Recently Funded Monitor",
    "version": "1.0",
    "x-build-id": "EbyTrfMbmxGKy0dYR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happitap~crunchbase-recently-funded-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happitap-crunchbase-recently-funded-monitor",
        "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/happitap~crunchbase-recently-funded-monitor/runs": {
      "post": {
        "operationId": "runs-sync-happitap-crunchbase-recently-funded-monitor",
        "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/happitap~crunchbase-recently-funded-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-happitap-crunchbase-recently-funded-monitor",
        "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",
          "crunchbaseApiKey"
        ],
        "properties": {
          "mode": {
            "title": "Data Access Mode",
            "enum": [
              "crunchbase_api"
            ],
            "type": "string",
            "description": "Method to access Crunchbase data",
            "default": "crunchbase_api"
          },
          "crunchbaseApiKey": {
            "title": "Crunchbase API Key",
            "type": "string",
            "description": "Your Crunchbase Data API key (stored in secrets)"
          },
          "announcedAfter": {
            "title": "Announced After Date",
            "type": "string",
            "description": "ISO date string (YYYY-MM-DD) - only rounds announced after this date"
          },
          "announcedBefore": {
            "title": "Announced Before Date",
            "type": "string",
            "description": "ISO date string (YYYY-MM-DD) - only rounds announced before this date"
          },
          "lastNDays": {
            "title": "Last N Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of days to look back for funding rounds (overrides announcedAfter if not set)",
            "default": 7
          },
          "fundingStages": {
            "title": "Funding Stages",
            "type": "array",
            "description": "Filter by funding stages",
            "items": {
              "type": "string"
            },
            "default": [
              "seed",
              "series_a",
              "series_b"
            ]
          },
          "minRaisedUsd": {
            "title": "Minimum Raised (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum funding amount in USD"
          },
          "maxRaisedUsd": {
            "title": "Maximum Raised (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum funding amount in USD"
          },
          "includeUndisclosed": {
            "title": "Include Undisclosed Amounts",
            "type": "boolean",
            "description": "Include funding rounds with undisclosed amounts",
            "default": true
          },
          "hqCountries": {
            "title": "HQ Countries",
            "type": "array",
            "description": "Filter by company headquarters countries (ISO-2 codes)",
            "items": {
              "type": "string"
            },
            "default": [
              "US"
            ]
          },
          "hqRegions": {
            "title": "HQ Regions",
            "type": "array",
            "description": "Filter by company headquarters regions",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Filter by industries",
            "items": {
              "type": "string"
            }
          },
          "companyKeywords": {
            "title": "Company Keywords",
            "type": "array",
            "description": "Keywords to match in company names/descriptions",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude Keywords",
            "type": "array",
            "description": "Keywords to exclude from company names/descriptions",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of funding rounds to extract",
            "default": 200
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of pages to fetch",
            "default": 20
          },
          "incremental": {
            "title": "Incremental Mode",
            "type": "boolean",
            "description": "Enable incremental monitoring to avoid duplicates",
            "default": true
          },
          "stateKey": {
            "title": "State Key",
            "type": "string",
            "description": "Key for storing incremental state",
            "default": "STATE"
          },
          "notifyOnlyNew": {
            "title": "Notify Only New",
            "type": "boolean",
            "description": "Only notify/send webhook for new items in incremental mode",
            "default": true
          },
          "outputMode": {
            "title": "Output Mode",
            "enum": [
              "rounds",
              "companies_latest_round"
            ],
            "type": "string",
            "description": "Output format: rounds (one per funding round) or companies_latest_round (one per company)",
            "default": "rounds"
          },
          "outputDatasetName": {
            "title": "Output Dataset Name",
            "type": "string",
            "description": "Custom name for the output dataset"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "URL to send notifications to"
          },
          "webhookSecret": {
            "title": "Webhook Secret",
            "type": "string",
            "description": "Secret for webhook signature verification"
          },
          "webhookBatchSize": {
            "title": "Webhook Batch Size",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Number of items to send per webhook batch",
            "default": 50
          },
          "webhookOnEachItem": {
            "title": "Webhook on Each Item",
            "type": "boolean",
            "description": "Send webhook for each individual item",
            "default": false
          },
          "requestRetries": {
            "title": "Request Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of times to retry failed API requests",
            "default": 5
          },
          "timeoutSecs": {
            "title": "Timeout Seconds",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Request timeout in seconds",
            "default": 30
          },
          "minDelayMs": {
            "title": "Min Delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum delay between requests in milliseconds",
            "default": 100
          },
          "maxDelayMs": {
            "title": "Max Delay (ms)",
            "minimum": 100,
            "type": "integer",
            "description": "Maximum delay between requests in milliseconds",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}