Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

Calling a web API in Java

Some products need data the program does not hold itself: today's weather, an exchange rate, a place on a map, a list of books. That data lives on someone else's server, and you reach it through a web API. Your program sends a request to a URL, the server sends back the answer as text, and your program reads it. This is the connector pattern, and it is how an IA product brings in live data from outside. The answer...

Help