# Consuming API with cake 2.x

**URL:** <https://discourse.cakephp.org/t/consuming-api-with-cake-2-x/730>\
**Category:** Need Help\
**Created:** [July 15, 2016, 12:30pm UTC](https://discourse.cakephp.org/t/consuming-api-with-cake-2-x/730 "2016-07-15T12:30:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clementcrownrise](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@clementcrownrise](https://discourse.cakephp.org/u/clementcrownrise)\
**Post date:** [July 15, 2016, 12:30pm UTC](https://discourse.cakephp.org/t/consuming-api-with-cake-2-x/730/1 "2016-07-15T12:30:22Z")

</div>

Good Day everyone, please do you have a tutorial that can teach me how to consume an api with cakephp ?

I want to consume the below api with my cakephp application.

[https://unplag.com/check-api/](https://unplag.com/check-api/)

Your help will be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![ali](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/ali/32/123_2.png) [@ali](https://discourse.cakephp.org/u/ali)\
**Post date:** [July 16, 2016, 1:31pm UTC](https://discourse.cakephp.org/t/consuming-api-with-cake-2-x/730/2 "2016-07-16T13:31:43Z")

</div>

If the API doesn’t require any kind of login / auth-token generation, which appears to be the case here, then you could simply get / post data to and from the documented API endpoints via HTTP Sockets: [http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html](http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html)
