Skip to main content
Oracle vs Google: Copyright API and Fair Use

Oracle vs Google: Copyright API and Fair Use

The world of software development is a dynamic ecosystem, powered by innovation and collaboration, but also inherently linked to complex intellectual property issues. at the heart of many of these discussions, a judicial case has polarized industry for over a decade: oracle vs google. this legal saga, focusing on the copyability of the application programming interfaces (api)* and on the limits of the “fair use”, raised fundamental questions about the nature of creativity in the code, the balance between protection and innovation, and the foundations on which the modern software is built. the original article, dating back to 2016, reflected a critical moment in which the decision of the appeal court affirmed the copyrightability of the api, but the verdict of the jury on the fair use of google was still subject to intense debate and skepticism, with the author peter bright expressing concern for a weakening of copyright in the software. however, the story did not stop there. the final decision of the u.s. supreme court in 2021 added a definitive chapter, tipping in part the perspective and consolidating an understanding of the fair use that, although specific, has lasting ramifications. this article aims to deepen and extend the topics raised in the original piece, examining the complexity of copyright in the context of software, the inherent value of api design and the long-term implications of this historic judgment for innovation, competition and the entire technological landscape. we will analyze how jurisprudence has tried to districate the tangle between “idea” and “expression” in the code, explore the different facets of fair use, and discuss the concrete repercussions for developers, companies and future evolution of programmatic interfaces, going beyond the initial forecasts to understand the real impact of a case that has redefined the boundaries of intellectual property in the digital age. the discussion will also expand to explore alternative approaches to software protection, such as patents and open-source licenses, and how industry and law will continue to adapt to new challenges posed by emerging technologies such as microservices and ai generation, which constantly shape how apis are created, distributed and used. finally, we will reflect on the legacy of oracle v. google as a constant warning about the need for a delicate balance between the recognition of creative merit and the promotion of a fertile environment for the continuous technological evolution, a crucial balance to support the growth and resilience of the software industry globally.

The dispute between oracle and google, culminated in the decision of the u.s. supreme court of 2021, is one of the most significant legal battles on intellectual property in the technological sector, reshaping the understanding of the copyright** applied to the application programming interfaces (api) and the concept of “fair use” in the software. the story began with oracle accusing google to copy 11,500 lines of java code, including the “structure, sequence and organization” of 37 java apis, to build the android operating system. initially, the district court had established that apis were not copyrighted, considering them functional “ideas”. however, a crucial breakthrough occurred when the federal circuit court of appeal reversed this decision, stating that the sso of an api is indeed susceptible to copyright protection, equating it to a form of “creative expression” rather than a simple functional “idea”. this sentence laid the foundations for the second debate, the fair use, which saw a jury believe that google’s use was lawful. the original piece by peter bright, written in this context of 2016, expressed his skepticism towards the jury’s decision on fair use, claiming that this interpretation was too wide and could overly weaken copyright protection in the software, pushing itself beyond the cases of true interoperability. his analysis was based on the premise that although copyright is not the perfect tool for software, it was “the best of a bad deck” and that a laxist interpretation of fair use could undermine the foundations on which innovation is based in code. the u.s. supreme court, in 2021, gave the final decision, confirming that google’s use of java apis in the android ecosystem constituted fair use. however, the supreme court’s reasoning has been disconnected by a general statement on api’s non copyrightability or a broad redefined fair use throughout the software. the court, in a decision 6-2, assumed a pragmatic approach, avoiding deciding on the copyrightability of the java api itself, but assuming pro argumentum that they were. the judgment focused mainly on the fourth factor of fair use (the effect on the potential market) and, above all, on the first factor: the “character and purpose of use”, in particular if it were “transformative”. the court held that google had used java apis to create a new smartphone program, a highly innovative and transformative platform, different from the desktop environment and servers for which java was originally designed. the use of those 11,500 lines of code, a very small fragment of the millions of total lines of java, was seen as necessary to allow java programmers to access more easily a new platform, thus promoting creativity and innovation. this “transformative” perspective was crucial, since it recognized that although google had copied a part of the api, the final purpose was not simply to replicate java, but to enable a new and distinct ecosystem. the supreme court decision, therefore, did not declare that apis are never protected by copyright, nor opened doors to an indiscriminate copy. rather, it has established that, in specific circumstances and with sufficiently transformative use and for a predominant public interest, the copy of functional elements of an api can fall within the boundaries of fair use. this approach “case by case” has provided a precedent that emphasizes the role of innovation and the creation of new platforms as determining factors in the analysis of fair use, placing itself as a significant evolution compared to the most rigid point of view expressed in the original article.

Fundamental dualism: idea vs. expression in software and bees #

The heart of the debate on intellectual property in software lies in the fundamental dualism between idea and expression, a central concept in copyright which is notoriously difficult to apply to functional works such as code. copyright, by its nature, protects the creative expression* of an idea, not the idea itself. if an idea can be expressed only in a limited number of ways, or if the expression is so intrinsically linked to the idea that it cannot be separated, the “merger doctrine” applies, which denies copyright protection to the expression itself, since protecting the expression would in fact mean monopolizing the idea. in the context of software, this distinction is particularly labile. the literary source code is universally recognized as an expression and therefore protected by copyright. however, the software is also, by definition, highly functional. its code lines are often dictated by practical needs and optimal technical solutions, which makes it difficult to distinguish where the mere function ends and the expressive creativity begins. the original article emphasizes that a simple fragment of code as [[k0]]] is too functional to justify copyright, while an entire “operative system” is clearly an unprotectable idea. but among these extremes, there are layers of abstraction – code blocks, functions, libraries – in which idea and expression mix inextricably. to address this complexity, us courts have developed approaches such as the doctrine of “structure, sequence and organization” (sso), introduced in the case whelan v. jaslow (1986). initially, the sso was interpreted fairly broadly, extending the protection to non-literal elements of the code that were not strictly governed by functional requirements, even leading to consider violations of copyright “clonate” user interfaces. this approach, however, has been criticized for approaching too much to the protection of algorithms and ideas, purposes not covered by copyright. subsequently, the jurisprudence has refined this vision. the case computer associates v. altai (1992) introduced the test “abstraction-filtration-comparison”, recognizing that “ideas” exist at every level of a program. this test involves abstracting the program into its structural components, filtering unprotected elements (such as ideas, public domain elements, functional elements dictated by efficiency or standard, or those subject to the merger doctrine), and finally comparing the remaining expressive elements. from altai onwards, copyright protection for non-literal elements of the software has become more restricted, focusing mainly on the literary source code, leaving a protection void for many aspects of software design. apis, as highlighted in the original article and as a focal point of oracle v. google, are located precisely in this grey area. an api is not only a “behavioural contract” or a functional abstraction; it is also a set of literal code (class names, methods, parameters, package structure) and a series of design choices that define how developers will interact with a library or service. although functional requirements can strongly influence the design of an api (for example, the [[k1]] function for a string), they do not eliminate creativity. as the original article illustrates with the examples of [[k2]] compared to [[k3]]], some decisions are dictated by the function, but others, such as the choice to provide different data structures or the approach to iterators (java with “fence posts” against c++ with pairs of iterators), reveal distinct and creative design choices. these decisions, which influence usability, flexibility and ergonomics for the developer, constitute a form of expression. this is not just code; it is the maniera in which that code is structured, called and organized to facilitate human interaction and machine, and this “maniera” is the result of a significant creative process. the ability of an api to balance expressive power and ease of use for developers is an artistic enterprise that deserves consideration, and its structure, sequence and organization reflect choices that go beyond the mere inevitable functionality. the legal battle has thus crystallized this tension, with the supreme court which, while not deciding on general copyrightability, implicitly recognized the value of these design choices in the context of fair use, placing emphasis on the transformation and empowerment of new forms of creativity.

Hidden art: creativity, design and economic value of bees #

The original article captures a crucial aspect of api design that is often underestimated: its artistic and creative dimension, which goes well beyond the mere mechanical functionality. the creation of anapplication programming interface (api) is not a purely scientific or engineering firm; it is an art that requires insight, vision and a deep understanding of the needs of developers. the goal is to create a “language” and a “structure” that not only allow different software components to communicate, but that make this communication intuitive, powerful and efficient. a well-designed api is like a well-made sculpture or a well-composed musical piece: there is an intrinsic logic, but also an elegance that distinguishes it. this “art” is manifested in different forms. first, in the consistency and consistency: a quality api maintains design patterns, conventions and predictable behaviors across all its parts, reducing cognitive load for the developer. second, in the simplicity and ergonomics*: the best apis hide the underlying complexity, offering clear and easy-to-use interfaces that allow developers to focus on the logic of their application instead of managing the complexity of the api itself. this includes the choice of methods and classes that are self-explanatory, error management in a predictable way and the provision of data structures suitable for the problem. third, in the modularity and flexibility: a well-designed api allows developers to use only the parts they need, without being burdened with irrelevant features, and adapts to future usage scenarios. finally, in the documentation and support: even the brightest api is useless without clear documentation that guides developers in its use. these design elements, far from being dictated by purely functional requirements, are the result of countless creative decisions made by software engineers and architects. each choice, from the name of a method to the structure of a package, from the logic of an iterator to the management of i/o flows, contributes to creating a user experience (developer experience – dx) that can make the difference between widespread adoption and oblivion. the original article rightly emphasizes that “many apis… are poorly designed” and cites the api for c strings as an example of interface that makes “easy use incorrect and difficult to correct use”. this contrast highlights the added value of creative design: java apis copied by google (like [[k0]] for data structures, [[k1]] for the sql interface, or [[k2]]/[k3]] for i/o routines) were the result of years of refinement and represented a familiar and consolidated “language” for millions of developers. this design work has a huge economic value. a well-designed api not only attracts developers, but also creates a ** ecosystem**. companies like [[k4]] (with its ios apis), amazon (with aws), google itself (with its search apis, maps, etc.) and oracle (with java) have built entire empires around the ease with which developers can integrate and build over their platforms. apis become the “access point” for functionality, services and data, generating network effects that increase the platform’s value. this value translates into licenses, services, products and, ultimately, into a dominant market position. therefore, copyright protection for the “structure, sequence and organization” of an api is not merely an academic question, but reflects the recognition of intellectual capital and creative work invested in its design. if the design of an api was considered a simple freely copyable functional idea, there would be less incentive to invest time and resources in creating intuitive and complete interfaces. the risk is that companies limit themselves to copying the best existing practices, instead of innovating and investing in new and better solutions. the supreme court decision on oracle v. google, while justifying the use of google through fair use, has in a certain sense validated the idea that apis have an intrinsic value that goes beyond the literal code, and that creative design choices within them contribute significantly to their value and identity. the court did not deny the possibility that apis are copyrightable, but rather modulated its analysis on the mode in which they were used, recognizing the importance of context and transformation for innovation. this suggests that art and creativity in the design of apis, although difficult to incasellate in traditional legal categories, are tangible and fundamental elements for technological progress.

Fair use and interoperability: a precarious balance for innovation #

The concept of “fair use”** in copyright is an essential mechanism for balancing the protection of creators by promoting innovation and freedom of expression. it allows unauthorized use of copyright protected works under certain circumstances, without requiring permission or payment to the copyright holder. its recognition is based on four key factors: 1) the purpose and character of the use (including if the use is commercial or for educational purposes, and if it is “transformative”), 2) the nature of the work protected by copyright, 3) the quantity and versatility of the portion used in relation to the work as a whole, and 4) the effect of use on the potential market or on the value of the protected work. the original article by peter bright analyses three api usage patterns: the “consumption without re-implementation” (the most common, non-problem for copyright), the “re-implementation of third parties explicitly authorized” (such as the c/c++ or posix specifications, where authorisation is implicit or explicit), and the “interoperable implementation”. this last category is the one in which fair use takes the utmost importance and where tension with copyright becomes more evident. the interoperability, the ability of different systems to work together, has long been recognized as a significant public interest and often justifies the copy of code or api. projects such as wine and reactos, which aim to provide alternative implementations of microsoft’s win32 api to allow windows software to run on other operating systems, are classic examples of this type of use. microsoft did not design win32 to be re-implemented by third parties, nor allowed explicit permissions; however, the goal of these projects is interoperability, which has historically been considered a valid justification for fair use, even through reverse engineering techniques. google, in the case of java apis for android, found itself in an ambiguous position. if on the one hand sun (and oracle) had promoted the interoperability of java, coming to fight microsoft for its unconformed implementation, google’s android project had no primary objective of being an “interoperable” java platform in the traditional sense. android copied a subset of java apis and deliberately discarded other elements, creating an ecosystem “java-like” but not “java-compliant”. the original article criticises this choice, defining it as a “competitive competition” rather than a genuine attempt to interoperability, and claiming that, for this reason, the use of google should not have qualified as fair use. the supreme court of the united states, in its final judgment, dealt with this delicate distinction. although he acknowledged the value of java apis and the creative work that subdues them, he concluded that google’s use was a fair use, placing a particular emphasis on the first factor: the “character and purpose of use” and its “transformative” nature. the court observed that google took only what needed apis (naming conventions) and organization) to allow java developers to work on a new platform for smartphones, android, which represented a significant technological step ahead of desktop systems and servers for which java was originally conceived. this use was considered “transformative” because it allowed the creation of a new ecosystem of apps for smartphones, rather than simply replicating the existing java ecosystem. the court recognised that the introduction of a new operating system for smartphones was of great public benefit, and that allowing developers to use a programming language and a set of family apis reduced the barrier to entry and promoted innovation. this represented a precarious balance: on the one hand, the potential copyrightability of the api has not been denied, on the other, it has recognized the crucial role of fair use in promoting innovation and competition, especially in rapidly evolving sectors such as technology. the decision of the supreme court, therefore, has consolidated the idea that interoperability, together with transformation and public benefit, can justify the copy of expressive elements of an api, but with a careful and contextual analysis that does not open the door to an indiscriminate copy. this puts an important precedent, stressing that fair use is not a “passport” for copying, but a tool to balance the interests of rights holders with those of society as a whole, especially when it comes to enabling new forms of creativity and competition in a new market.

The u.s. supreme court ruling in the case oracle v. google* has had profound and complex repercussions on the software industry and the future of ** copyright**** applied to api*. although the decision concluded a ten-year legal battle, it did not provide simple answers, but rather opened new questions and consolidated a blurred approach to the protection of intellectual property in the technological sector. the most immediate and perhaps the most debated impact was the apparent “victory” for google and, by extension, for the community of developers who feared that an oracle victory would suffocate innovation. many interpreted the sentence as a free way to reuse api for “transformative” purposes, reducing the legal risk for companies wishing to build on existing infrastructure without having to negotiate expensive licenses. this has fueled a sense of greater freedom and has potentially encouraged the creation of new software ecosystems, such as android itself, which benefited from the familiarity of an existing language and programming architecture. on the other hand, for copyright holders and companies investing massively in creating innovative apis, the decision raised concerns. if the “fair use” is interpreted too widely, there may be less incentive to create complex and well-designed apis, knowing that competitors could reuse their essential parts without compensation. the original article by peter bright expressed this concern in 2016, fearing that the jury’s decision on fair use would “impair copyright on software further”. the ruling of the supreme court, although not completely marrying this perspective, nevertheless placed a limit to the extension of copyright protection, especially in contexts of “transformative” reuse. however, it is essential to emphasize that the supreme court did not declare that apis are not copyrightable in principle, nor did it formulate a general rule for all cases of fair use in the software. his decision was “straight and specific”, based on the unique facts of the google-android case and on the analysis of the four factors of fair use in that context. this means that each future api copy case should be evaluated individually, and the “transformation” of use will be a critical factor, but not the only one. another important branch is the ** open source software**. many open source licenses, such as the gnu general public license (gpl), are based on the copyright force to impose their terms (for example, the obligation to make the modified source code available). if copyright on apis is systematically weakened, the ability of these licenses to protect and propagate free software could be compromised. however, the supreme court decision did not weaken copyright to the point of undermining open source licenses; rather, it clarified that fair use is a valid defense even in software contexts, which could push open source projects to be more explicit on the terms of use of their apis. for developers, the sentence brought some clarity, while maintaining a degree of uncertainty. on the one hand, there is greater confidence in the ability to inspire existing api structures to create new platforms. on the other hand, the lack of a universal “urea rule” for fair use means that companies and individual developers must proceed with caution, considering carefully whether their use is actually “transformative” and does not damage the original work market. this could lead to greater use of legal advice or more complex licensing strategies to mitigate risk. ultimately, the decision oracle v. google did not solve the “war” between copyright and software innovation, but rather moved the battlefield. he strengthened the idea that copyright must adapt to technological reality, balancing the protection of creative value with the need to promote new forms of expression and competition. he pointed out that the functionality of the software makes its copyright protection intrinsically different from that of a novel or song, requiring a subtler and more contextual analysis that considers the impact on technological progress and public benefit. the debate will continue, and with it the evolution of legal and business strategies in the software world.

Given the recognition that the copyright, although it is “the best tool for a bad deck” for software protection, presents intrinsic limitations due to the functional nature of the code, it is essential to explore the alternatives and complements to safeguard intellectual property in the technological sector. none of these tools are perfect alone, but a strategic combination can offer more robust and adaptable protection to the different facets of software and api. one of the most obvious alternatives to copyright is ** patents**. unlike copyright, which protects expression, patents protect “ideas” or, more precisely, new inventions, not obvious and useful. in the context of software, this means that a patent can cover an algorithm, process method, or specific functionality implemented by the software. for example, a patent could protect an innovative data compression algorithm or a new way to manage transactions in a database, rather than the source code that implements that algorithm. patents offer stronger protection against functional copying, but are expensive to obtain and maintain, require a complex analysis of “new” and “non-obvious” and have a limited duration (typically 20 years). moreover, not all software is patentable, because many innovations are considered too abstract or banal to meet the strict patentability requirements. another important tool is the trade secrets**** (trade secrets). this type of protection applies to confidential business information that gives a competitive advantage and that is not public domain. for software, this may include proprietary algorithms, internal system architectures, development methodologies, source code not publicly distributed and, in some cases, also aspects of api design if kept secret. unlike patents and copyrights, commercial secrets do not require registration and their protection is potentially unlimited, provided that the company takes reasonable steps to keep its secrecy. however, protection ceases if the secret is discovered independently (for example, through legal reverse engineering) or disclosed without authorization. for apis, this means that while the external behavioral contract can be known, internal implementation and optimization details can remain commercial secrets. contracts and licensing agreements* represent a third pillar. many companies protect their software and apis not so much with copyright or patents in a strict sense, but through contractual terms imposed on users. end user license agreements (eula) for “shrinkwrap” software or service terms (tos) for cloud-based apis or microservices specify what users can or cannot do with software or api. these contracts may impose restrictions on decoding, modifying, distributing or creating derivative works, extending protection beyond the limits of copyright. although powerful, these agreements are binding only for the parties that accept them and may be subject to legal disputes about their validity or scope. ** open source* licenses (such as gpl, mit, apache) offer a completely different paradigm. they do not aim to “protect” in the traditional sense of limiting use, but rather to facilitate the collaboration and sharing of code. however, these licenses are still based on the copyright force to enforce their terms. for example, the gpl uses copyright to request that any derivative work is also released under gpl (the concept of “copyleft”). in this sense, open source licenses are not alternative to copyright, but rather a way to use copyright to achieve specific sharing and collaborative development goals. for apis, this means that an open source api can be freely used, studied, modified and distributed, promoting interoperability and open innovation. the decision oracle v. google, while supporting the fair use for google, did not undermine the validity of these tools. it has rather clarified the context in which copyright can be applied to apis and has strengthened the idea that, in a rapidly changing technological world, effective ip protection requires a multi-layered and flexible approach, combining copyright for expression, patents for functional inventions, commercial secrets for proprietary knowledge and contractual agreements to define the rules of use. this integrated approach allows companies to innovate and protect their investments while guaranteeing that innovation and competition are not unduly suffocated.

Today’s technological landscape is constantly evolving, and with it new legal challenges arise for the protection of application programming interfaces (api)* and software in general. the supreme court ruling in oracle v. google provided an important clarification, but also highlighted the intrinsic complexity of applying copyright laws designed for traditional creative works with highly functional entities such as apis. looking at the future, different technological trends promise to put further pressure on existing legal frameworks. the rise of microservices and api-first* architecture is one of these. in this paradigm, applications are no longer monolithic, but are disassembled in small independent services that communicate with each other exclusively through api. each microservice exposes one or more well defined apis, becoming both a consumer and a functional provider. in such a fragmented and interconnected environment, the “structure, sequence and organization” (sso) of the api becomes even more crucial for the efficiency and stability of the entire system. the clear definition of interfaces, consistency in the design and management of errors, and ease of integration are design elements that will require protection. the question is: in an ecosystem where thousands of different apis interact, until the fair use extends to allow the creation of new microservices that replicate existing features? the growing diffusion of*** artificial intelligence (ai)*, in particular code generation tools and low-code/no-code platforms, introduces further complexity. these tools can automatically generate code fragments, functions or even entire apis based on natural language descriptions or existing code models. if an ai generates an api that is “substantially similar” to an existing api and copyright protected, who is responsible for the violation? the creator of ai, the user who supplied the input, or is the output itself protected by copyright (and by whom)? the ability of the ai to “learn” from vast corpus of existing code raises questions about the source of training data and the nature of the generated derivative work. in addition, apis are becoming the “access point” not only for code, but also for data and machine learning models. data apis allow programmatic access to huge data sets, while ai model apis allow developers to integrate advanced ai capabilities in their applications without having to train or manage complex models. the protection of these apis, which often expose proprietary data or the internal logic of an ai model (which could be patentable or a commercial secret), will require a combined analysis of copyright, patents, commercial secrets and contractual terms. globalization of software and apis also means that companies operate in different jurisdictions, each with their own copyright laws and interpretations of fair use or equivalent concepts (such as “fair dealing” in some common law jurisdictions). a specific decision of the united states supreme court, however influential, does not automatically translate into a legal precedent in europe, asia or other parts of the world. the lack of international harmonization on intellectual property laws for software and apis creates uncertainty and challenges for global companies. finally, the need for a continuous balance between protection and innovation remains the biggest challenge. laws must be flexible enough to adapt to rapid technological changes without suffocating creativity or competition. this could require new forms of legislation, or more agile interpretations of existing laws, which recognize the value of api design and ecosystems that create, while promoting openness and interoperability when needed. the future of the api is brilliant, but its trajectory will inevitably be shaped by legal decisions that will address these emerging challenges, trying to find a balance that favours both creators and collective innovation.