{"id":16728333,"url":"https://github.com/tmc/openfec","last_synced_at":"2025-10-07T00:23:50.229Z","repository":{"id":36112386,"uuid":"40414445","full_name":"tmc/openfec","owner":"tmc","description":"OpenFEC client library for Go","archived":false,"fork":false,"pushed_at":"2015-10-18T19:51:46.000Z","size":164,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-22T06:15:42.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-08T19:40:13.000Z","updated_at":"2019-11-14T10:46:06.000Z","dependencies_parsed_at":"2022-09-18T04:41:20.088Z","dependency_job_id":null,"html_url":"https://github.com/tmc/openfec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fopenfec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fopenfec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fopenfec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fopenfec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmc","download_url":"https://codeload.github.com/tmc/openfec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243754679,"owners_count":20342691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T23:09:56.265Z","updated_at":"2025-10-07T00:23:45.190Z","avatar_url":"https://github.com/tmc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"openfec\n=======\n\n[![GoDoc](https://godoc.org/github.com/tmc/openfec?status.svg)](http://godoc.org/github.com/tmc/openfec)\n\n\nThis package provides programmatic access to the OpenFEC api.\n\nIncluded under cmd are example command line utilities showing consumption of this api.\n\nDocumentation: http://godoc.org/github.com/tmc/openfec\n\nStatus: some endpoints missing, pull requests welcome!\n\nLicense: ISC\n\nExamples: \n\nlist-candidates-potus\n---------------------\n\n```sh\n⚛ ~$ go get github.com/tmc/openfec/cmd/...\n⚛ ~$ \n⚛ ~$ list-candidates-potus -h\nUsage of list-candidates-potus:\n  -f string\n\t  Formatting string (default \"{{.Name}} {{.Party}}\")\n  -party string\n\t  Political party (default: all)\n  -v\tverbose output\n  -year int\n\t  Election cycle to list candidates from (default 2016)\n\n⚛ ~$ \n⚛ ~$ export DATA_GOV_API_KEY=(YOUR KEY HERE)\n⚛ ~$ list-candidates-potus -party DEM\nP80000268 - CARTER, WILLIE FELIX DEM\nP60008075 - CHAFEE, LINCOLN DAVENPORT MR. DEM\nP00003392 - CLINTON, HILLARY RODHAM DEM\nP60007267 - KELSO, LLOYD THOMAS DEM\nP60007671 - O'MALLEY, MARTIN JOSEPH DEM\nP60007168 - SANDERS, BERNARD DEM\nP20004065 - WELLS, ROBERT CARR JR DEM\nP60005204 - WILLIAMS, ELAINE WHIGHAM DEM\nP60007515 - WILSON, WILLIE DEM\nP60007754 - WINSLOW, BRAD MR. DEM\n```\n\nlist-candidate-filings\n---------------------\n\n```sh\n⚛ ~$ go get github.com/tmc/openfec/cmd/...\n⚛ ~$ \n⚛ ~$ list-candidate-filings -h\n$ list-candidate-filings -h\nUsage of list-candidate-filings:\n  -candidate string\n      Candidate ID to fetch filings for\n  -f string\n      Formatting string (default \"{{.}}\")\n  -v\tverbose output\n⚛ ~$ \n⚛ ~$ export DATA_GOV_API_KEY=(YOUR KEY HERE)\n⚛ ~$ list-candidate-filings -f json -candidate P60007168 |jq .\n{\n  \"amendment_indicator\": \"N\",\n  \"beginning_image_number\": \"15031422533\",\n  \"candidate_id\": \"P60007168\",\n  \"candidate_name\": \"SANDERS, BERNARD\",\n  \"committee_id\": \"P60007168\",\n  \"cycle\": 2016,\n  \"document_description\": \"Statement of candidacy 2015\",\n  \"election_year\": 2016,\n  \"ending_image_number\": \"15031422535\",\n  \"file_number\": -9144826,\n  \"form_type\": \"F2\",\n  \"pages\": 3,\n  \"pdf_url\": \"http://docquery.fec.gov/pdf/533/15031422533/15031422533.pdf\",\n  \"receipt_date\": \"2015-04-30\",\n  \"report_year\": 2015,\n  \"sub_id\": 1050120150017429800\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fopenfec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmc%2Fopenfec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fopenfec/lists"}