CivicFeed - Codify

FREEMIUM
By civicfeed
Updated 4 days ago
Text Analysis
-/10
Popularity Score
-
Latency
-
Success Rate

CivicFeed - Codify API Documentation

Codify automatically identifies entities in your text, including people, organizations and more.

View API Details
POSTCodify
POSTCodify

This endpoint allows you to extract bills, legislators and organizations from unstructured text.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
BodyJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://civicfeed-civicfeed-codify-v1.p.rapidapi.com/codify")
.header("X-RapidAPI-Host", "civicfeed-civicfeed-codify-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"HB1 H.R.1 Tax Cuts and Jobs Act - Today, US House Judiciary Committee Member Ted W. Lieu (D Los Angeles County) joined Ranking Member Jerrold Nadler (D NY) in leading more than 190 House Democrats in introducing the Keep Families Together Act, legislation that will end family separation at the U.S. border. In addition to Reps. Lieu and Nadler, original House cosponsors of the legislation include: Subcommittee on Immigration Ranking Member Zoe Lofgren (D CA), Rep. Luis Gutierrez (D IL), Rep. Pramila Jayapal (D WA), Rep. Jimmy Panetta (D CA) and House Democratic leadership. This legislation is the House companion to the legislation introduced by Senate Judiciary Committee Ranking Member Dianne Feinstein (D CA) earlier this month. 5 U.S.C. 552(a)(1)(E)","mode":"1,2,3"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://civicfeed-civicfeed-codify-v1.p.rapidapi.com/codify
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://civicfeed-civicfeed-codify-v1.p.rapidapi.com/codify")
.header("X-RapidAPI-Host", "civicfeed-civicfeed-codify-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"text":"HB1 H.R.1 Tax Cuts and Jobs Act - Today, US House Judiciary Committee Member Ted W. Lieu (D Los Angeles County) joined Ranking Member Jerrold Nadler (D NY) in leading more than 190 House Democrats in introducing the Keep Families Together Act, legislation that will end family separation at the U.S. border. In addition to Reps. Lieu and Nadler, original House cosponsors of the legislation include: Subcommittee on Immigration Ranking Member Zoe Lofgren (D CA), Rep. Luis Gutierrez (D IL), Rep. Pramila Jayapal (D WA), Rep. Jimmy Panetta (D CA) and House Democratic leadership. This legislation is the House companion to the legislation introduced by Senate Judiciary Committee Ranking Member Dianne Feinstein (D CA) earlier this month. 5 U.S.C. 552(a)(1)(E)","mode":"1,2,3"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication