> For the complete documentation index, see [llms.txt](https://cs4all-icm.gitbook.io/js-the-interactive-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis.md).

# Unit 4: Intro to APIs

- [Unit 4 Overview](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/unit-4-overview.md): How can access remote data and incorporate it into a webpage?
- [U4LA1: Intro to APIs](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la1-intro-to-apis.md): What is an API?
- [U4LA1.2: JavaScript Arrays, Iteration, and Objects](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la1.2-javascript-arrays-iteration-and-objects.md): What structures can I use to store and manipulate larger and more nuanced data?
- [U4LA1 Mini Project: Deck of Cards: Higher Lower](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la1-mini-project-deck-of-cards-higher-lower.md): What does the use of APIs look like in a website.
- [U4LA2: Connecting to Closed APIs using the Giphy API](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la2-connecting-to-closed-apis-using-the-giphy-api.md): How do you work with APIs that require authentication?
- [U4LA2 Mini Project: DIY Dictionary](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la2-mini-project-diy-dictionary.md): What makes an API closed and how do we safely incorporate our API key?
- [U4LA3.1: APIs vs SDKs](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la3.1-apis-vs-sdks.md): How do you integrate other people's software into yours?
- [U4LA3.2: Requests on the Web - GET & POST](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/u4la3.2-requests-on-the-web-get-and-post.md): What do API calls look like on other websites?
- [Unit 4 Final Project: API GUIs](https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis/unit-4-final-project-api-guis.md): What does the use of APIs look like in a website.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cs4all-icm.gitbook.io/js-the-interactive-web/unit-4-intro-to-apis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
