**PHP and MySQL**

In building dynamic websites (can be personal, web app, etc..), is it suitable to use API request calls, instead of MySQL queries? 

Example in my function `getArticles()`, should I use a native MySQL query like:

```
$sql = 'SELECT id, title, content
        FROM r_articles'
$result = mysql_query($sql) or die ('.. bla bla');

```

Or, just execute a GET request to: `http://mysite.com/api/articles`. Then (supposed to be the response is in JSON) format the response.

**NOTE:** The API of course is to be created first.