+ Start a Discussion
khillan bhardwajkhillan bhardwaj 

WordPress Integration to retrieve post


I want ot retrieve all the wordpress post from self hosted website.i have try following endpoint 'https://public-api.wordpress.com/rest/v1/sites/<sitename>/posts?preety=1'.when i hit the end point then i got following responce 
    "error": "unauthorized",
    "message": "API calls to this blog have been disabled."
I do not know how to enable API call for this blog.at the sametime i have create one more blog with name ksingh2.wordpress.com. and hit the endpoint 'https://public-api.wordpress.com/rest/v1/sites/ksingh2.wordpress.com/posts?preety=1' then i am able to get the responce sucessfully

Please let me know what is possiblity to retrieve posts of self hosted sit on wordpress

Read through https://developer.wordpress.com/docs/api/1/get/sites/%24site/posts/%24post_ID/ and understand that this is the one you are trying to use - did you get in touch with the wordpress support team or developers to check if they have faced similar isues? seems the same with others: http://en.forums.wordpress.com/topic/getting-error-api-calls-to-this-blog-have-been-disabled