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. Are EC2 servers blocked from using the Moz API?

    Are EC2 servers blocked from using the Moz API?

    API
    4 2 156
    • 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.
    • csandrew
      csandrew last edited by

      Hi

      I've created a script that I'd like to use to check a list of domains using the Moz API.

      It works totally fine on my local machine.

      However, when I run it from my EC2 instance, it fails every time. To be specific, the response is always empty (the response is an empty json array) when the request is sent from EC2.

      Is, for some reason, EC2 blocked by the Moz API?

      Many thanks for your help, Andrew

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

        Hey Andrew! Sorry you're having this issue. I tried to find your API key using this account that you posted from, but it doesn't look like it has an API key associated with it. Are you using the API key from a different account? Let me know and I'll be able to see if it's specific to your account. If you can post the code that you're using (you can remove the account-specific details), that might help us, too. Thanks!

        csandrew 1 Reply Last reply Reply Quote 1
        • csandrew
          csandrew @AaronWheeler last edited by

          Thanks Aaron, there was a simple error in the code that got discovered (and yep, you're right, I was using old API keys as well).

          All good now, but thanks for the reply.

          AaronWheeler 1 Reply Last reply Reply Quote 0
          • AaronWheeler
            AaronWheeler @csandrew last edited by

            Sure thing! Good to hear. Good luck!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • How to cost is calculated in Moz API for fetching only backlinks
              0
              1
              93

            • Moz Api Integration with Google Data Studio
              dave.kudera
              dave.kudera
              1
              2
              2.5k

            • 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

            • Does anyone have an example of using the Moz API with curl in bash?
              DavidLee
              DavidLee
              0
              6
              462

            • Use of Moz with non-latin characters
              MattRoney
              MattRoney
              0
              5
              241

            • Pulling large amounts of data from moz api
              0
              1
              132

            • Cannot get the API to work when using an EC2 server
              csandrew
              csandrew
              0
              3
              124

            • Will the MOZ API display
              SamWeber
              SamWeber
              0
              2
              86

            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