just remove s from https

URL url = new URL("http://jsonmock.hackerrank.com/api/article_users?page=1");

Answer from abhinavsinghvirsen on Stack Overflow
🌐
GitHub
github.com › devreena03 › hackerrank-restapi-java
GitHub - devreena03/hackerrank-restapi-java: Hackerrank REST API certification problem solved in java · GitHub
Hackerrank REST API certification problem solved in java - devreena03/hackerrank-restapi-java
Starred by 19 users
Forked by 12 users
Languages   Java
Discussions

HackerRank Solving rest APIs with Algos
A message I wrote to someone who came across this post asking for help. I hope this is useful for anyone else who comes across this: I am so sorry I was not able to reply in a timely manner. I am hardly on here. If this is still relevant to you, I would recommend studying for and getting this certificate. It's pretty easy and entails that you know how to consume an API and parse it and use its data. There are free intermediate and advanced certificates from Hackerrank. It doesn't really mean anything as far as the industry is concerned but preparing for it will help prepare you for future REST API Hackerranks and it's a nice little filler certificate to put on LinkedIn. https://www.hackerrank.com/skills-directory/rest_api_intermediate This is a video I used to help prepare. https://newsapi.org/ In general, I'd recommend finding an open API and play around with it using your language of choice. Off the top of my head, https://newsapi.org/ is a free one you can use. I hope this helps. More on reddit.com
🌐 r/csMajors
2
3
March 9, 2022
HackerRank Solving rest APIs with Algos
How do you "solve" a REST API? That doesn't make sense. More on reddit.com
🌐 r/cscareerquestions
3
0
March 9, 2022
What Library to use for HackerRank Rest API Skills Challenge?
Update (in case anyone else has the question): environment details and list of dependencies on the class path. More on reddit.com
🌐 r/cscareerquestions
3
3
October 21, 2020
How to prepare for the api hackerranks like Stripe, HubSpot that test your webdev knowledge?
You can't learn webdev in a few days. More on reddit.com
🌐 r/csMajors
12
9
August 19, 2020
🌐
GitHub
github.com › Akil-Parker › rest-api-hackerrank-java
GitHub - Akil-Parker/rest-api-hackerrank-java · GitHub
Contribute to Akil-Parker/rest-api-hackerrank-java development by creating an account on GitHub.
Forked by 4 users
Languages   Java
🌐
HackerRank
hackerrank.com › work › apidocs
HackerRank for Work API
The HackerRank for Work API is organized around REST. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients.
🌐
YouTube
youtube.com › lahouari bendriss
HackerRank Skills Certification | Rest API (Intermediate) Certificate Test | Java 8 Solution - YouTube
The Rest API (Intermediate) Certification Test that I have taken on this video covers topics like getting data from an API and process using parameters or pa...
Published   October 13, 2020
Views   35K
🌐
GitHub
github.com › kaarthikraajan › rest-api-hackerrank
GitHub - kaarthikraajan/rest-api-hackerrank: This is a solution to the problem presented in the hackerrank problem.
kaarthikraajan / rest-api-hackerrank Public · Notifications · You must be signed in to change notification settings · Fork 2 · Star 6 · This is a solution to the problem presented in the hackerrank problem. 6 stars 2 forks Branches Tags Activity · Star · Notifications ·
Starred by 6 users
Forked by 2 users
Languages   Java 100.0% | Java 100.0%
Find elsewhere
🌐
GitHub
github.com › TarasAntoniuk › hackerrank-prep-rest-api
GitHub - TarasAntoniuk/hackerrank-prep-rest-api: HackerRank problem solving for REST API certification · GitHub
This repository contains solutions to multiple tasks from the HackerRank REST API Certification (Intermediate Level). All tasks are implemented in Java 21 using Spring Boot within a single package, each task exposed via a different REST endpoint.
Author   TarasAntoniuk
🌐
HackerRank
hackerrank.com › skills-verification › rest_api_intermediate
Rest API Intermediate Certificate
Proficiency in MySQL, a critical aspect of database management, is evaluated through database design, SQL queries, normalization, and optimization techniques. Additionally, expertise in REST APIs, vital for modern web applications, is assessed in terms of RESTful principles, HTTP methods, authentication, and API design best practices.
Top answer
1 of 2
6
import requestsimport localedef maximumTransfer(name, city):    # Initialize variables to store the maximum credit and debit amounts    max_credit = 0.0    max_debit = 0.0    # Initialize the page number to 1 and the base API URL    page = 1    base_url = 'https://jsonmock.hackerrank.com/api/transactions'    while True:        # Make the API request with the current page number        response = requests.get(f'{base_url}?page={page}')        data = response.json()        # Iterate through the transaction records in the data        for record in data['data']:            # Filter records based on the given name and city            if record['userName'] == name and record['location']['city'] == city:                amount = float(record['amount'].replace('$', '').replace(',', ''))                # Update the maximum credit and debit amounts if applicable                if record['txnType'] == 'credit':                    max_credit = max(max_credit, amount)                elif record['txnType'] == 'debit':                    max_debit = max(max_debit, amount)        # Check if there are more pages to retrieve        if page < data['total_pages']:            page += 1        else:            # If there are no more pages, break out of the loop            break    # Set the locale to en_US to format numbers as dollars    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')    # Format the results as strings in dollar format    credit_amount_str = locale.currency(max_credit, grouping=True)    debit_amount_str = locale.currency(max_debit, grouping=True)    # Return the results as a list of strings    return [credit_amount_str, debit_amount_str]Explanation:
2 of 2
0
Explanation:koi answer bta do
🌐
LeetCode
leetcode.com › discuss › interview-question › 4202066 › Twilio-or-Hackerrank-Rest-API-or-Java
Twilio | Hackerrank Rest API | Java - Discuss - LeetCode
October 23, 2023 - Invoke Rest API with paginated response & calculate average pulse for given doctor.id, diagnosis.name from response. import java.io.*; import java.util.*; import java.util.stream.*; // Copy-Paste these 3 imports import com.google.gson.*; import java.net.*; import javax.net.ssl.*; public class Driver { public static void main(String[] args) { System.out.println(Result.invoke(2, "Pulmonary embolism")); } } class Result { class Data { Diagnosis diagnosis; Doctor doctor; Vitals vitals; } class Doctor { int id; } class Vitals { int pulse; } class Diagnosis { String name; } // create a class to dese
🌐
ProgrammableWeb
programmableweb.com › api › hackerrank-rest-api
HackerRank REST API | ProgrammableWeb
August 17, 2015 - The HackerRank API can be used to create programming competitions, use a personalized scoring system, and give awards to winners. Available in JSON format with an API Key, HackerRank provides a programming test platform and scoring system for ...
🌐
GitHub
gist.github.com › vinayvp › 32c765190350aa7e21088719a1aec919
Hackerrank Problem:- REST API : Capital City · GitHub
Given a country name, query the REST API at https://jsonmock.hackerrank.com/api/countries? name=country and return the capital city's name. The response is a JSON object with 5 fields.
🌐
Gitbook
dailyjournal.gitbook.io › solutions › hackerrank-solutions › certify › rest-api-intermediate
Rest API (Intermediate) | HackerRank | Solutions
In this challenge, the REST API contains information about football matches. The provided API allows querying matches by teams and year. The task is to get the number of matches for a given year that ended in a draw. A match is drawn when both teams scored the same number of goals. To access a collection of matches played in a given year, perform an HTTP GET request to https://jsonmock.hackerrank.com/api/football_matches?year=<year>&page=<page> where <year> is the year of the competition and <page> is the page of the results to request.
🌐
GitHub
github.com › thiaguimcavalcanti › hacker-rank-restapi-with-spring-boot
GitHub - thiaguimcavalcanti/hacker-rank-restapi-with-spring-boot: Sample of application that expose REST APIs using Spring Boot and other frameworks :) · GitHub
Sample of application that expose REST APIs using Spring Boot and other frameworks :) - thiaguimcavalcanti/hacker-rank-restapi-with-spring-boot
Starred by 16 users
Forked by 18 users
Languages   Java
🌐
Reddit
reddit.com › r/csmajors › hackerrank solving rest apis with algos
r/csMajors on Reddit: HackerRank Solving rest APIs with Algos
March 9, 2022 -

Hey ya'll,

I just received an OA for an internship and I will be tested on the following.

  • Coding - You can use whichever programming language you'd like!

  • Databases - You'll use database queries and SQL for this one. 

  • Rest API's - You'll be solving Rest API's using algos!

I more or less understand what's expected of me from the coding and database section. I'm not sure what to expect from the Rest API section. When I go to the HackerRank website I don't see any practice tests or resources for this topic. This is something I have minimal experience with and I'm not sure how to practice. Any resources or insights would be greatly appreciated. Thank you!

🌐
HackerRank
hackerrank.com › skills-directory › rest_api_intermediate
REST API (Intermediate) | Skills Directory | HackerRank
A RESTful API makes it possible for remote execution of an application's capabilities by supporting standard HTTP methods, error handling, and other RESTful mechanisms.
🌐
HackerRank
hackerrank.com › skills-directory › rest_api_advanced
REST API (Advanced) | Skills Directory | HackerRank
Build a REST API Service - Using any framework of choice, the ability to build a complete backend REST API Service.
🌐
GitHub
gist.github.com › anubhavbagri › 6329afd4c9ad994a8c4674e38fbc2e34
rest-api-hackerrank.md · GitHub
March 28, 2026 - Solution: https://github.com/Akil-Parker/rest-api-hackerrank-java · Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment ·