Published on November 20, 2026
Estimated Read Time: 7 minutes
Is an API copyrightable? Your code and documentation are protected, but the functional interface mostly isn't. Here's what Google v. Oracle decided and what to register.
Is an API copyrightable? Only partly, and not in the way most developers hope. Copyright covers the original code and written documentation you create, but not the functions, ideas or methods of operation an interface exposes. The Supreme Court has never squarely ruled on the interface itself, so assume thin protection.
That gap matters because APIs are products. Companies build businesses on them, competitors build compatible versions, and developers copy endpoint names without thinking twice. Before you rely on copyright to stop anyone, you need to know which layers of an API it reaches and which it doesn't.
This article splits an API into its parts and takes them one at a time. It covers the interface, the implementation, the docs and what the major court fight actually decided. It also covers when registering makes sense.
Copyright attaches automatically to original works of authorship fixed in a tangible form, under 17 U.S.C. § 102(a). Computer programs count as literary works. But § 102(b) draws a hard line: protection never extends to an idea, procedure, process, system or method of operation, however it's described or illustrated.
An API sits right on that line. The interface is a list of names, parameters and behaviors that let one program talk to another. That sounds like a method of operation. The code that makes it work, and the prose that explains it, sound like authorship.
So the useful question isn't "can I copyright my API?" It's "which part of my API is a creative expression, and which part is just how the thing works?"
Think of the interface as the menu and the implementation as the kitchen. The menu tells a caller what it can order and what comes back. The kitchen is the code that actually does the work.
Your implementation is ordinary software. The source code you wrote is protected the moment you write it, and our guide to copyrighting source code covers how that protection works and how to register it. If you're wondering about the clever logic inside, that's a separate topic, covered in whether you can copyright an algorithm. Short answer there: the code is protected, the underlying method generally isn't.
The interface is where things get murky, and that's where the rest of this article lives.
Can you copyright API endpoints? Mostly no, at least for the functional part. A route like `/v1/customers/{id}` and a method called `getCustomer` do two jobs at once. They name something, and they make the system work. Courts and the Copyright Office have long treated short names, titles and functional labels as unprotectable, and the Office's own guidance says words and short phrases such as names, titles and slogans aren't registrable.
Here's how the pieces tend to break down:
That last bullet is exactly what the biggest API case was about.
In Google LLC v. Oracle America, Inc. (2021), Google had copied roughly 11,500 lines of declaring code from the Java SE API to let programmers carry their skills into Android. Oracle sued for infringement.
The Supreme Court sidestepped the headline question. It assumed, for the sake of argument only, that the declaring code was copyrightable, and then held that Google's use was a fair use. It did not rule that APIs are free to copy, and it did not rule that they're protected.
What you can take from it: copying an API's declarations to build a compatible product has strong support as fair use, particularly when it lets developers reuse what they already know. That's a defense you raise after being sued, not a shield that prevents the lawsuit. And it's fact-specific. A copyist who took the same declarations to build a direct clone of your product might fare differently.
Yes, and this is the strongest and least controversial layer. Your written docs are plain old literary text, and the copyright API documentation question has a much simpler answer than the interface does. Tutorials, reference pages, explanatory prose, original code samples, diagrams and the way you organize them all qualify as long as they show a modicum of creativity.
Two cautions. First, protection covers your expression, not the facts or functions you're describing. A competitor can write their own docs explaining how your endpoint behaves. They can't paste yours. Second, a bare list of parameters with no commentary is closer to a reference table of facts, and that's thin.
If you've published docs under an open license, or let customers fork them, check what you actually granted. Note that docs may carry a different license from the code.
Realistic API copyright protection is a stack, and each layer is stronger or weaker:
| Layer | Copyright strength | What to do |
|---|---|---|
| Implementation code | Strong | Register the software |
| Written documentation | Strong | Register with the software or as a text work |
| Selection and arrangement of many declarations | Uncertain | Rely on terms of service and contracts |
| Individual endpoints and parameter names | Very weak | Don't count on copyright |
Because the interface is weak ground, serious API providers lean on contracts. Terms of service, developer agreements, rate limits and API keys let you control who can call your API and what they may do with it. That's an enforcement route copyright doesn't give you. If you're worried about functional behavior rather than expression, patents are a different tool entirely, and you'd want an attorney's advice.
Ownership starts with whoever wrote the code and docs. If an employee wrote them within their job, the employer generally owns them as works made for hire. A freelancer usually keeps ownership unless a signed written agreement says otherwise. Those rules deserve their own attention, so check your contracts before assuming the company owns everything.
You don't need to register anything for protection to exist. You do need to register before you can file an infringement suit over a U.S. work, and timely registration affects whether you can recover statutory damages and attorney's fees. The Copyright Office's registration process is the starting point.
In practice, you'd register the implementation code and the documentation, not the abstract "API." A Single Application costs $45 and fits one author registering one work they own outright. The Standard Application costs $65 and handles everything else, including works with more than one author or works made for hire. Copyright Engine's software registration service prepares and files the application for you.
For a comparable situation, see how the same split between code and surrounding assets plays out when you copyright a WordPress plugin.
Don't spend energy trying to lock down endpoint names. Put it where it pays off.
If you're planning to sue a clone or you're about to build a compatible API yourself, talk to a copyright attorney first. That's the edge case where the law is still unsettled and facts decide everything. This article is general information, not legal advice.