401 permission denied
-
I'm getting 401 while trying to make an API call via my web API in C#.
When I paste the exact same URL in my browser it works.
Does anyone know why?
Thanks!
-
Hey there Po!
We'd need the full call to the API to check on this, not the code from your app that assembles it. I would recommend sending that full call to use at [email protected] to keep your data private. Thanks!
-
Hi Lisa,
Thanks! Though the problem is not with the app itself because if I switch the URL from the API one so some other random URLs, it works fine.
I'm using it as such:
chkStr = "https://lsapi.seomoz.com/linkscape/url-metrics/" + domainUrl + "?Cols=68719476736&Limit=10&" + authenticationStr;
using (WebClient client = new WebClient())
{string htmlCode = client.DownloadString(chkStr);
string[] temp1 = htmlCode.Split(":");
string[] temp2 = temp1[1].Split("}");
int da = int.Parse(temp2[0]);
return da;
}Obviously the call to DownloadString throws this exception.
-
Hey there Po!
In cases like this we'd recommend double checking that your app is submitting the call correctly. If the call itself works but when the app performs it it doesn't, our first suggestion that it is an issue with the way the app is integrating. It's really difficult to troubleshoot third party app issues because you'd need to look at the code itself to diagnose the problem. You can send us the full call to [email protected] if you like and we can check on that for you, but we would not be able to troubleshoot your app itself.
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
-
Unsolved Generate an Access ID and API key
Hello, I can't generate an Access ID and API key for my account.
API | | OlegShavilov
I need a Links API and I'm ready to buy a paid subscription, but I can't do it. Link https://mza.seotoolninja.com/products/mozscape/access
Redirected to https://mza.seotoolninja.com/api/dashboard And i dont see any options for create Access ID0 -
Unsolved Api limits on free plan
Good afternoon. I tried connecting free access to api https://mza.seotoolninja.com/help/links-api/v1-archive/v1-free-api-access to retrieve DA data. After several requests to the api I got a message: "Your monthly row limit reached" Can you tell me what this error is related to? Or Moz doesn't have free api access anymore?
API | | Dima124dsfg1 -
New to the SEO world
Hello, I am new to the SEO world though I realize it's importance when trying to make your site noticed. I am working with a shopping cart (Pinnacle Cart) and It has the fields to put in the data such as the meta tags, description keywords and whatnot. My problem is that I do not know how to use MOZ to strategize what keywords to use and how to populate them to the Google search engine. That said, someone told me that Descriptions for Section pages are far more important than keywords. Can anyone help or give me some insight on how to start this process? Once I have it all running, about how long will it take to propagate through Google? Thanks!
API | | BestDressedTot0 -
Seo moz api request problem [401 error_message Your authentication failed]
Hello Team, I have moz pro account. I'm getting following error for seomoz call using your API: {"status":"401","error_message":"Your authentication failed. Check your authentication details and try again. For more information on signed authentication, see: http://apiwiki.moz.com/signed-authentication"} The link that we are using is:
API | | eBrandz
http://lsapi.seomoz.com/linkscape/url-metrics/ And following bits are requested during the call: 68719476736 34359738368 32 2048 16384 The error is intermittent. It comes and goes. There were no issues with results 3 days ago. I suddenly started getting this error. Could you please investigate into it and let me know the cause of issues and its correctiveness. It will great if you can provide us a support email Id for immediate response. Thanks,0