{
  "openapi": "3.0.1",
  "info": {
    "title": "HubSpot Marketplace Vendor Leads",
    "description": "Extract verified HubSpot Marketplace vendor leads from app listings, including company details, websites, public emails, phone numbers, support links, and key contact information using category, pricing, feature, language, certification, and sorting filters.",
    "version": "0.0",
    "x-build-id": "Lbwe6nSHJpCoRKzoh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lead.gen.labs~hubspot-marketplace-vendor-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lead.gen.labs-hubspot-marketplace-vendor-leads",
        "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/lead.gen.labs~hubspot-marketplace-vendor-leads/runs": {
      "post": {
        "operationId": "runs-sync-lead.gen.labs-hubspot-marketplace-vendor-leads",
        "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/lead.gen.labs~hubspot-marketplace-vendor-leads/run-sync": {
      "post": {
        "operationId": "run-sync-lead.gen.labs-hubspot-marketplace-vendor-leads",
        "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": [
          "max_results"
        ],
        "properties": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword search for HubSpot Marketplace apps, vendors, products, or use cases.",
            "default": ""
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional HubSpot Marketplace category filters, for example CONNECTOR, SALES_ENABLEMENT, MARKETING, ANALYTICS, or CUSTOMER_SERVICE.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "pricing_plans": {
            "title": "Pricing Plans",
            "type": "array",
            "description": "Optional pricing filters, for example FREE, CONTACT_US, ONE_TIME, METERED, MONTHLY, or YEARLY.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "hubspot_features": {
            "title": "HubSpot Features",
            "type": "array",
            "description": "Optional HubSpot feature filters, for example SALES_DEALS, SALES_CONTACT_MANAGEMENT, MARKETING_EMAIL, or SERVICE_TICKETS.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "app_languages": {
            "title": "App Languages",
            "type": "array",
            "description": "Optional app language filters, for example EN, ES, FR, DE, or JA.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "built_by_hubspot": {
            "title": "Built By HubSpot",
            "enum": [
              "all",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Limit results by whether the app is built by HubSpot.",
            "default": "all"
          },
          "certified": {
            "title": "Certified Apps",
            "enum": [
              "all",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Limit results by HubSpot certification status.",
            "default": "all"
          },
          "sort_by": {
            "title": "Sort By",
            "enum": [
              "RELEVANCE",
              "MOST_INSTALLED",
              "NEWEST",
              "NAME_AZ",
              "NAME_ZA"
            ],
            "type": "string",
            "description": "Use HubSpot Marketplace sorting for the app search results.",
            "default": "MOST_INSTALLED"
          },
          "max_results": {
            "title": "Maximum Vendor Leads",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum HubSpot Marketplace vendor lead records to save.",
            "default": 100
          },
          "results_per_page": {
            "title": "Results Per Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of HubSpot Marketplace app results requested per search page.",
            "default": 60
          },
          "enrich_listing_details": {
            "title": "Enrich Listing Details",
            "type": "boolean",
            "description": "Fetch each public HubSpot Marketplace listing detail record for vendor website, phone, email, and support contacts.",
            "default": true
          },
          "extract_emails": {
            "title": "Extract Public Emails",
            "type": "boolean",
            "description": "Extract distinct public email addresses from fetched HubSpot Marketplace listing and vendor data.",
            "default": true
          },
          "exclude_hubspot_publishers": {
            "title": "Exclude HubSpot Publishers",
            "type": "boolean",
            "description": "Skip HubSpot-owned publisher records.",
            "default": true
          },
          "request_delay_millis": {
            "title": "Request Delay",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Delay between HubSpot Marketplace listing detail requests in milliseconds.",
            "default": 300
          },
          "browser_impersonation": {
            "title": "Browser Impersonation",
            "type": "string",
            "description": "curl_cffi browser impersonation profile.",
            "default": "chrome136"
          },
          "custom_proxy_url": {
            "title": "Custom Proxy URL",
            "type": "string",
            "description": "Optional proxy URL.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}