Learn HTTP and APIs Free: Status Codes, REST, CORS, Auth and API Security (English and Arabic)
NeedMyTools Academy
Start free: sign in first
One free account opens every full lesson, the graded tests, your progress on any device and a certificate of completion. Sign in with an email code or Google in under a minute.
- Full lessons and exercises
- Graded tests that unlock the next lesson
- Certificate with a QR code anyone can verify
Free forever. No card, no paywall.
Already signed in? The same button opens your panel.
Just looking? Each lesson shows a short preview without an account.
Every page you open, every app that loads your bank balance and every payment button speaks the same language: HTTP. A client sends a request, a server sends back a response, and a few lines of text at the top of each, the status line and the headers, decide whether it worked, how long it may be cached and who is allowed to see it. An API is simply a server that answers with data, usually JSON, instead of a web page. This course teaches that layer directly, the part most tutorials skip, so that front end, back end and mobile work all make more sense. Each lesson shows real traffic recorded with curl and gives you live examples that send real requests from your browser.
Quick answer
Learn HTTP and APIs in this order: the shape of a request and a response and what status codes mean; headers, cookies and caching; REST design and JSON; CORS; authentication with sessions and tokens; GraphQL and webhooks; and API security basics. You need basic JavaScript for the live examples. All seven lessons are published, each with real curl output, examples that run in your browser, an exercise and a quiz, and the last one ends with a final project. Pass the graded tests for a free certificate.
- Level:
- Beginner, after basic JavaScript
Lessons
- 1Requests, responses and status codesRead the request line, status line, headers and body of a real exchange · Pick the right method for reading, creating, updating and deleting · Explain the five status code families and the common codes in each · Tell an HTTP error from a network error in fetch35 min
- 2Headers, cookies and cachingSend and read request and response headers with curl and fetch · Read Cache-Control and use ETag for a 304 Not Modified response · Explain how Set-Cookie and Cookie work and set safe cookie flags40 min
- 3REST design and JSONDesign resource URLs and map actions to methods and status codes · Use query strings for filtering and pagination, and nested URLs for relations · Send and receive JSON correctly and avoid its data traps40 min
- 4CORS explainedExplain what an origin is and what exactly CORS blocks · Recognise when a request needs a preflight and read the preflight answer · Fix CORS errors on the server, including exposed headers and credentials35 min
- 5Authentication: sessions, tokens and JWTTell authentication from authorization and 401 from 403 · Send Basic and bearer credentials and choose between sessions and tokens · Read a JWT, verify its signature and avoid the common JWT mistakes40 min
- 6GraphQL and webhooksWrite GraphQL queries with variables and send them with fetch · Handle GraphQL errors and know when REST is the better fit · Receive webhooks safely: signatures, retries and duplicate events40 min
- 7API security basicsCheck access per record and avoid data exposure and mass assignment · Read security headers and display API data without XSS · Handle rate limits, retries and timeouts in a real API client45 min
NeedMyTools Academy
Sign in with a free account (email code or Google, no password) to open every lesson in full. Each lesson ends with a short test graded on our server, and the next lesson only unlocks after you pass. Pass the module tests, the final project and the final exam to get a certificate of completion with a transcript that anyone can check on this site. Without an account you can read a short preview of each lesson.
How grading works
- Each lesson: pass the exercise (checked on our server), then a 5-question test with 4 correct. The test opens after you have spent some time on the lesson.
- Three fails in a row lock that test for 30 minutes. Leaving a test unfinished counts as a fail.
- Each module ends with a 10-question test (7 to pass, 3 tries a day). The course ends with the project and a 25-question final exam (18 to pass, 3 tries a day).
- Questions are drawn at random and many have values that change for every student, so sharing answers does not help.
- The certificate says what it is: a certificate of completion for an unsupervised online assessment, not a degree or an accredited qualification.
What you will be able to do
- Read a raw HTTP request and response line by line
- Choose and interpret status codes correctly
- Use headers, cookies and caching on purpose
- Design clean REST endpoints that send and receive JSON
- Fix CORS errors and secure APIs with tokens, access checks and rate limits
Who this course is for
Front end developers who call APIs and want to understand the errors they see, back end and Node.js learners who build APIs, mobile developers, testers and anyone preparing for a junior developer interview, where HTTP questions are common. Finish the JavaScript course here first, at least up to the lesson on fetch. A laptop helps if you want to repeat the curl commands, but every live example runs on a phone.
Why learn HTTP on its own
Frameworks change every few years; HTTP has kept the same core ideas since the 1990s. When a fetch call fails, a payment page refuses to load or an app shows stale prices, the reason is almost always visible in the status code or a header. Developers who can read that text fix problems in minutes instead of guessing, and they design APIs that other teams can use without a long manual.
How the examples work
Each lesson has two kinds of evidence. Recorded sections show real traffic we captured with curl 8.5 between 29 November and 1 December 2026, with the exact status lines, headers and bodies the servers sent; we removed only lines added by our network proxy and noisy infrastructure headers, and say so each time. Live examples run in your browser and call public test APIs such as JSONPlaceholder, httpbin and a free countries GraphQL API, so you can change the code and see a new real response. Those services are run by third parties and can be slow or down for a while; if an example shows a network error, try again later.
Which HTTP version this course uses
Most of the recorded traffic is HTTP/2, which modern servers use over HTTPS, and one redirect is HTTP/1.1. HTTP/2 and HTTP/3 change how bytes travel on the network, but the meaning you work with stays the same: methods, paths, status codes, headers and bodies. HTTP/2 writes header names in lowercase, which is why some outputs say `content-type` and others `Content-Type`. Header names are case insensitive, so both are the same header.
After this course
- Python · LivePython from zero, running in your browser, then data with pandas and web APIs with FastAPI.
Questions about this course
Is this HTTP course free and available in Arabic?
Yes. Every lesson, example, exercise and quiz is free in English and Arabic, with no signup needed to read. Code, commands and header names stay in English because that is how you will type them.
What is the difference between HTTP and an API?
HTTP is the protocol, the rules for requests and responses. An API is a set of addresses and rules a particular service offers, such as a currency API. Most web APIs are built on HTTP, so learning HTTP once helps with every web API you meet.
Do I need to install curl?
It is already included in macOS, most Linux systems and Windows 10 and 11, where you run it as `curl.exe` in PowerShell. It is optional here: the recorded output shows what it printed, and the live examples run in the browser.
Should I learn HTTP before Node.js or after?
Either order works. If you take HTTP first, the Node.js server lessons will feel familiar. If you already finished Node.js, this course explains the why behind the status codes and headers you set there.
Are the JSONPlaceholder and httpbin APIs safe to use?
They are well known public services for testing and teaching, and the examples send them only made up data. Never send real passwords, card numbers or personal details to any test API, because you do not control what it stores.
Code examples stay in English and run in a sandbox on your device. If you spot a mistake, tell us through the contact page.