{
  "openapi": "3.0.1",
  "info": {
    "title": "US Lobbying Disclosure Scraper - Lobbyists, Clients & Leads",
    "description": "Scrape the official US Senate Lobbying Disclosure (LDA) database: filings with the lobbying firm, client, lobbyists, issues, agencies lobbied and reported $ — plus lobbying-firm leads (contact, phone, address), client company leads, lobbyists and contributions. Lead score + monitor mode.",
    "version": "0.1",
    "x-build-id": "2TI94Dop1CaBrVujd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-lobbying-disclosure-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-lobbying-disclosure-scraper",
        "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/scrapesage~us-lobbying-disclosure-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-lobbying-disclosure-scraper",
        "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/scrapesage~us-lobbying-disclosure-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-lobbying-disclosure-scraper",
        "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": {
          "searchType": {
            "title": "What to scrape",
            "enum": [
              "filings",
              "registrants",
              "clients",
              "lobbyists",
              "contributions"
            ],
            "type": "string",
            "description": "Which part of the Senate LDA database to pull. <b>Filings</b> (default) is the richest: each filing joins the lobbying firm, the client (who is paying), the named lobbyists, the issue areas, the government entities lobbied and the reported income/expenses. <b>Registrants</b> = lobbying-firm leads (with contact + phone + address). <b>Clients</b> = company / organization leads that hire lobbyists. <b>Lobbyists</b> = individual lobbyist people. <b>Contributions</b> = political contributions reported by lobbyists / registrants.",
            "default": "filings"
          },
          "filingYear": {
            "title": "Filing year",
            "minimum": 1999,
            "maximum": 2100,
            "type": "integer",
            "description": "Filing year to pull (e.g. 2024). Applies to Filings and Contributions. Leave empty for the most recent filings across all years (sorted newest-first)."
          },
          "filingPeriod": {
            "title": "Filing period",
            "enum": [
              "",
              "first_quarter",
              "second_quarter",
              "third_quarter",
              "fourth_quarter",
              "year_end",
              "mid_year"
            ],
            "type": "string",
            "description": "Optional reporting period (Filings / Contributions only).",
            "default": ""
          },
          "filingTypes": {
            "title": "Filing types",
            "type": "array",
            "description": "Optional list of LDA filing-type codes to keep (Filings only). Common: <code>RR</code> registration, <code>Q1</code>/<code>Q2</code>/<code>Q3</code>/<code>Q4</code> quarterly reports, <code>RA</code> registration amendment. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "registrantName": {
            "title": "Lobbying firm (registrant) name contains",
            "type": "string",
            "description": "Optional — only filings / registrants whose registrant (lobbying firm) name matches this text (e.g. <code>akin gump</code>, <code>brownstein</code>)."
          },
          "clientName": {
            "title": "Client name contains",
            "type": "string",
            "description": "Optional — only filings / clients whose client (the company / organization paying for lobbying) name matches this text (e.g. <code>google</code>, <code>pharma</code>)."
          },
          "lobbyistName": {
            "title": "Lobbyist name contains",
            "type": "string",
            "description": "Optional — only records mentioning a lobbyist whose name matches this text (e.g. <code>smith</code>)."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Optional list of 2-letter US state codes (e.g. <code>DC</code>, <code>CA</code>, <code>NY</code>). Matches the client or registrant state on filings, or the entity state on registrants / clients / lobbyists / contributions.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Optional list of 2-letter country codes (e.g. <code>US</code>, <code>JP</code>, <code>GB</code>). Matches the client or registrant country. Combine with <b>Foreign interests only</b> to surface foreign-funded lobbying.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "issueAreaCodes": {
            "title": "Issue areas (Filings only)",
            "type": "array",
            "description": "Optional list of 3-letter LDA general issue-area codes to keep (matched against each filing's lobbying activities). Examples: <code>HCR</code> Health Issues, <code>TAX</code> Taxation, <code>DEF</code> Defense, <code>TRD</code> Trade, <code>ENG</code> Energy/Nuclear, <code>FIN</code> Finance, <code>TEC</code> Science/Technology, <code>IMM</code> Immigration, <code>BUD</code> Budget/Appropriations. See the README for the full list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "governmentEntityContains": {
            "title": "Government entity lobbied contains (Filings only)",
            "type": "string",
            "description": "Optional — keep only filings that lobbied a government entity whose name matches this text (e.g. <code>senate</code>, <code>FDA</code>, <code>defense</code>, <code>EPA</code>)."
          },
          "postedAfter": {
            "title": "Posted after (date)",
            "type": "string",
            "description": "Optional ISO date (e.g. <code>2024-06-01</code>). Keep only filings / contributions posted after this date — ideal for pulling fresh filings. Maps to the LDA <code>filing_dt_posted_after</code> filter."
          },
          "minReportedSpend": {
            "title": "Minimum reported $ (Filings only)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional — keep only filings whose reported lobbying income (firm) or expenses (in-house) is at least this many US dollars. Great for targeting big spenders."
          },
          "registrationsOnly": {
            "title": "New registrations only (Filings only)",
            "type": "boolean",
            "description": "Keep only new registration filings (filing type RR) — i.e. a lobbying firm newly taking on a client, the freshest engagement signal.",
            "default": false
          },
          "foreignOnly": {
            "title": "Foreign interests only",
            "type": "boolean",
            "description": "Keep only records tied to a non-US client / registrant or that list a foreign entity — useful for foreign-influence and compliance research.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "With phone number only",
            "type": "boolean",
            "description": "Keep only records that have a contact phone number.",
            "default": false
          },
          "nameQuery": {
            "title": "Name contains (any)",
            "type": "string",
            "description": "Optional generic text match across the registrant, client and lobbyist names of a record."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only records with a derived lead score (0-100) at or above this value."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to return (after filtering). Each emitted record is one paid result.",
            "default": 500
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "spendHigh",
              "recent",
              "name"
            ],
            "type": "string",
            "description": "How to rank the returned records.",
            "default": "leadScore"
          },
          "deduplicateResults": {
            "title": "Deduplicate results",
            "type": "boolean",
            "description": "Drop duplicate records (same filing / entity id) within a run.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the raw LDA API object to every record under <code>sourceFields</code> for maximum data fidelity.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember records emitted on previous runs (in a key-value store) and only output records that are new or have changed since last time. Perfect with a Schedule for a fresh-filings feed. This is independent of (and complementary to) Apify Schedules — Schedules decide WHEN the actor runs; monitor mode decides WHICH records are returned.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name for the monitor state store, so different searches keep separate memory (e.g. <code>pharma-clients</code>). Defaults to <code>default</code>."
          },
          "apiKey": {
            "title": "LDA API key (optional)",
            "type": "string",
            "description": "Optional free Senate LDA API key for much higher rate limits. Register at https://lda.senate.gov/api/register/ and paste the key here. Without a key the actor still works (it rotates proxy IPs and backs off on rate limits), just more slowly for very large pulls."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy (datacenter) is used by default and IPs are rotated to spread requests across the LDA API rate limit.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}