Get AI summaries of any video or article — Sign up free
Michael Meng - API documentation: Exploring the information needs of software developers thumbnail

Michael Meng - API documentation: Exploring the information needs of software developers

Write the Docs·
5 min read

Based on Write the Docs's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Developers’ first information need is usually capability and purpose (“What can I do with the API?”), so documentation should answer that quickly.

Briefing

API documentation succeeds or fails less on how much information it contains and more on whether developers can quickly find solutions in the order their questions unfold. Across interviews, a large questionnaire, and an eye-tracking observation study, developers consistently prioritized practical “what can I do?” guidance first, then shifted toward implementation details, code samples, and task-oriented navigation as they worked through real programming problems. The findings matter because they challenge the common assumption that developers primarily want comprehensive conceptual explanations; instead, they want information that matches their immediate workflow and reduces friction when they hit gaps.

When developers approach a new API, the earliest question is overwhelmingly about purpose and capabilities: “What can I do with the API?” In the questionnaire results, this option was the clear top pick for first questions. Second-place answers split between conceptual understanding (like basic API architecture and structure) and getting the API running. By the third question, the balance tilts toward hands-on implementation—developers most often raised “How do I program with the API?” and “How do I implement my special use case?” The pattern suggests two learning modes: some people pursue a conceptual roadmap first, while others move straight to code and samples to start interacting with the API as soon as possible.

Those differences show up again in how developers choose documentation activities. Interview and questionnaire data point to two strategies: a concept-first approach that treats understanding as a prerequisite, and a code-first approach that uses sample code as the primary entry point. Even when developers say they want conceptual material, concept blocks tend to be ignored if presented as a single, isolated chunk. Instead, concepts become useful when distributed through tutorials or embedded within API reference and recipes.

Developers also report that the biggest obstacles are documentation quality problems—especially wrong, incomplete, or incomprehensible content. Structure and navigation emerge as equally critical. In the observation study, eye tracking and screen recordings showed that participants scanned pages rather than reading them line by line, with attention drawn to headings and navigation elements. Roughly half of their time went to documentation pages and half to non-documentation work areas needed to complete tasks (such as consoles or tools). Within documentation, recipes and sample code pages attracted the most attention, while concept sections drew the least.

The study’s controlled setting—developers working on tasks for an e-commerce-related API integration—also revealed that domain knowledge affected speed more than years of programming experience. Developers with relevant e-commerce background completed tasks faster, while those lacking it took longer even if they were experienced programmers. Over time during the one-hour session, documentation usage shifted: early tasks leaned heavily on sample-based templates, but as familiarity grew, the relative importance of the API reference increased.

Taken together, the research points to actionable design principles: make documentation easy to find and easy to understand; ensure navigation is clear and consistent; avoid organizing content strictly by documentation type (concepts vs. samples vs. API reference) and instead organize by problem or task categories; and provide code samples that developers can build on rather than forcing them to start from scratch. The work stops short of claiming “golden rules,” but it offers a data-backed agenda for improving API documentation around real developer information needs.

Cornell Notes

Developers approaching a new API start with purpose and capabilities (“What can I do with the API?”), then move toward implementation and special use cases. Across interviews, a questionnaire (113 participants), and an observation study with eye tracking (11 developers), sample code and recipes consistently drew the most attention, while standalone concept sections were often ignored. Documentation quality issues—wrong or incomplete content, unclear structure, and hard-to-navigate pages—ranked among the top learning obstacles. Domain background knowledge (e-commerce in the study) affected task speed more than years of programming experience, and as developers gained experience during the session, reliance on API reference increased.

What question do developers raise first when learning a new API, and what does that imply for documentation design?

In the questionnaire, the clearest first-choice was “What can I do with the API?” Developers want an immediate sense of capabilities and purpose before deep technical details. For documentation, that means the entry experience should quickly map features to outcomes—so users can decide whether the API fits their goal without hunting through architecture material.

How do developers’ learning strategies differ, and how does that affect which documentation sections they use?

Two strategies emerged: a concept-first approach (global understanding first, details later) and a code-first approach (sample code to start interacting, checking docs only when stuck). Even when concept information is valued, it tends to be ignored if presented as a single atomic block; concepts work better when spread across tutorials or embedded alongside samples/recipes.

What are the most common documentation problems developers report encountering?

Developers ranked wrong or incomplete documentation and incomprehensible documentation among the top obstacles. They also highlighted unclear content structure and navigation as major pain points. In practice, this means documentation must be accurate, readable, and organized so users can locate the right information without guessing.

What did eye tracking reveal about how developers actually read API documentation?

Participants scanned rather than read continuously. Attention clustered around headings and navigation items, and they spent substantial time on documentation pages that offer sample code—especially recipes and samples. Concept sections received comparatively less attention, aligning with the interview and questionnaire findings.

Why did programming experience not determine task speed as strongly as expected?

In the observation study, domain-related background knowledge (the API supported e-commerce shipping/integration tasks) was a stronger factor than years of programming experience. Developers with relevant domain context reached solutions faster, while experienced programmers without that background took longer.

How does documentation usage change over time during repeated tasks?

Early tasks leaned heavily on sample-based templates, and some developers got stuck using a template page without returning to other sections. When those outliers were excluded, the relative importance of the API reference increased as the session progressed—suggesting that API reference becomes more valuable once users know what they’re trying to implement.

Review Questions

  1. When developers first approach an API, which type of question dominates, and how should that shape the top-level structure of documentation?
  2. Why might concept pages underperform even when developers say they value conceptual understanding?
  3. What navigation strategy would better match developer problem-solving than organizing strictly by documentation type (concepts vs. samples vs. API reference)?

Key Points

  1. 1

    Developers’ first information need is usually capability and purpose (“What can I do with the API?”), so documentation should answer that quickly.

  2. 2

    Learning behavior splits into concept-first and code-first strategies; documentation must support both without burying implementation details.

  3. 3

    Standalone concept blocks are frequently ignored; concepts should be distributed through tutorials, recipes, and API reference contexts.

  4. 4

    Documentation quality problems—wrong/incomplete content and incomprehensible writing—are among the most severe learning obstacles.

  5. 5

    Clear, consistent navigation is as important as content; developers scan and rely on headings and menu structure.

  6. 6

    Sample code and recipes attract the most attention; API reference becomes more important as developers gain familiarity.

  7. 7

    Domain background knowledge can outweigh years of programming experience when completing task-based API integration work.

Highlights

The earliest question for new API users is overwhelmingly about what they can do with the API, not how it’s architected.
Recipes and sample code pages draw the most attention in eye-tracking observations, while concept sections lag.
Concept information works best when it’s woven into tutorials and reference contexts rather than presented as a single isolated block.
Domain knowledge (e-commerce context in the study) predicted faster task completion more reliably than programming experience.
Navigation should reflect user problems and solutions, not just documentation categories like “concepts” or “API reference.”

Topics

Mentioned

  • Michael Meng
  • John Carroll
  • Chris Pardon
  • Emily and Ruby
  • Hart