Title: WP API data doesn&#039;t display
Last modified: August 24, 2016

---

# WP API data doesn't display

 *  [markelovett](https://wordpress.org/support/users/markelovett/)
 * (@markelovett)
 * [11 years ago](https://wordpress.org/support/topic/wp-api-data-doesnt-display/)
 * I am trying to use the below line of code to access my wordpress site’s api posts,
   but it just spins and doesnt display anything.
 * ‘$http.get(‘[http://marklovettphotography.com/wp-json/posts&#8217](http://marklovettphotography.com/wp-json/posts&#8217);
 * Will anybody please offer some advice?
 * I successfully installed the WP REST API plugin, and the json data can be accessed
   here: marklovettphotography.com/wp-json/posts
 * I replaced the above line of code with the url in the request below and it should
   work.
 * This below app.js code works in my angularjs app, so I know it’s set up correctly.
   It displays 10 posts from a public-wordpress API.
 * ‘.service(‘myService’, function($http) {
    this.getBlogs = function($scope) { 
   $http.jsonp(‘[https://public-api.wordpress.com/rest/v1/freshly-pressed?callback=JSON_CALLBACK&#8217](https://public-api.wordpress.com/rest/v1/freshly-pressed?callback=JSON_CALLBACK&#8217);).
   success(function(data) { $scope.posts = data.posts; $scope.$broadcast(‘scroll.
   refreshComplete’); }); }; })’
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

The topic ‘WP API data doesn't display’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

## Tags

 * [angularjs](https://wordpress.org/support/topic-tag/angularjs/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [display](https://wordpress.org/support/topic-tag/display/)
 * [Load problem](https://wordpress.org/support/topic-tag/load-problem/)

 * 0 replies
 * 1 participant
 * Last reply from: [markelovett](https://wordpress.org/support/users/markelovett/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/wp-api-data-doesnt-display/)
 * Status: not resolved