with Congress.gov and The Official Board?
The Congress.gov API opens the door to a repository of legislative information from the United States Congress. With this API, you can access details on bills, amendments, congressional records, and members' profiles. Integrating this API with Pipedream allows you to automatically track legislative developments, analyze policymaking trends, and stay informed on the activities of specific members of Congress. By creating workflows on Pipedream, you can connect Congress.gov data with numerous apps to streamline political data analysis, advocacy efforts, or journalistic research.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
congress_gov: {
type: "app",
app: "congress_gov",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.congress.gov/v3/bill`,
params: {
format: `json`,
api_key: `${this.congress_gov.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_official_board: {
type: "app",
app: "the_official_board",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.theofficialboard.com/rest/test/token`,
headers: {
"accept": `application/json`,
"token": `${this.the_official_board.$auth.api_token}`,
},
})
},
})