{
  "openapi": "3.0.1",
  "info": {
    "title": "Political Alpha Signals — Federal Activity & Disclosure Join",
    "description": "Assemble a cross-source political-exposure dossier for any company or sector: US federal awards (USASpending), lobbying (LDA), upcoming rules (Federal Register) and House disclosure activity, joined on a timeline with a transparent exposure index. Evidence, not investment advice.",
    "version": "0.1",
    "x-build-id": "ilatZckF35e6DfapK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~political-alpha-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-political-alpha-signals",
        "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/foxlabs~political-alpha-signals/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-political-alpha-signals",
        "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/foxlabs~political-alpha-signals/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-political-alpha-signals",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "company",
              "sector"
            ],
            "type": "string",
            "description": "\"company\" builds a dossier for one organization; \"sector\" builds one for an industry/agency area.",
            "default": "company"
          },
          "companies": {
            "title": "Companies (company mode)",
            "type": "array",
            "description": "One organization per line (company mode). Each returns its own exposure dossier and is billed separately. E.g. [\"Lockheed Martin\", \"Boeing\", \"RTX\"]. Matched against federal award recipients and lobbying clients.",
            "items": {
              "type": "string"
            }
          },
          "company": {
            "title": "Company name (single — legacy)",
            "type": "string",
            "description": "Single-company shortcut (company mode). Prefer \"Companies\" above for one or many. Kept for backward compatibility."
          },
          "sectors": {
            "title": "Sectors / keywords (sector mode)",
            "type": "array",
            "description": "One sector or keyword per line (sector mode). Each returns its own dossier and is billed separately. E.g. [\"defense\", \"pharmaceutical\", \"semiconductor\"]. The agency / issue / NAICS fields below refine every sector in the list.",
            "items": {
              "type": "string"
            }
          },
          "sector": {
            "title": "Sector / keyword (single — legacy)",
            "type": "string",
            "description": "Single-sector shortcut (sector mode). Prefer \"Sectors\" above for one or many. Kept for backward compatibility."
          },
          "agency": {
            "title": "Federal Register agency slug",
            "type": "string",
            "description": "Optional agency slug for the rules axis, e.g. \"defense-department\", \"food-and-drug-administration\". Leave empty to search by keyword."
          },
          "issueAreaCode": {
            "title": "Lobbying issue code",
            "type": "string",
            "description": "Optional LDA general issue area code for the lobbying axis in sector mode (e.g. DEF for Defense, HCR for Health)."
          },
          "naics": {
            "title": "NAICS code",
            "type": "string",
            "description": "Optional NAICS industry code to focus the federal-awards axis in sector mode (e.g. 336411 for aircraft)."
          },
          "lookbackDays": {
            "title": "Look-back window (days)",
            "minimum": 7,
            "maximum": 1095,
            "type": "integer",
            "description": "How far back to look for awards, lobbying filings, published rules and disclosure activity.",
            "default": 180
          },
          "lookaheadDays": {
            "title": "Look-ahead window (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "How far ahead to look for rules that become effective or whose comment window is still open (the regulatory catalysts).",
            "default": 90
          },
          "maxPerSource": {
            "title": "Max rows per axis",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on rows pulled from each of the four sources before scoring.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "A US proxy is used for the US-only sources (lobbying is served only to US connections). A reliable US datacenter exit is selected automatically — leave as is.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}