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
-
Why is Link Count smaller than Internal Links in Crawl Test report?
We recently ran the crawl test report and for most of our pages we are getting 1150 internal links but 40-50 as the link count. Why is there such a big disparity?
Moz Pro | | usdmseo0 -
Finding affiliate links with opensiteexplorer
Hey guys, I'm trying to develop lists of our competitors affiliates using opensiteexplorer using the following method When logged in to seomoz, go to http://www.opensiteexplorer.org/ Search for<rival company="" domain=""></rival> Select Show ALL links from ALL pages to PAGES ON THIS ROOT DOMAIN and SHOW LINKS UNGROUPED Click 'Filter' Click_ 'Download csv'_ Open the csv in excel and filter the Target URL column for any known part of the affiliate link (example ?a_aid) - this leaves you with a list of the affiliate links Filter out duplicates Is this the best process? I have a feeling I'm missing some as OSE truncates to 25 links per domain. It would be nice also if OSE could do the filtering for me. Any better ways to do this?
Moz Pro | | pilkster2 -
Drop in Number of Crawled pages by SEOMOZ?
I noticed that the number of Crawled Pages on my website has been 2 pages only over past week. Before that the number of crawled pages was over 1000. My site has numerous pages as it is a Travel website that pulls search results for Flights, Cars, Hotels, Cruises and Vacation packages so there is a huge Database there. Can someone help? Thanks !
Moz Pro | | sherohass0 -
MozRank per Link: Valuable or Worthless?
Since the MozRank and MozTrust metrics are on a logarithmic scale, I'm wondering if it's still valuable to get a general idea of the quality of a site's link profile by calculating: MozRank / Total Links MozTrust / Total Links Would this be useful, or is it always going to be higher for sites with lower MozRank & MozTrust since it's "easier" to achieve the lower values?
Moz Pro | | conquerapathy-644120 -
SEOMoz Crawler and rel_canonical_tag Errors
This tag is showing up on category pages (that do not have a duplicate page on the site). In mid November Google cut our traffic by 30%. Could this tag be confusing the spider? According to the moz crawler - we seemed to be dinged for this on 95% of our pages. Is this hurting us? It seems to direct back to the same page.EG: From the FMI3600 Page http://www.brick-anew.com/FMI-3600-Fireplace-Doors.html: http://www.brick-anew.com/FMI-3600-Fireplace-Doors.html"> There is only one page for the FMI 3600 Fireplace Door category - however, it does have the same products on it as other FP Door Category pages,
Moz Pro | | SammyT0 -
Opensiteexplorer hangs at 1051 links...
...and won't complete the download. I have been extremely patient, but it's stuck there no matter how many times I try or long I wait. Ideas?
Moz Pro | | rtora0 -
What Anchor text is being used by my competitors and how many times?
Is it possible to check out my competitors and see how many times there back link is using the anchor text "buy widgets here" for example?
Moz Pro | | dynamic080 -
New To SEOMOZ, 2 Questions...
Hi, 1. I got signed up with SEOMOZ yesterday and would like to know about the competitive analysis tool. I saw in a demo video of SEOMOZ that there was an aspect of Social links (Facebook etc) included in the analysis, I can't see this in my analysis however. 2. Is it possible to change websites over time? Let say in a few months I want to work on a new website, can I remove one of my 5 and add a new one? Thanks! James
Moz Pro | | James10