{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA New Authority & Insurance Cancellation Leads – Daily",
    "description": "Daily FMCSA feed of new MC authority applications and grants, suspensions, revocations, insurance filings and insurance cancellations from official public data, with carrier phone, email, address and fleet size. Filter by state, type, DOT/MC. $2 per 1,000 events.",
    "version": "0.1",
    "x-build-id": "V2vgqUmRHk4k0FfJT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~fmcsa-authority-insurance-changes/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-fmcsa-authority-insurance-changes",
        "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/gazidev~fmcsa-authority-insurance-changes/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-fmcsa-authority-insurance-changes",
        "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/gazidev~fmcsa-authority-insurance-changes/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-fmcsa-authority-insurance-changes",
        "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",
        "properties": {
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Which FMCSA authority / insurance events to return. Insurance agents: insurance_cancellation + suspended_insurance + suspension_notice. Factoring / dispatch: granted + application.",
            "items": {
              "type": "string",
              "enum": [
                "application",
                "published",
                "granted",
                "reinstated",
                "suspended_insurance",
                "suspended_boc3",
                "suspended_voluntary",
                "revoked",
                "withdrawn",
                "other_authority_change",
                "suspension_notice",
                "insurance_filing",
                "insurance_cancellation",
                "all"
              ],
              "enumTitles": [
                "New authority application (pending)",
                "Application published in the FMCSA Register",
                "Operating authority granted (new MC)",
                "Authority reinstated",
                "Authority suspended - insurance cancelled",
                "Authority suspended - BOC-3 process agent cancelled",
                "Voluntary suspension",
                "Authority revoked",
                "Application withdrawn",
                "Other authority change (corrections, out-of-service...)",
                "Involuntary suspension notice served (effective ~30 days later)",
                "New insurance filing (BIPD, cargo, broker bond)",
                "Insurance policy cancelled",
                "All event types"
              ]
            },
            "default": [
              "application",
              "granted",
              "reinstated",
              "suspended_insurance",
              "suspended_boc3",
              "revoked",
              "suspension_notice",
              "insurance_filing",
              "insurance_cancellation"
            ]
          },
          "withinDays": {
            "title": "Last N days",
            "minimum": 0,
            "maximum": 366,
            "type": "integer",
            "description": "Events dated in the last N days (1 = yesterday and today). Schedule daily with 1-2 days + *Only new events*. 0 = all history (only with DOT/MC numbers).",
            "default": 1
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides *Last N days*."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "YYYY-MM-DD. Default: today."
          },
          "upcomingCancellationDays": {
            "title": "Include upcoming cancellations (days ahead)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Insurance cancellations are dated by their effective date, which is often in the future. E.g. 30 = also return cancellations already filed that take effect in the next 30 days (best with *Only new events*).",
            "default": 0
          },
          "includeReplacedPolicies": {
            "title": "Include replaced policies (TERM/REPL)",
            "type": "boolean",
            "description": "By default insurance_cancellation skips policies that ended because a replacement policy was filed (no coverage gap) and name changes. Turn on to get every ended policy.",
            "default": false
          },
          "states": {
            "title": "States / provinces",
            "type": "array",
            "description": "2-letter codes of the carrier's physical address (from the FMCSA census), e.g. TX, CA, FL, ON.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Carrier / broker / freight forwarder",
            "type": "array",
            "description": "Empty = all. For insurance events the type is inferred from the filing form (BMC-84/85 = broker bond) and docket prefix (FF).",
            "items": {
              "type": "string",
              "enum": [
                "carrier",
                "broker",
                "freight_forwarder"
              ],
              "enumTitles": [
                "Motor carriers",
                "Property / household-goods brokers",
                "Freight forwarders"
              ]
            }
          },
          "authorityKinds": {
            "title": "Authority kind",
            "type": "array",
            "description": "Applies to authority and suspension-notice events only (insurance datasets do not publish the authority kind).",
            "items": {
              "type": "string",
              "enum": [
                "property",
                "household_goods",
                "passengers"
              ],
              "enumTitles": [
                "Property (general freight)",
                "Household goods (movers)",
                "Passengers"
              ]
            }
          },
          "dotNumbers": {
            "title": "USDOT numbers (watchlist)",
            "type": "array",
            "description": "Only events for these USDOT numbers - e.g. the carriers you broker loads to or insure.",
            "items": {
              "type": "string"
            }
          },
          "mcNumbers": {
            "title": "MC / MX / FF numbers (watchlist)",
            "type": "array",
            "description": "E.g. MC-1234567 or 1234567 (bare numbers match MC, MX and FF).",
            "items": {
              "type": "string"
            }
          },
          "minPowerUnits": {
            "title": "Min power units (trucks)",
            "minimum": 0,
            "type": "integer",
            "description": "Fleet size from the FMCSA census (MCS-150)."
          },
          "maxPowerUnits": {
            "title": "Max power units (trucks)",
            "minimum": 0,
            "type": "integer",
            "description": "E.g. 10 = small fleets only."
          },
          "onlyWithPhone": {
            "title": "Only with phone",
            "type": "boolean",
            "description": "Skip events whose carrier has no phone in the census.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with email",
            "type": "boolean",
            "description": "Skip events whose carrier has no email in the census.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Add contact details",
            "type": "boolean",
            "description": "Join each event with the FMCSA Company Census: phone, email, officers, street address, power units, drivers. Name, city and state are always included. Same price either way.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new events (monitoring)",
            "type": "boolean",
            "description": "Skip events returned by earlier runs with the same *State key*. Schedule daily for a never-repeat lead feed.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate 'already seen' lists for different searches.",
            "default": "default"
          },
          "maxResultsPerEventType": {
            "title": "Max events per event type",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no per-type limit."
          },
          "maxResults": {
            "title": "Max events",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many events in total (0 = all matching). You pay per event saved.",
            "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}