---
title: "Discussion on \"Understanding the Code: Making an API Call with XMLHttpRequest\" | Hashnode"
description: "Discussion on \"Understanding the Code: Making an API Call with XMLHttpRequest\". This blog post will walk you through an example of how to make an API call using JavaScript’s XMLHttpRequest (XHR) object and track its different states.\nWhat is XMLHttpRequest?\nThe XMLHttpRequest object is a built-in JavaScript object used to send a..."
url: "https://hashnode.com/posts/understanding-the-code-making-an-api-call-with-xmlhttprequest/6772a86b690c7a19d32d16bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding the Code: Making an API Call with XMLHttpRequest](https://smd.dev/understanding-the-code-making-an-api-call-with-xmlhttprequest?utm_source=hashnode&utm_medium=feed)

This blog post will walk you through an example of how to make an API call using JavaScript’s XMLHttpRequest (XHR) object and track its different states. What is XMLHttpRequest? The XMLHttpRequest object is a built-in JavaScript object used to send a...

Dec 30, 2024 · 5 min read · smd.dev  
Updated May 28, 2025  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[SMD OWAIS](https://hashnode.com/@SMD99)

@SMD99

  
[View profile](https://hashnode.com/@SMD99)

Life is enjoy

just learning the tech and speak it out

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
