Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      Save big on Moz Pro!
      Limited time offer

      Save big on Moz Pro!

      See pricing
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      Access the Moz API for less
      Save on Moz Data

      Access the Moz API for less

      Hurry - ends Dec 6th!
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Save 20% on all Moz Academy courses
      Limited time offer

      Save 20% on all Moz Academy courses

      Level up your SEO
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Explore Moz updates & save up to 40%
      Big Savings!

      Explore Moz updates & save up to 40%

      See the latest
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. Home
    2. Moz Tools
    3. API
    4. Are EC2 servers blocked from using the Moz API?

    Are EC2 servers blocked from using the Moz API?

    API
    2
    4
    1336
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question 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 @csandrew last edited by

        Sure thing! Good to hear. Good luck!

        1 Reply Last reply Reply Quote 0
        • 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 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
            • 1 / 1
            • First post
              Last post

            Got a burning SEO question?

            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


            Start my free trial


            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.

            • See all categories

            Related Questions

            • Feipo

              I can not get the results from API now.

              Dear master,
              I can not get the results from API now. And also yesterday. My id is 1393657@qq.com.

              API | | Feipo
              2
            • verdet3232

              API url_metrics Error deserializing POST body

              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

              API | | verdet3232
              1
            • OlegKireyenka

              API for discovered and lost linking domains

              Hello, Currently you do not have discovered and lost metrics available via the Links API, maybe there are some workaround to get this metrics? For us, it is very important to use API,  or calculate it some mathematics way. Thank!

              API | | OlegKireyenka
              0
            • thomas.deruiter

              MOZ API - Search Visibility

              Hello there, We are looking to see if we can recreate the Search Visibility report through the API. We are wondering which API parameters and metrics we should use to recreate the report? Also, we want to distinguish between traffic coming from desktops and mobile traffic. Is this possible with the API? Which type of account do we need to use for these functionalities: the free account or paid account? We are currently using a free account. Also: we are wondering if can access historical data with the API? For instance: we want to determine the domain authority from October 2016 off on. Is this possible? Thanks in advance! Kind regards, Bart Minten

              API | | thomas.deruiter
              0
            • SlemmaDev

              Paid access to the API

              Hi!
              We paid for the trial period, but we don't have access to the API (Anchor-Text Metrics, and to the other paid URL Metrics). Why? Thanks!

              API | | SlemmaDev
              0
            • Luis-Pereira

              Moz Crawl: Can't check page optimization error https

              Help needed, when I try to do a page optimization check i get the following error : The URL you entered does not appear to be returning a page successfully. Please make sure that you've entered the URL of valid, working page. But i can do a site crawl, what should be the problem? Checked with frog seo spider and add no problem, robots.txt its also clean. Anyone knows what can be wrong? Thanks

              API | | Luis-Pereira
              0
            • Porch

              Does any one know if there is a tool out there built with the Moz API where you can feed in a large list of URLs and get back Domain Authority?

              Does any one know if there is a tool out there built with the Moz API where you can feed in a large list of URLs and get back Domain Authority? Has anyone used the API for something like this before? Thanks! Max

              API | | Porch
              0
            • agirlcreative

              Moz Local, only did 3 listings...

              I used Moz local and it only successfully created 3 listings.. the rest all require I manually add the information. Seems like a steep price for 3 listings. I was under the impression it would do more than that. And on top of that, it created a google+ page and I already have one which now I cannot find a way to update. Same for facebook. I have a page, I even had it in the CSV file, but it didn't load it. Some help would be appreciated.

              API | | agirlcreative
              0
            Moz logo
            • Contact
            • Community
            • Free Trial
            • Terms & Privacy
            • Accessibility
            • Jobs
            • Help
            • What's New
            • News & Press
            • MozCon
            © 2021 - 2024 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.

            Looks like your connection to Moz was lost, please wait while we try to reconnect.