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 Pro
    4. How to get the total external links to a page and total external links to the domain using Mozscape API? I could not see an option in the bit flags

    How to get the total external links to a page and total external links to the domain using Mozscape API? I could not see an option in the bit flags

    Moz Pro
    7 2 1.5k
    • 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.
    • HQP
      HQP last edited by

      Hi,

      I was trying to get the data for total external links to a page and total external links to the domain using Mozscape API but I can't see a bit flag which can do that. There are bit flags for external followed links to a page and external followed links to a domain but I wanted the total external links data, is there a way to do that using Mozscape API else I would end up copying the data manually from OSE which would be cumbersome and time consuming.

      Your help is highly appreciated.

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

        Hello HQP,

        You should be able to find this information here: http://apiwiki.seomoz.org/url-metrics.

        The total juice-passing (followed) external links to a page should have a bit flag value of 32.

        The total juice-passing (followed) external links to a root domain should have a bit flag value of 128.

        You can also get the total juice-passing (internal or external) links to a page with a bit flag value of 256.

        Hope this helps!

        1 Reply Last reply Reply Quote 1
        • HQP
          HQP last edited by

          Thanks for the response George!

          I was looking at the metrics page earlier. My problem is related to the total external links to a page and total external links to a subdomain. I am able to set the bit flags and get the external followed links to a page as well as to the subdomain but I want to find out if I can get the total external links (followed + nofollowed) excluding the internal links. I was able to find the external links to a page using the formula:

          Total Link (uid  2048) - Juice Passing links (ujid 256) = NoFollowed Links

          NoFollowed Links + External Links (ueid 32) = Total external links

          But I cant do this for Total external links to the subdomain. I know its a bit complicated but I hope you got the picture

          GeorgeAndrews 1 Reply Last reply Reply Quote 0
          • GeorgeAndrews
            GeorgeAndrews @HQP last edited by

            Ah ok, do you think Links to Subdomain (bit flag value:4294967296 - Total links (including internal and nofollow links) to the subdomain of the URL) minus the Subdomain External Links (bit flag value:64 - The number of juice-passing external links to the subdomain of the URL) will give you the number of NoFollowed links?

            Edit: updated second bit flag

            1 Reply Last reply Reply Quote 1
            • HQP
              HQP last edited by

              Thanks again George!

              The formula in your response would give me external nofollowed links + internal links to the subdomain. I wanted to have Total External links (followed + nofollowed) linking to the subdomain. Though this value is visible in the comparison metrics of OSE under subdomain metrics, it does not seem to have a bit flag defined in Mozscape and I was trying to find a work around by adding/substracting the URL metrics parameters but the data seems to be insufficient to do that. Still digging in to this to find a solution else at the end I would have to manually plugin the data in excel sheets which would be a pain.

              I am using JsonpathonURL to get these metrics in excel sheet.

              GeorgeAndrews 1 Reply Last reply Reply Quote 1
              • GeorgeAndrews
                GeorgeAndrews @HQP last edited by

                Gotcha, looks like Mozscape doesn't provide "just" internal or nofollowed for a subdomain. Too bad. Perhaps someone from SEOmoz will notice this post and respond with whether or not they can provide that information via API. Otherwise, you might want to drop them a line at help@seomoz.org.

                Good luck, looks like you are working the API to the bone! 🙂

                HQP 1 Reply Last reply Reply Quote 0
                • HQP
                  HQP @GeorgeAndrews last edited by

                  Thanks for the email id! I will drop a mail.  I would update the thread as soon as I get a response. Appreciate your response :).

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • Aren't domain.com/page and domain.com/page/ the same thing?
                    G2W
                    G2W
                    0
                    8
                    171

                  • Is there any way to get Moz to generate a regular (e.g. weekly) report of new links to my domain, automatically?
                    magicrob
                    magicrob
                    0
                    2
                    98

                  • Is there a easy way to see what pages are crawled?
                    MattDG
                    MattDG
                    0
                    4
                    247

                  • Why are my external links not showing?
                    SearchAppeal
                    SearchAppeal
                    0
                    3
                    273

                  • What is more important, page authority or linking root domains?
                    DukeTanson
                    DukeTanson
                    0
                    3
                    601

                  • Find pages containing broken links.
                    Cyrus-Shepard
                    Cyrus-Shepard
                    0
                    5
                    752

                  • Domain vs Page
                    DanSpeicher
                    DanSpeicher
                    0
                    3
                    677

                  • We're having trouble getting Page Authority data via the API...
                    KeriMorgret
                    KeriMorgret
                    0
                    3
                    845

                  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