The OpenSecrets Python SDK by OpenSecrets interacts with the API to access politic data from the official site in JSON and XML formats. Methods include member, candidate, and organization in addition to installation and usage as resources.
Facebook created an API to fight abusive political ads. The Ad Archive API is being tested by a select group of researchers, academics, and publishers. Through the API, developers gain access to ad data including the ad creator, content, recipient, impressions, target demographic and more.