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. API
    4. API url_metrics Error deserializing POST body

    API url_metrics Error deserializing POST body

    API
    2 2 220
    • 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.
    • verdet3232
      verdet3232 last edited by

      Getting error in https://lsapi.seomoz.com/v2/url_metrics API

      I'm using Basic Auth for authentication.

      {    "name": "Bad Request",    "message": "Error deserializing POST body"}

      CVW2T4f

      1 Reply Last reply Reply Quote 0
      • Natalie-Alexis
        Natalie-Alexis last edited by

        Hi - thanks for reaching out to us.

        In Postman, if you click on raw instead of form-data in Body, you can get results using the syntax found here: https://moz.com/help/links-api/making-calls/url-metrics. In your example, you could write:

        {

        "targets":["facebook.com"]

        }

        This should successfully return results for you. If you continue to run into issues, I would suggest reaching out to support at help@moz.com.

        thanks!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Crawl error HELP!
          Vijay-Gaur
          Vijay-Gaur
          2
          3
          46

        • Do you fetch website titles from paid api https://moz.com/help/guides/moz-api/mozscape/api-reference/url-metrics?
          dave.kudera
          dave.kudera
          0
          4
          98

        • Sample API call error
          Sreenivas.Bathula
          Sreenivas.Bathula
          0
          5
          478

        • Error Code 803
          Lowaire
          Lowaire
          0
          3
          463

        • Connect to API
          Mr.Suren
          Mr.Suren
          0
          6
          671

        • Is There any API from FourSqaure that allow us directly feeding business listings into it , Moz is doing same , so there must be some API?
          Vijay-Gaur
          Vijay-Gaur
          0
          3
          77

        • Does on-page grader have an API ?
          BlueprintMarketing
          BlueprintMarketing
          0
          5
          864

        • About Expiry of MOZ API authentication and MOZ API call in .NET application
          DavidLee
          DavidLee
          0
          2
          677

        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