REST API Troubleshooting

If you’re getting an warning regarding the REST API route, it could be a couple of things. Your Burst Statistics dashboard will still work, but might be less performant than using the API.

Permalinks

In some cases it simply helps by going to WordPress settings ->permalinks, and click ‘save’. This will flush the permalink structure. If you’re using ‘plain’ permalinks, you’re not able to use the REST API with Burst Statistics.

REST API disabled

If you go to yourdomain.com/wp-json/wp/v2/posts you should see a list of posts, in raw json format. Sometimes, due to security reasons this action is blocked while the REST API is still available. You will get this response;

{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

If you get a direct 404, you will need to check if you’re using a plugin that disables the REST API.

Still not working?

Please contact us so we can figure out the problem. Please attach a screenshot of the console errors you see and the plugins you have active. This will also help others in the WordPress community!

Enhance your understanding of website visitors! Track country data, URL parameters, and multiple goals. Plus, enjoy premium support whenever needed!