Bird

PATH: img/bird
METHOD: get
Required queries:
    Status: 200 | Response type: json
    Output:
    {
        link: "https://i.imgur.com/fClJeO6.jpg",
    }
    
    Status: 500 | Response type: json
    Output:
    {
    error: "API is starting up, please request again in a while"
    }
    
    Status: 429 | Response type: json
    Output:
    {
    "error": "Too many requests, please try again later."
    }
    
    const fetch = require('node-fetch')
    
    fetch('https://some-random-api.ml/img/bird')
    .then(res => res.json())
    .then(json => {
        console.log(json)
    });
    
    import requests
    
    def get_bird():
        #making a GET request to the endpoint.
        resp = requests.get("https://some-random-api.ml/img/bird")
        #checking if resp has a healthy status code.
        if 300 > resp.status_code >= 200:
            content = resp.json() #We have a dict now.
        else:
            content = f"Recieved a bad status code of {resp.status_code}."
        print(content)
    get_bird())
    

    Cat

    PATH: img/cat
    METHOD: get
    Required queries:
      Status: 200 | Response type: json
      Output:
      {
          link: "https://i.imgur.com/fClJeO6.jpg",
      }
      
      Status: 500 | Response type: json
      Output:
      {
      error: "API is starting up, please request again in a while"
      }
      
      Status: 429 | Response type: json
      Output:
      {
      "error": "Too many requests, please try again later."
      }
      
      const fetch = require('node-fetch')
      
      fetch('https://some-random-api.ml/img/cat')
      .then(res => res.json())
      .then(json => {
          console.log(json)
      });
      
      import requests
      
      def get_cat():
          #making a GET request to the endpoint.
          resp = requests.get("https://some-random-api.ml/img/cat")
          #checking if resp has a healthy status code.
          if 300 > resp.status_code >= 200:
              content = resp.json() #We have a dict now.
          else:
              content = f"Recieved a bad status code of {resp.status_code}."
          print(content)
      get_cat())
      

      dog

      PATH: img/dog
      METHOD: get
      Required queries:
        Status: 200 | Response type: json
        Output:
        {
            link: "https://i.imgur.com/fClJeO6.jpg",
        }
        
        Status: 500 | Response type: json
        Output:
        {
        error: "API is starting up, please request again in a while"
        }
        
        Status: 429 | Response type: json
        Output:
        {
        "error": "Too many requests, please try again later."
        }
        
        const fetch = require('node-fetch')
        
        fetch('https://some-random-api.ml/img/dog')
        .then(res => res.json())
        .then(json => {
            console.log(json)
        });
        
        import requests
        
        def get_dog():
            #making a GET request to the endpoint.
            resp = requests.get("https://some-random-api.ml/img/dog")
            #checking if resp has a healthy status code.
            if 300 > resp.status_code >= 200:
                content = resp.json() #We have a dict now.
            else:
                content = f"Recieved a bad status code of {resp.status_code}."
            print(content)
        get_dog())
        

        fox

        PATH: img/fox
        METHOD: get
        Required queries:
          Status: 200 | Response type: json
          Output:
          {
              link: "https://i.imgur.com/fClJeO6.jpg",
          }
          
          Status: 500 | Response type: json
          Output:
          {
          error: "API is starting up, please request again in a while"
          }
          
          Status: 429 | Response type: json
          Output:
          {
          "error": "Too many requests, please try again later."
          }
          
          const fetch = require('node-fetch')
          
          fetch('https://some-random-api.ml/img/fox')
          .then(res => res.json())
          .then(json => {
              console.log(json)
          });
          
          import requests
          
          def get_fox():
              #making a GET request to the endpoint.
              resp = requests.get("https://some-random-api.ml/img/fox")
              #checking if resp has a healthy status code.
              if 300 > resp.status_code >= 200:
                  content = resp.json() #We have a dict now.
              else:
                  content = f"Recieved a bad status code of {resp.status_code}."
              print(content)
          get_fox())
          

          kangaroo

          PATH: img/kangaroo
          METHOD: get
          Required queries:
            Status: 200 | Response type: json
            Output:
            {
                link: "https://i.imgur.com/fClJeO6.jpg",
            }
            
            Status: 500 | Response type: json
            Output:
            {
            error: "API is starting up, please request again in a while"
            }
            
            Status: 429 | Response type: json
            Output:
            {
            "error": "Too many requests, please try again later."
            }
            
            const fetch = require('node-fetch')
            
            fetch('https://some-random-api.ml/img/kangaroo')
            .then(res => res.json())
            .then(json => {
                console.log(json)
            });
            
            import requests
            
            def fetch():
                #making a GET request to the endpoint.
                resp = requests.get("https://some-random-api.ml/img/kangaroo")
                #checking if resp has a healthy status code.
                if 300 > resp.status_code >= 200:
                    content = resp.json() #We have a dict now.
                else:
                    content = f"Recieved a bad status code of {resp.status_code}."
                print(content)
            fetch())
            

            koala

            PATH: img/koala
            METHOD: get
            Required queries:
              Status: 200 | Response type: json
              Output:
              {
                  link: "https://i.imgur.com/fClJeO6.jpg",
              }
              
              Status: 500 | Response type: json
              Output:
              {
              error: "API is starting up, please request again in a while"
              }
              
              Status: 429 | Response type: json
              Output:
              {
              "error": "Too many requests, please try again later."
              }
              
              const fetch = require('node-fetch')
              
              fetch('https://some-random-api.ml/img/koala')
              .then(res => res.json())
              .then(json => {
                  console.log(json)
              });
              
              import requests
              
              def get_koala():
                  #making a GET request to the endpoint.
                  resp = requests.get("https://some-random-api.ml/img/koala")
                  #checking if resp has a healthy status code.
                  if 300 > resp.status_code >= 200:
                      content = resp.json() #We have a dict now.
                  else:
                      content = f"Recieved a bad status code of {resp.status_code}."
                  print(content)
              get_koala())
              

              panda

              PATH: img/panda
              METHOD: get
              Required queries:
                Status: 200 | Response type: json
                Output:
                {
                    link: "https://i.imgur.com/fClJeO6.jpg",
                }
                
                Status: 500 | Response type: json
                Output:
                {
                error: "API is starting up, please request again in a while"
                }
                
                Status: 429 | Response type: json
                Output:
                {
                "error": "Too many requests, please try again later."
                }
                
                const fetch = require('node-fetch')
                
                fetch('https://some-random-api.ml/img/panda')
                .then(res => res.json())
                .then(json => {
                    console.log(json)
                });
                
                import requests
                
                def get_panda():
                    #making a GET request to the endpoint.
                    resp = requests.get("https://some-random-api.ml/img/panda")
                    #checking if resp has a healthy status code.
                    if 300 > resp.status_code >= 200:
                        content = resp.json() #We have a dict now.
                    else:
                        content = f"Recieved a bad status code of {resp.status_code}."
                    print(content)
                get_panda())
                

                pikachu

                PATH: img/pikachu
                METHOD: get
                Required queries:
                  Status: 200 | Response type: json
                  Output:
                  {
                      link: "https://i.imgur.com/fClJeO6.jpg",
                  }
                  
                  Status: 500 | Response type: json
                  Output:
                  {
                  error: "API is starting up, please request again in a while"
                  }
                  
                  Status: 429 | Response type: json
                  Output:
                  {
                  "error": "Too many requests, please try again later."
                  }
                  
                  const fetch = require('node-fetch')
                  
                  fetch('https://some-random-api.ml/img/pikachu')
                  .then(res => res.json())
                  .then(json => {
                      console.log(json)
                  });
                  
                  import requests
                  
                  def fetch():
                      #making a GET request to the endpoint.
                      resp = requests.get("https://some-random-api.ml/img/pikachu")
                      #checking if resp has a healthy status code.
                      if 300 > resp.status_code >= 200:
                          content = resp.json() #We have a dict now.
                      else:
                          content = f"Recieved a bad status code of {resp.status_code}."
                      print(content)
                  fetch())
                  

                  raccoon

                  PATH: img/raccoon
                  METHOD: get
                  Required queries:
                    Status: 200 | Response type: json
                    Output:
                    {
                        link: "https://i.imgur.com/fClJeO6.jpg",
                    }
                    
                    Status: 500 | Response type: json
                    Output:
                    {
                    error: "API is starting up, please request again in a while"
                    }
                    
                    Status: 429 | Response type: json
                    Output:
                    {
                    "error": "Too many requests, please try again later."
                    }
                    
                    const fetch = require('node-fetch')
                    
                    fetch('https://some-random-api.ml/img/raccoon')
                    .then(res => res.json())
                    .then(json => {
                        console.log(json)
                    });
                    
                    import requests
                    
                    def fetch():
                        #making a GET request to the endpoint.
                        resp = requests.get("https://some-random-api.ml/img/raccoon")
                        #checking if resp has a healthy status code.
                        if 300 > resp.status_code >= 200:
                            content = resp.json() #We have a dict now.
                        else:
                            content = f"Recieved a bad status code of {resp.status_code}."
                        print(content)
                    fetch())
                    

                    Red panda

                    PATH: img/red_panda
                    METHOD: get
                    Required queries:
                      Status: 200 | Response type: json
                      Output:
                      {
                          link: "https://i.imgur.com/fClJeO6.jpg",
                      }
                      
                      Status: 500 | Response type: json
                      Output:
                      {
                      error: "API is starting up, please request again in a while"
                      }
                      
                      Status: 429 | Response type: json
                      Output:
                      {
                      "error": "Too many requests, please try again later."
                      }
                      
                      const fetch = require('node-fetch')
                      
                      fetch('https://some-random-api.ml/img/red_panda')
                      .then(res => res.json())
                      .then(json => {
                          console.log(json)
                      });
                      
                      import requests
                      
                      def get_red_panda():
                          #making a GET request to the endpoint.
                          resp = requests.get("https://some-random-api.ml/img/red_panda")
                          #checking if resp has a healthy status code.
                          if 300 > resp.status_code >= 200:
                              content = resp.json() #We have a dict now.
                          else:
                              content = f"Recieved a bad status code of {resp.status_code}."
                          print(content)
                      get_red_panda())
                      

                      whale

                      PATH: img/whale
                      METHOD: get
                      Required queries:
                        Status: 200 | Response type: json
                        Output:
                        {
                            link: "https://i.imgur.com/fClJeO6.jpg",
                        }
                        
                        Status: 500 | Response type: json
                        Output:
                        {
                        error: "API is starting up, please request again in a while"
                        }
                        
                        Status: 429 | Response type: json
                        Output:
                        {
                        "error": "Too many requests, please try again later."
                        }
                        
                        const fetch = require('node-fetch')
                        
                        fetch('https://some-random-api.ml/img/whale')
                        .then(res => res.json())
                        .then(json => {
                            console.log(json)
                        });
                        
                        import requests
                        
                        def fetch():
                            #making a GET request to the endpoint.
                            resp = requests.get("https://some-random-api.ml/img/whale")
                            #checking if resp has a healthy status code.
                            if 300 > resp.status_code >= 200:
                                content = resp.json() #We have a dict now.
                            else:
                                content = f"Recieved a bad status code of {resp.status_code}."
                            print(content)
                        fetch())