Title: Error: API rate limit exceeded
Last modified: August 19, 2020

---

# Error: API rate limit exceeded

 *  [strayker](https://wordpress.org/support/users/strayker/)
 * (@strayker)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error-api-rate-limit-exceeded/)
 * Hello!
 * I added this external block to my WP, gave URL to repo in settings bar and this
   happend: Error: API rate limit exceeded for <My IP address>. (But here’s the 
   good news: Authenticated requests get a higher rate limit. Check out the documentation
   for more details.)
 * That’s all. I would like to know how to repair it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-api-rate-limit-exceeded%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [nbarrier](https://wordpress.org/support/users/nbarrier/)
 * (@nbarrier)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-api-rate-limit-exceeded/#post-13600112)
 * Hello
 * I have the exact same problem. For a specific repo, I have the following error
   message:
 * Error: API rate limit exceeded for IP (But here’s the good news: Authenticated
   requests get a higher rate limit. Check out the documentation for more details.)
 * However, the IP address that is shown is not the one obtained from the “ping 
   domain” command.
 * For the record, it was fully working on my local machine, but I used Duplicator
   to move site to production. It then failed.
 *  [alexynior](https://wordpress.org/support/users/alexynior/)
 * (@alexynior)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-api-rate-limit-exceeded/#post-14144275)
 * Same problem, any solution?
 *  [nbarrier](https://wordpress.org/support/users/nbarrier/)
 * (@nbarrier)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-api-rate-limit-exceeded/#post-14337744)
 * Hi everyone.
 * I may have found a solution (dirty, since I am no web developer). Editing the
   embed-block-for-github.php file, replace
 * `#if ( get_transient( '_ebg_repository_' . sanitize_title_with_dashes( $github_url)))`
 * by
 * `if(false)`
 * The insures that the transient will not be used (and thus that data will be updated).
 * Then to insure that API rate limit is not reached:
 *     ```
       $token = '...'  
       $args = array(
         'headers'     => array(
           'Authorization' => 'Bearer ' . $token,                                                        ),
       );
   
        $request = wp_remote_get( 'https://api.github.com/repos/' . $slug, $args);
       ```
   
 * with $token the value of your personal token (see [https://github.com/settings/tokens](https://github.com/settings/tokens)).
 * Worked for me.
 * Cheers
 * Nicolas

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

The topic ‘Error: API rate limit exceeded’ is closed to new replies.

 * ![](https://ps.w.org/embed-block-for-github/assets/icon-256x256.png?rev=2236083)
 * [Embed Block for GitHub](https://wordpress.org/plugins/embed-block-for-github/)
 * [Support Threads](https://wordpress.org/support/plugin/embed-block-for-github/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-block-for-github/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-block-for-github/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-block-for-github/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [nbarrier](https://wordpress.org/support/users/nbarrier/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/error-api-rate-limit-exceeded/#post-14337744)
 * Status: not resolved