You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
It appears that the text-based arguments (title and body for sure) for the API are case-sensitive (e.g. "Freedom" != "freedom"). This means that searches for petitions with "guns" in the title will be different than those for "Guns" as shown below:
{"metadata":{"responseInfo":{"status":200,"developerMessage":"OK"},"resultset":{"count":5,"offset":0,"limit":1},"executionTime":0.049998},"results":[{"id":"50e0abe3c988d4dd53000022","type":"petition","title":"Tax sales of guns and ammunition","body":"We request that Congress and the President institute a federal sales tax on guns and ammunition. Revenue from the tax should be used to pay for enforcement of existing gun laws, improved mental health care, gun safety programs, violence prevention programs, a national firearms injury/mortality database, and a compensation fund for victims of gun violence.","issues":[{"id":"3","name":"Budget and Taxes"},{"id":"10","name":"Criminal Justice and Law Enforcement"},{"id":"22","name":"Firearms"}],"signatureThreshold":25000,"signatureCount":3393,"signaturesNeeded":21607,"url":"https://petitions.whitehouse.gov/petition/tax-sales-guns-and-ammunition/HQQmBzW1","deadline":1359493347,"status":"closed","response":null,"created":1356901347}]}
{"metadata":{"responseInfo":{"status":200,"developerMessage":"OK"},"resultset":{"count":3,"offset":0,"limit":1},"executionTime":0.03},"results":[{"id":"50f62a5d6ce61ca803000007","type":"petition","title":"Impeach President Barack Obama if Executive Orders are signed to ban Assault Rifles, Guns & High Capacity Magazines","body":"The Vice President has made it clear that 19 Executive Orders could / will come about if an Assault Rifle / High Capacity Magazine ban is not passed through the House. This is a violation of our 2nd Amendment. I propose that our elected officials Impeach President Barack Obama if he signs executive orders to take away this right to bear arms. Our 2nd Amendment was written to stand up against a tyrant government. Our government has F18s and F16s, we the people should be allowed a Semi Automatic Rifles to defend ourselves from a possible tyrant government take over. ","issues":[{"id":"22","name":"Firearms"},{"id":"193","name":"Government Reform"},{"id":"175","name":"Urban Policy"}],"signatureThreshold":100000,"signatureCount":8992,"signaturesNeeded":91008,"url":"https://petitions.whitehouse.gov/petition/impeach-president-barack-obama-if-executive-orders-are-signed-ban-assault-rifles-guns-high-capacity/rVVBsPhM","deadline":1360901981,"status":"closed","response":null,"created":1358309981}]}
I would expect that these two queries would return the same results.
The text was updated successfully, but these errors were encountered:
It appears that the text-based arguments (
title
andbody
for sure) for the API are case-sensitive (e.g. "Freedom" != "freedom"). This means that searches for petitions with "guns" in the title will be different than those for "Guns" as shown below:https://api.whitehouse.gov/v1/petitions.json?title=guns&limit=1
https://api.whitehouse.gov/v1/petitions.json?title=Guns&limit=1
I would expect that these two queries would return the same results.
The text was updated successfully, but these errors were encountered: