The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Moz Tools
    4. I keep getting Authentication Failed on the API

    I keep getting Authentication Failed on the API

    Moz Tools
    8 5 2.2k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ColumK
      ColumK last edited by

      I have the credentials in the URL correctly but it will continue to fail authentication. I will not post them obviously but is there a problem with the API currently? I tried creating new credentials  Also I have used this before so I am sure it is not a problem with the credentials.

      I somehow managed to get Chrome to show the data. Firefox will not and the code i have written also return authentication failed. This is a bug on your end. Please fix it ASAP.

      1 Reply Last reply Reply Quote 0
      • Lindsay
        Lindsay last edited by

        Good morning!

        While I don't know the answer, maybe I can help! Have you tried posing this over at the API Forum? https://seomoz.zendesk.com/categories/6328-SEOmoz-APIs-and-Extras. That is usually the best place for API issues and questions. If you leave this question open too, we can go at this from two angles. 🙂

        1 Reply Last reply Reply Quote 0
        • ColumK
          ColumK last edited by

          Did not know that was there. there seems to be others with the same problem so definitely a bug: https://seomoz.zendesk.com/entries/21886401-Another-401-Unauthorized

          ChiarynMiranda 1 Reply Last reply Reply Quote 0
          • ChiarynMiranda
            ChiarynMiranda @ColumK last edited by

            Hey Colum,

            That forum you are looking at is a bit old and I believe we have resolved the authentication issue, so it isn't an overarching problem. I also was able to grab the sample code on your account and get data back when I ran the code in my browser, so I would recommend trying to run a call again. If you regenerated your credential and still received the error, it may be that the new credentials hadn't updated yet in our database, since it can take up to 30 minutes for the database to recognize the new credentials.

            I would suggest trying both the sample code on your account and a regular call to see if either are still giving you the error message. If you are no longer getting the error message on the sample call, but you are still getting it on the other call, it may be a formatting issue. I'm definitely seeing data for the sample call now, so it shouldn't be any issue with the actual credentials.

            I hope this helps. Please let me know if you are still seeing any issues.

            ColumK 1 Reply Last reply Reply Quote 0
            • ColumK
              ColumK @ChiarynMiranda last edited by

              I tried the sample code, worked, tried mine, broke, changed back to sample code, broke. I also generated a new key (ill try that in 30 minutes) in case it was just not updating in the DB, in terms of waiting 30 minutes, I waited for 48 hours and still did not work.

              JoelDay 1 Reply Last reply Reply Quote 0
              • JoelDay
                JoelDay @ColumK last edited by

                Colum,

                You should not be regenerating your secret key so often, it's not doing you any favors and is just making it more difficult to help you.

                The issue you are having is with how you are generating your expires and signature. I tested the call you posted in the forum that was giving you a 401 and the signature and expires did not line up. I'm not going to put your information here for your privacy, but the problem is definitely with your code and not with your API key or the API itself.

                I hope that makes sense.
                Thanks,
                Joel.

                1 Reply Last reply Reply Quote 0
                • cm1chess
                  cm1chess last edited by

                  Hi having same issue, just signed up for chessmazeinternational and getting same error back from analytics ?

                  Remote-authentication.failure

                  can you assist?

                  ChiarynMiranda 1 Reply Last reply Reply Quote 0
                  • ChiarynMiranda
                    ChiarynMiranda @cm1chess last edited by

                    Hey Carmelo,

                    It looks like you are encountering a bit of a different issue. It sounds like you are receiving the error when you try to connect with Google Analytics rather than when you try to make an API call. I'm really sorry about that.

                    Google is currently having some authentication issues on their end. The issue seems to be clearing up and we are monitoring the issue as it resolved. If you are still encountering the issue, please contact our Help Team here: http://moz.com/help/contact for further assistance.

                    Chiaryn

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • How to get free backlink?
                      Chris.Menke
                      Chris.Menke
                      0
                      2
                      81

                    • Is there a way to get moz keywords analysis % through the api ?
                      Sindicic_Alexis
                      Sindicic_Alexis
                      0
                      3
                      577

                    • Wher is the API id and key? I tried generating it several times but I get nothing...?
                      Abe_Schmidt
                      Abe_Schmidt
                      0
                      4
                      221

                    • API Limit
                      ChiarynMiranda
                      ChiarynMiranda
                      0
                      2
                      1.1k

                    • What do you get with mozpoints?
                      NakulGoyal
                      NakulGoyal
                      0
                      7
                      537

                    • Linkscape API having bugs
                      W_TrafficBuildersNL
                      W_TrafficBuildersNL
                      0
                      3
                      412

                    • Free API
                      KeriMorgret
                      KeriMorgret
                      0
                      2
                      774

                    • Free api
                      KyleJohnson40
                      KyleJohnson40
                      0
                      2
                      650

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy