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. Other Research Tools
    4. Link Metrics API: sort by domain authority not working?

    Link Metrics API: sort by domain authority not working?

    Other Research Tools
    6 3 419
    • 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.
    • ginzametrics
      ginzametrics last edited by

      I’m trying to make calls to the Link Metrics API (via the Linkscape gem); queries that set sorting to :page_authority work, but queries that set it to :domain_authority return

      Unrecognized API method: 'links/page_to_domain.domain_authority'

      Unrecognized API method: 'links/page_to_page.domain_authority'

      Meanwhile, Open Site Explorer happily sorts by domain authority.

      How should I query the Link Metrics API to get results sorted by domain authority?

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

        Hey there,

        Thanks for the question. The Links API's Domain Authority sort is actually working as intended. What's causing the problem is a compatibility between the 'page to xxxx' scope and the domain authority sort.
        When running page scopes you are only able to sort by page authority. 🙂
        I also noticed that that's not very well documented, so I'm going to try and put something together for everyone and put it up on the wiki at http://apiwiki.moz.com

        I hope that makes sense.
        Cheers,
        Joel.

        ginzametrics 2 Replies Last reply Reply Quote 0
        • ginzametrics
          ginzametrics @JoelDay last edited by

          Thanks for the quick answer (and it does make sense!).

          Does this mean that there’s no way to obtain, say, top ten of these results (sorted this way) via the API (other than requesting all of the results and sorting by Domain Authority on the client side)? http://www.opensiteexplorer.org/links.html?group=0&page=1&site=moz.com%2Fblog&sort=domain_authority

          To the best of my understanding, this is page_to_page sorted by Domain Authority.

          1 Reply Last reply Reply Quote 0
          • ginzametrics
            ginzametrics @JoelDay last edited by

            I assume this is also why I can’t query links/domain_to_page.domains_linking_page (nor links/domain_to_page.domains_linking_domain), but I can links/domain_to_domain.domains_linking_domain – even though both of the below seem to work:

            http://www.opensiteexplorer.org/domains.html?page=1&scope=domain_to_page&site=moz.com%2Fblog&sort=domains_linking_domain

            http://www.opensiteexplorer.org/domains.html?page=1&site=moz.com&sort=domains_linking_domain&target=domain

            I.e., there’s no way to get the former link’s results from the API?

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

              Please let me know whether I’m right in assuming there’s no way to obtain the below results via the API:

              http://www.opensiteexplorer.org/links.html?group=0&page=1&site=moz.com%2Fblog&sort=domain_authority (page to page, sort by domain authority)

              http://www.opensiteexplorer.org/domains.html?page=1&scope=domain_to_page&site=moz.com%2Fblog&sort=domains_linking_domain (domain to page, sort by domains linking domain)

              1 Reply Last reply Reply Quote 0
              • Moz.HelpTeam
                Moz.HelpTeam last edited by

                Hello,

                You're correct, currently the API does not offer this call directly.  However, we've escalated the question to our engineers who are looking at the issue now.  I expect if they do make the change they'll mention it on the devblog: devblog.moz.com

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Why are Internal, nofollowed links good for Domain Authority?
                  BottleGreenWebsites
                  BottleGreenWebsites
                  1
                  4
                  78

                • Will Removing or Disavowing Toxic Links Improve MOZ Domain Authority?
                  Kingalan1
                  Kingalan1
                  1
                  5
                  611

                • Keyword Explorer: Search by Domain Not Working?
                  jocameron
                  jocameron
                  0
                  4
                  74

                • Changed Domains and Internal Links haven't followed, Old Domain redirects to new domain
                  karlh1974
                  karlh1974
                  0
                  3
                  63

                • How long it takes DOMAIN/PAGE AUTHORITY to UPDATE?
                  KeriMorgret
                  KeriMorgret
                  2
                  2
                  1.1k

                • Moz Report: Number of Domains linking to Domain
                  crackingmedia
                  crackingmedia
                  0
                  3
                  669

                • How does an index page have a higher Authority than the root domain?
                  Dr-Pete
                  Dr-Pete
                  0
                  7
                  162

                • Competitive Domain Analysis History - Not working
                  SamWeber
                  SamWeber
                  0
                  2
                  146

                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