# API 2.0

**URL:** <https://forum.ansible.com/t/api-2-0/21378>\
**Category:** Ansible Project\
**Created:** [May 7, 2016, 1:57pm UTC](https://forum.ansible.com/t/api-2-0/21378 "2016-05-07T13:57:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noam\_Greenberg](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Noam\_Greenberg](https://forum.ansible.com/u/Noam_Greenberg)\
**Post date:** [May 7, 2016, 1:57pm UTC](https://forum.ansible.com/t/api-2-0/21378/1 "2016-05-07T13:57:16Z")

</div>

Hi all

i wander if any one have a link or book about the Ansible 2.0 API (python )  
function , param etc … something  
i try to run a playbook from python and i dont find any doc that explain how to or witch function to use

Thanks In advance

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 7, 2016, 2:39pm UTC](https://forum.ansible.com/t/api-2-0/21378/2 "2016-05-07T14:39:22Z")

</div>

[http://docs.ansible.com/ansible/developing\_api.html](http://docs.ansible.com/ansible/developing_api.html)

---

<div class="post-metadata">

**Author:** ![Noam\_Greenberg](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Noam\_Greenberg](https://forum.ansible.com/u/Noam_Greenberg)\
**Post date:** [May 7, 2016, 2:54pm UTC](https://forum.ansible.com/t/api-2-0/21378/3 "2016-05-07T14:54:30Z")

</div>

thanks  
this doc is nice ( but poorly ) as i expect for some good doc this is why i ask  
if you will look let say “boto3” doc you have all the function and output etc …  
i ask if ansible have something like this ?

and if not i try to just run playbook from my pythonk script and wonder if there and how-to ?

Thanks

---

<div class="post-metadata">

**Author:** ![Allen\_Sanabria](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Allen\_Sanabria](https://forum.ansible.com/u/Allen_Sanabria)\
**Post date:** [May 7, 2016, 3:17pm UTC](https://forum.ansible.com/t/api-2-0/21378/4 "2016-05-07T15:17:15Z")

</div>

Noam, I have a repo where I am using the api to run my playbooks.  
You can look at this one as an example…  
[test\_kinesis\_stream.py](https://github.com/linuxdynasty/ld-ansible-modules/blob/master/test/cloud/amazon/test_kinesis_stream.py)

---

<div class="post-metadata">

**Author:** ![Allen\_Sanabria1](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Allen\_Sanabria1](https://forum.ansible.com/u/Allen_Sanabria1)\
**Post date:** [May 7, 2016, 3:18pm UTC](https://forum.ansible.com/t/api-2-0/21378/5 "2016-05-07T15:18:32Z")

</div>

I have a repo where I include tests for one of my modules that uses the 2.0 API. This is not documentation, but you can use it as an example.  
[https://github.com/linuxdynasty/ld-ansible-modules/blob/master/test/cloud/amazon/test\_kinesis\_stream.py](https://github.com/linuxdynasty/ld-ansible-modules/blob/master/test/cloud/amazon/test_kinesis_stream.py)
