Title: Rest API Error
Last modified: May 21, 2023

---

# Rest API Error

 *  Resolved [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/)
 * Hey guys
   Today I tried to install site kit plugin for the first time on this 
   domain but I got an error after I tried to connect this plugin to my google account**
   Your site may not be ready for Site Kit: Site Kit cannot access the WordPress
   REST API**I did check the site health, there is no any error regarding rest apiI
   installed and configured sit kit on three websites that are being hosted on same
   server and same cloudflare account without any problem, I am having this problem
   only on this domainI remember once I installed a plugin for disabling rest api
   but it was deactivated and removed long time agoHow can I fix this issue?
    -  This topic was modified 2 years, 12 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: removed nsfw

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16755290)
 * There is no any support here?
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16756684)
 * Hi [@roz333](https://wordpress.org/support/users/roz333/),
 * Thanks for reaching out. Note also that support is provided over the weekdays
   only, and not during weekends.
 * With regards the error you’re facing, your WordPress REST block could be coming
   from a host or firewall configuration, or the block could be from when you use
   a third party plugin previously to disable your REST API. The block may have 
   been configured in one of your WordPress configuration files. So we can determine
   more on this, please share the following:
    1. Your[ Site Health information](https://i.imgur.com/Rtkmsba.png). You can[ use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred.  
    2. Do you recall the plugin you previously used to disable your REST API?
    3. If you temporarily bypass Cloudflare for this site, are you able to proceed?
 * Once we have the above we can assist with this further. Let me know if you have
   any questions with the above.
 *  Thread Starter [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16759840)
 * Thank you James for your explanation 
   I submitted the info you asked right now
   I don’t think so this issue is relevant to server because I have 4 domains. I
   installed and configured sit kit on three other domains without any problems ..
   All 4 domains are being hosted on same server with same IP same server configuration,
   same firewall configuration and same cloudflare account (with same configuration
   in cloudflare setting and firewall and DNS) I am confident that issue has been
   created since I activated that plugin for disabling REST APIunfortunately I don’t
   recall the name of plugin
 *  Thread Starter [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16759856)
 * I installed manually google analytics G4 on my website alongside with UA google
   analytic but It seems it doesn’t work properly, It doesn’t show real number of
   users and although I have connected both codes via google console, I cannot see
   my previous data and statistics in the new Google Analytics. This is why I am
   trying to install site kit
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16760520)
 * Thanks for providing these additional insights [@roz333](https://wordpress.org/support/users/roz333/).
   From reviewing your site I noticed some mixed content errors, and these can lead
   to REST errors. Can you ensure that the http version of your site redirects to
   http? At present both are accessible. After doing so, please attempt Site Kit
   set up on this site once more.
 * I also noticed various optimizations performed that may also be impacting Site
   Kit setup. You’ll [see various console errors](https://i.imgur.com/pTcVvai.png)
   when visiting your site, some which indicated mixed content as mentioned above,
   while others referencing your optimization plugins. If you managed to make your
   site fully https only, and the same WordPress REST API notice appears please 
   follow the steps below:
    1. Login to your live site from [a ](https://i.imgur.com/ALzgiHp.png)[Chrome browser incognito window](https://i.imgur.com/ALzgiHp.png).
    2. Install and activate th[e ](https://wordpress.org/plugins/health-check)[Health Check & Troubleshooting plugin](https://wordpress.org/plugins/health-check).
    3. Navigate to “_Plugins > Health Check & Troubleshooting > Troubleshoot_”.
    4. From the same screen click on the “_Available Plugins_” tab at the top right
       and then click on the “Enable” option next to “_Site Kit by Google_“.
    5. Attempt to setup Site Kit once more or check for the same error.
 * Let me know if you have any questions with the above.
 * > I installed manually google analytics G4 on my website alongside with UA google
   > analytic but It seems it doesn’t work properly, It doesn’t show real number
   > of users and although I have connected both codes via google console,
 * The changes you see here may be due to what GA4 highlights as “Users”. With Universal
   Analytics (UA) the “_Total Users_” metric highlights all site visitors simply
   as “Users”. If you then view your GA4 data from [analytics.google.com](https://analytics.google.com/)
   the “Users” metric refers to _“Active Users”_, which can differ from the “_Total
   Users_” metric.
 * To summarize, GA4 highlights your “_Active Users_” whereas UA highlights the “
   _Total Users_“. Active means users who revisit your site, or navigate between
   your site. Total users can include one time visitors. The metrics between both
   are unlikely to match.
 * The product experts over at the [Analytics Help Center](https://support.google.com/analytics/?hl=en#topic=3544906)
   can advise on the above more than we can here, but do let me know of the above
   regarding troubleshooting your REST related issue.
 *  Thread Starter [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16761862)
 * I really really appreciate you man
   You are the bestEverything went well and it
   works great now, After configuring site kit at incognito I should have changed
   http to https and everything is ok nowJust two last question1- As you can see
   here ([https://imgur.com/8LjGDrN](https://imgur.com/8LjGDrN)) impression section
   doesn’t show the data it just shows “gathering data” Is that a bug? (All data
   showed up in dashborad except this one)2- Is that possible you remove all data
   I shared with you in private form?Thank you again sir
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16761892)
 * Great news, glad to hear that resolves your issue.
 * > 1- As you can see here ([https://imgur.com/8LjGDrN](https://imgur.com/8LjGDrN))
   > impression section doesn’t show the data it just shows “gathering data” Is 
   > that a bug? (All data showed up in dashborad except this one)
 * Gathering data is normal if there is no impression data yet. The information 
   shown within Site Kit for this metric comes from your Search Console account,
   so it should match what you see within Search Console directly. It’s just a matter
   of waiting I suspect. If you’re finding different at Search Console directly 
   I’d be happy to check this further if you can provide a screenshot or recording
   of what you’re seeing in Site Kit compared to what you’re seeing in Search Console(
   for the same reporting period). I suspect it’s just a matter of waiting.
 * > 2- Is that possible you remove all data I shared with you in private form?
 * Done!
 * Let us know if you have any further questions on the above, and be sure to reach
   out if you have any further Site Kit queries. If you have a moment free please
   also consider [leaving a plugin review](https://wordpress.org/support/plugin/google-site-kit/reviews/#new-post)
   once you’ve tested out the dashboard and features Site Kit offers.
 *  Thread Starter [roz333](https://wordpress.org/support/users/roz333/)
 * (@roz333)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16763105)
 * Problem solved. Data started showing up since a few hours ago
   Thank you very 
   much for all your helpI wish you all the best.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16764006)
 * Excellent, thank you for the update. Best of luck with your site going forward.
   Be sure to reach out if you have any further queries.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Rest API Error’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/rest-api-error-38/#post-16764006)
 * Status: resolved