How much of a copyrighted book can I display in a web app?
<p>Google Books and Amazon both display significant portions of copyrighted material for free. In the case of Google, there is an option to select books based on the qualifications</p>

<ul>
<li>Any books</li>
<li>Preview available</li>
<li>Google eBooks</li>
<li>Free Google eBooks</li>
</ul>

<p>Some texts like <a href="https://books.google.com/books?id=g6FEAAAAIAAJ&amp;q=history+of+wine&amp;dq=history+of+wine&amp;hl=en&amp;sa=X&amp;ved=0ahUKEwiXjfr5mcDfAhUmTd8KHYVIDHo4ChDoAQg8MAM" rel="nofollow noreferrer">Early History of Wine Production in California</a> have no eBook available but provide <code>Snippet view</code>. Others, like <a href="https://books.google.com/books?id=sJk1tAEACAAJ&amp;dq=history+of+wine&amp;hl=en&amp;sa=X&amp;ved=0ahUKEwiXjfr5mcDfAhUmTd8KHYVIDHo4ChDoAQhBMAQ" rel="nofollow noreferrer">History of Wine Words: An Intoxicating Dictionary of Etymology and Word Histories from the Vineyard, Glass, and Bottle</a> provide no preview at all, and have no eBook available.</p>

<p>This stimulates the questions:</p>

<ol>
<li>Is this difference of previewing dependent on copyright or technology (i.e., have they not scanned the text or can they not get permission)?</li>
<li>More importantly: what are the legal ramifications of digitizing a text and making it searchable? How much of the search results can I display without being affected by copyright law?</li>
</ol>

<p>I very much want to allow the users of my web app to be able to search for lines in any text on my platform. If they search "It was a bright cold day in April, and the clocks were striking thirteen." I would like for the result to be the first line of <em>Nineteen Eighty-Four</em> and display some context (i.e. the surrounding lines).</p>

<p>What do I need to be legally aware of for this?</p>

<p><strong>Clarification</strong>: I am not using Google or Amazon's services. I will obtain the books myself, even digitize them myself if I have to.</p>

<p><strong><em>My question is specifically about fair use.</em></strong> I brought up Google and Amazon to describe similar web behavior.</p>

<h2>Issues I see:</h2>

<ul>
<li>How many lines of context around an indexed line can I display within fair use guidelines?</li>
<li>Is there a problem with the fact that a user could do the following:

<ol>
<li>Search the first line of a book. </li>
<li>Read the context blurb (say 5 lines, if that is legal).</li>
<li>Search the last line of the context from the previous search.</li>
<li>Read that context blurb.</li>
<li>Search the last line from the previous search.</li>
<li>Continue until the end of the book?</li>
</ol></li>
</ul>

<p>It is an unrealistic case, but is it legally problematic for my app to not prevent this?</p>

<blockquote>
  <p><em>I very much want to allow the users of my web app to be able to search for lines in any text on my platform.</em></p>
</blockquote>

<p>That means you are accessing Google and Amazon's data - whole books, snippets, excerpts - via your own App, and as such you need to read each services' TOS for the restrictions on using their services in such a way. Briefly, you can't legally access their data in an automated (and legal) way without expressed permission from those services. Read each services' TOS.</p>

<p>Those services either hold copyright on the formats of the works and books they have scanned, or they have gotten copyright permission from the copyright holders to digitize, or are presenting excerpts and snippets that fall under <a href="https://www.copyright.gov/fair-use/more-info.html" rel="nofollow noreferrer">Fair Use (U.S. Copyright Office)</a>. Google uses a legal precedent to scan and use copyrighted material for their service (though not everyone is happy about it); read <a href="https://www.washingtonpost.com/news/the-switch/wp/2016/04/18/google-books-just-won-a-decade-long-copyright-fight/" rel="nofollow noreferrer">Google Books just won a decade-long copyright fight - The Washington Post</a>.</p>

<p>What you need to be "legally aware" of is that you need permission from those services to use the data for your App. Those services can take legal action against you if you use their services in violation of their TOSs, no matter the length of the excerpt you use, how you search or how you present search results in your own App.</p>

<p>Edit:</p>

<blockquote>
  <p><em>I will obtain the books myself, even digitize them myself if I have to.</em></p>
</blockquote>

<p>That could put you in direct legal jeopardy of copyright infringement, depending on jurisdiction and international laws (see <a href="https://en.wikipedia.org/wiki/Berne_Convention" rel="nofollow noreferrer">Berne Convention - Wikipedia</a>), when you digitize an entire book without permission. It doesn't matter how many lines you display in your App in an attempt to fall under Fair Use; you have already scanned and stored the entire work on a server for your App to access.</p>

copyright fair-use