WordPress REST API
-
I launched a new site today and have few test posts in the same which are all published. However, when I try to use the REST API to fetch the posts, I get a 404 response.
-
i get the below response when i try to curl
curl -X GET -i http://***.wordpress.com/wp-json/wp/v2/posts
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Mon, 22 Mar 2021 11:45:32 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Location: https://theskillxchange.wordpress.com/wp-json/wp/v2/posts
X-ac: 1.bom _dca<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html> -
Hi there!
Could you tell us what exactly you are trying to achieve? Once we know more, we can advise better.
- The topic ‘WordPress REST API’ is closed to new replies.