{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Lobbying Disclosures & Foreign Agent Registrations",
    "description": "Export federal lobbying registrations and quarterly reports (client, firm, income or expenses, issue codes, specific issues, agencies lobbied) and foreign agent registrations with their foreign principals and countries, from US government public data. Unofficial.",
    "version": "0.1",
    "x-build-id": "lBzQMiEzHN7kKXrhH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lepidata~lobbying-disclosures/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lepidata-lobbying-disclosures",
        "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/lepidata~lobbying-disclosures/runs": {
      "post": {
        "operationId": "runs-sync-lepidata-lobbying-disclosures",
        "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/lepidata~lobbying-disclosures/run-sync": {
      "post": {
        "operationId": "run-sync-lepidata-lobbying-disclosures",
        "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": [
              "filings",
              "foreign_agents"
            ],
            "type": "string",
            "description": "Lobbying registrations and reports, or foreign agent registrations.",
            "default": "filings"
          },
          "clients": {
            "title": "Clients (filings)",
            "type": "array",
            "description": "Client organisation names, up to 20 (partial match by the source).",
            "items": {
              "type": "string"
            }
          },
          "registrants": {
            "title": "Registrants (filings)",
            "type": "array",
            "description": "Lobbying firm or self-filing organisation names, up to 20 (filings by individual registrants are not returned for this filter).",
            "items": {
              "type": "string"
            }
          },
          "issueText": {
            "title": "Specific issue text (filings)",
            "type": "string",
            "description": "Words in the filed specific lobbying issues, e.g. a bill number."
          },
          "years": {
            "title": "Filing years (filings)",
            "type": "array",
            "description": "Up to 5, e.g. 2025.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Period (filings)",
            "enum": [
              "any",
              "first_quarter",
              "second_quarter",
              "third_quarter",
              "fourth_quarter",
              "mid_year",
              "year_end"
            ],
            "type": "string",
            "description": "Reporting period.",
            "default": "any"
          },
          "filingType": {
            "title": "Filing type code (filings)",
            "type": "string",
            "description": "e.g. RR (registration), Q1-Q4 (quarterly report), 1A (amendment), 1T (termination)."
          },
          "clientState": {
            "title": "Client state (filings)",
            "type": "string",
            "description": "2-letter US state."
          },
          "minAmountUsd": {
            "title": "Minimum reported amount (filings)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum income or expenses reported."
          },
          "postedAfter": {
            "title": "Posted after (filings)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "postedBefore": {
            "title": "Posted before (filings)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "includeActivities": {
            "title": "Include activities (filings)",
            "type": "boolean",
            "description": "Add issue areas, specific issues and government entities lobbied. Lobbyist names are never included.",
            "default": false
          },
          "sortBy": {
            "title": "Sort (filings)",
            "enum": [
              "newest",
              "default"
            ],
            "type": "string",
            "description": "newest = most recently posted first.",
            "default": "newest"
          },
          "nameContains": {
            "title": "Name contains (foreign agents)",
            "type": "array",
            "description": "Organisation registrant, business or foreign principal name words (individual registrants are never matched).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (foreign agents)",
            "type": "array",
            "description": "Country represented, as written in the source, e.g. JAPAN.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Registration numbers (foreign agents)",
            "type": "array",
            "description": "Registration numbers.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status (foreign agents)",
            "enum": [
              "active",
              "terminated",
              "any"
            ],
            "type": "string",
            "description": "Registration status.",
            "default": "active"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Paid rows cap for this run (filings: up to 7,500).",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}