How to get status of petition?

85 views
Skip to first unread message

Varun B. Krishnan

unread,
Dec 8, 2016, 12:33:27 PM12/8/16
to Change.org API
Hello! 
I would like to know if there is a way to count the number of successful change.org petitions (campaigns marked 'victory').  Would also like to know the category of petitions.

Kevin Bradshaw

unread,
Dec 8, 2016, 12:38:24 PM12/8/16
to Change.org API
AFAIK, the API only gives access to petitions you published. You need the API key for any petition you wish to access.
Also, none of the API routes give access to bulk data (the closest is the GET petitions/:petition_id/reasons route, which is paginated)

Varun B. Krishnan

unread,
Dec 8, 2016, 1:03:42 PM12/8/16
to Change.org API
Thanks Kevin. I have the API key. I looked through the documentation, but can't find a comprehensive list of fields that I can ask for. Can you help me out please?

Varun B. Krishnan

unread,
Dec 8, 2016, 1:13:33 PM12/8/16
to Change.org API
Found it here: 

Thanks for your help :)

Dr. Dietrich Davidstein

unread,
Mar 7, 2017, 8:17:18 PM3/7/17
to Change.org API
Hey did you get your request to work? I tried this example from the site you've posted:

https://api.change.org/v1/petitions/get_id?petition_url=http%3A%2F%2Fwww.change.org%2Fpetitions%2Fask-starfleet-to-add-a-purple-uniform

and always get 

{"result":"failure","messages":["unauthorized request"]}

as the result.

Has something changed in the API or am i doing it wrong?

Could you please post an example if you got your code working?
Reply all
Reply to author
Forward
0 new messages