I am using Ghost API to get the content from another website. I am using below mention code and it gives me a 403 Forbidden error.
function onSuccess(data) {
var $result = $('#blog-posts');
$.each(data.posts, function (i, post) {
$result.append(
'<li>' + post.title + '</li>'
);
});
}
jQuery(document).ready(function () {
jQuery.get(
ghost.url.api('posts', {
limit: '3',
include: 'tags',
order: 'count.posts DESC'
})
).done(onSuccess);
});