> For the complete documentation index, see [llms.txt](https://nagara.gitbook.io/code-zero-project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nagara.gitbook.io/code-zero-project/helper/get_rest_api.md).

# get\_rest\_api

### get\_rest\_api()

get rest api adalah function yang dibuat untuk mendapatkan data dari API public dengan format JSON atau javascirpt object notation dengan metode php-curl.

```php
<?php
$url = "www.xyz.com/api/dataapi";
echo get_rest_api($url);  //return json data api
```
