SEOmoz API - Links and Anchor Text Calls
-
Hi,
I'm testing out the SEOmoz API - however I'm stuggling to understand the use of the Cols parameter within the "anchor-text" method.
I've looped through increasing numbers of "Cols" for a standard query and there just seems to be no logical pattern.
** - Could someone please enlighten me as to how this works?**E.g. of results for query:
1Array ( [0] => Array ( [aturid] => 86128451138 ) [1] => Array ( [aturid] => 86128451144 ) [2] => Array ( [aturid] => 86128451131 ) ) 2Array ( [0] => Array ( [atut] => seomoz ) [1] => Array ( [atut] => seomoz.org ) [2] => Array ( [atut] => seo ) ) 3Array ( [0] => Array ( [aturid] => 86128451138 [atut] => seomoz ) [1] => Array ( [aturid] => 86128451144 [atut] => seomoz.org ) [2] => Array ( [aturid] => 86128451131 [atut] => seo ) ) 4Array ( [0] => Array ( [atui] => 38845159274 ) [1] => Array ( [atui] => 38845159274 ) [2] => Array ( [atui] => 38845159274 ) ) 5Array ( [0] => Array ( [atui] => 38845159274 [aturid] => 86128451138 ) [1] => Array ( [atui] => 38845159274 [aturid] => 86128451144 ) [2] => Array ( [atui] => 38845159274 [aturid] => 86128451131 ) ) 6Array ( [0] => Array ( [atui] => 38845159274 [atut] => seomoz ) [1] => Array ( [atui] => 38845159274 [atut] => seomoz.org ) [2] => Array ( [atui] => 38845159274 [atut] => seo ) ) 7Array ( [0] => Array ( [atui] => 38845159274 [aturid] => 86128451138 [atut] => seomoz ) [1] => Array ( [atui] => 38845159274 [aturid] => 86128451144 [atut] => seomoz.org ) [2] => Array ( [atui] => 38845159274 [aturid] => 86128451131 [atut] => seo ) ) 8Array ( [0] => Array ( [atuiu] => 1 ) [1] => Array ( [atuiu] => 1 ) [2] => Array ( [atuiu] => 0 ) ) 9Array ( [0] => Array ( [atuiu] => 1 [aturid] => 86128451138 ) [1] => Array ( [atuiu] => 1 [aturid] => 86128451144 ) [2] => Array ( [atuiu] => 0 [aturid] => 86128451131 ) ) 10Array ( [0] => Array ( [atuiu] => 1 [atut] => seomoz ) [1] => Array ( [atuiu] => 1 [atut] => seomoz.org ) [2] => Array ( [atuiu] => 0 [atut] => seo ) )
Links API:
Similar confusion here for:
"TargetCols"
"SourceCols"
"LinkCols"The description here http://apiwiki.seomoz.org/w/page/13991141/Links API - is a bit vague
It appears that the links API spits out everything anyway - that one's less of an issue.
So... could anyone explain how the Anchor-text API parameter Cols works??
Cheers!
-
That's brilliant Casey - that's exactly what I was looking for!
Basicly Cols = bitflag
So to dump all data for anchor-text Cols=2042
Thanks!
-
The Cols parameter works just like it does in the Links API. For example:
http://apiwiki.seomoz.org/w/page/13991127/Anchor Text API
If you want to display term or phrase, which has a bit flag of 2 and internal pages linking which has a bit flag of 8, your Cols Parameter would be 10. That would return both the term or phrase and internal pages linking. You simpily add the bit flags and use that as your Cols Parameter.
This makes it so you don't have to loop through and make a bunch of call to get multiple columns.
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
-
Followerwonk API (401 Unauthorized)
I am trying to use the Followerwonk api and I have changed the C# code from the MozscapeAPI code here for it to work as it uses the same encryption etc. https://github.com/QueryClick/MozscapeAPI The problem I am having is that I generate the correct link but I still get back 401 Unauthorized from Followerwonk it works fine on Mozscape API. https://api.followerwonk.com/social-authority/?screen_name=maximillion195;AccessID=member-NWQyZTI1M2EtMWUyZC01NDJhLThmZW;Timestamp=1368030369;Signature=PxK24AP7cgXMMVhzrU8NSRtSI%3D (I have changed the member ID and Signature) The Link looks right and it defiantly hashes it correctly and the timestamp is set for 20 minutes in the future, Can anyone explain why this is not working. Thanks
Moz Pro | | intSchools0 -
Bug with seomoz level display?
Is anyone else seeing people's moz levels shown incorrectly? Spotted this yesterday, but I am getting the same today. Lots of people showing as Aspirant who shouldn't be.
Moz Pro | | matbennett1 -
Dead links-urls
What is the quickest way to get Google to clean up dead
Moz Pro | | 1step2heaven
link? I have 74,000 dead links reported back, i have added a robot txt to
disallow and added on Google list remove from my webmaster tool 4 months ago.
The same dead links also show on the open site explores. Thanks0 -
SEOmoz Crawl CSV in Excel: already split by semicolon. Is this Excel's fault or SEOmoz's?
If for example a page title contains a ë the .csv created by the SEOmoz Crawl Test is already split into columns on that point, even though I haven't used Excel's text to columns yet. When I try to do the latter, Excel warns me that I'm overwriting non-empty cells, which of course is something I would rather not do since that would make me lose valuable data. My question is: is this something caused by opening the .csv in Excel, or earlier in the process when this .csv is created?
Moz Pro | | DeptAgency2 -
SEOmoz keyword rankings in campaign report
Hi. Does anybody know where the rankings summary has moved to in the campaign reports? I want to know how many keywords have moved up or down in the last week and can't find it anywhere!
Moz Pro | | neooptic1 -
0 values reported in anchor text distribution report
Can anyone explain the rows of 0 values for the majoity of anchor text reported in the Anchor Text Distribution section of OSE ? e.g I ran a report for a website which has around 2,500 inbound links and when I looked at the CSV file, there are about 1,500 anchor texts showing as 0. I'm sure there's either a simple explanation for this or its just a glitch. Can anyone help?
Moz Pro | | Websensejim0 -
What SeoMoz tools should I use to track the sucess of my SEO efforts and find possible linking partners?
HI All, I am a new user to SEO moz pro and I have a few questions I hope you can help me with. We are adding a new product category to an existing site and I am wondering what tools to use to track our SEO efforts to build ranking for these new products. I have already started a campaign that tracks the ranking of our primary keywords but I am wondering if there are other tools I should be using as well. Currently our SEO strategy is centered around link building. I have been approaching sites that have content related to our products and offering to write articles, guest blogs, and create educational resources that benefit the sites users and have specific anchor text linking back to our site. Since we are trying to build rank for a new category of products should I be linking to the general product category page or should I try to link to sub categories or individual products? Also I have used the juicy link finder to help me identify related sites that I can approach but I haven't received very many good leads. Is there a more specific way to use the tool or another tool that I should try? If you have any suggestions about other SEO strategies/activities that we should be pursuing please share your ideas! Thanks!
Moz Pro | | AndrewY0 -
SEOmoz toolbar log in chrome wonky!
In Chrome, I'll start off not logged in to the toolbar. I'll click log in which forwards me to the SEOmoz login page. I'll login. Sometimes the toolbar will reflect this login and the metrics will poplulate in the PA and DA, other times it won't. If I navigate to another page within the same tab, it may show metrics still, but it is also just as likely to show that I'm not logged in. If I open a new tab, the toolbar will show that I'm not logged in. I click the log in again but when directed to SEOmoz, it'll show that I'm already logged in. I haven't been able to pinpoint exactly when it'll work and when it won't. Seems a bit random, so am wondering if anyone else has experienced this issue and has been able to solve this logged in / not logged in problem. As a note, anytime I navigate back to the SEOmoz site, whether by opening a new tab or a new window, the SEOmoz site does show I'm logged in, while the toolbar shows I'm not. You can see a demonstration of the simultaneous logged in SEOmoz site and logged out SEOmoz toolbar in the attached screen shot. UPDATE Also having similar issues in firefox. Am wondering if this has anything to do with the fact that I changed my email address within the past few weeks. KQXxN.gif
Moz Pro | | gregalam0