I keep getting Authentication Failed on the API
-
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.
-
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
-
Hi having same issue, just signed up for chessmazeinternational and getting same error back from analytics ?
Remote-authentication.failure
can you assist?
-
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. -
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.
-
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.
-
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
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Where To Get a *Hint of My Beta Invite Status?
Wondering if I'm missing a thread somewhere with updates on new analytics dashboard (beta) invites? I'm not surprised I'm not first in line, but be nice to know if it's 2013...or 14?...or 15? 🙂
Moz Pro | | InsightRiot300 -
Linkscape API Sort calls
I'm using Linkscape API plugin from SEO Gadget. It's all fine but I can't find any documentation on other 'sort' calls. The only request that I knows that works is "domains_linking_page". Any idea where this information is? I was hoping for a list of all the available requests I can and more particularly I want to sort it by Internal Linking Domains.
Moz Pro | | iProspect-397560 -
How do i get the crawler going again?
The initial crawl only hit one page. Set up another campaign for another site and it crawled 260 pages. How can I get the crawler started up again or do I really have to wait a week ?
Moz Pro | | martJ0 -
API and bitflag question
I've googled and read and still confused on this. Regarding the link metric bit flags: http://apiwiki.seomoz.org/link-metrics I understand everything about how the API works and have it all working, except for this bit flag thing... And there's no example on this page of how to use the bit flags in an API request so it's hard to work it out. My current API call is: "http://lsapi.seomoz.com/linkscape/" & $db & "/" & $objectURL & "? SourceCols=" & $SourceCols & "&TargetCols=" & $TargetCols & "&Scope=" & $Scope & "&Sort=page_authority" & "&Filter=" & $Filter & "&AccessID=" & $accessID & "&Expires=" & $expires & "&Signature=" & $urlSafeSignature There are 4 Link Metric Bit Flags: 2, 4, 8, and 16. How do I use those in the above URL Do I use those in SourceCols? And there's about 15 Link Flag Definitions (ranging from 1 to 65536). So I use those in TargetCols? I've tested different variations and I get different responses but the responses aren't documented either. For example, if I get "luutrp":5.432777943351583,"luutrr":1.415861867916131e-14" in a response... what IS luutrp or luutrr. These acronyms are not outlined anywhere that I can find. This link: http://www.seomoz.org/ugc/the-busy-developers-guide-to-seomoz-bit-flags outlines an example but is using Cols (not SourceCols or TargetCols) so either this page is outdated or I'm missing something. Is there also a "Cols" parameter? Basically, I just want: - given a single URL, show me all links (page to page) pointing to that URL, and give me the same information that's displayed in Open Site Explorer (page authority, anchor text, title, etc, etc) but also give me some additional information such as, "is it on the same C block?" What's an example URL for the above request? Really hoping someone can shed some light on this under-documented API.
Moz Pro | | eatyourveggies0 -
Tracking External Followed Inbound Links - Are We Getting Fooled?
This question is not about how to use SEOMOZ Link tools. It's about the numbers themselves and how their fluctuations are causing confidence issues.... My client wants to track inbound followed links over time. But as I understand it, this number will vary depending on the Linkscape crawling success (or even outages or partial crawls.) In the past few reports, we've had wild fluctuations which have made them very nervous. If my client wants to track inbound followed links over time, what SEOMOZ metric should we use for the most reliable progress checks?
Moz Pro | | scottclark0 -
How do I get a link in my blog bio signature on my Youmoz posts?
I've done several Youmoz posts and only recently noticed for some reason that other authors have included author links and links to their websites in their bio section at the end. I edited mine with a full URL but it only shows up as text. No editor there when you edit your profile so no way of adding a link. Anyone know how this is done?
Moz Pro | | DanDeceuster0 -
How do I get my crawl report?
I received a message that my crawl report is complete with a link - went to the link however - when I click on the icon that has the report name and the complete check mark nothing happens looked around can't find the results. Need to bid on this job so it would be helpful to know where to get it. Thanks for all you do. Wickey
Moz Pro | | Wickey0 -
API returns only 3 results
Hi all, I'm using the links seomoz API, and it's working great for me, except it only appears to return 3 results. Seems to only return 3 results on the anchor text api also. Is there something basic I'm not doing to get more results? Thanks!
Moz Pro | | jimbo_kemp0