STANDS4 Web Services:

Literature API

The Literature API from STANDS4 enables you to get instant data from our vast literature collection.

Request URL:

https://www.stands4.com/services/v2/literature.php

Request parameters:

Parameter Value Required Default Description
uid string Y  

Your API user id

tokenid string Y  

Your valid developer token id

term string Y  

The word you would like to get literature results for

format string N xml

The format in which you want the result returned (xml or json)

Sample request URL:

https://www.stands4.com/services/v2/literature.php?uid=1001&tokenid=tk324324&term=alice&format=xml

Response elements:

Element Description
results

Contains all of the query responses

result

Contains each individual response

title

The script title this result is referring to

subtitle

The script title this result is referring to

writer

The writer of this work

link

A direct link to the book on Literature.com

Sample response:

<?xml version="1.0" encoding="UTF-8"?>
<results>
    <result>
        <title>Alice in Wonderland</title>
        <subtitle>Alice's Adventures in Wonderland is an 1865 novel written by English author Charles Lutwidge Dodgson over the pseudonym Lewis Carroll.</subtitle>
        <writer>Lewis Carroll</writer>
        <link>https://www.literature.com/book//book/alice_in_wonderland_2</link>
    </result>
</results>
{
	"results": {
		"result": {
			"title": "Alice in Wonderland",
			"subtitle": "Alice's Adventures in Wonderland is an 1865 novel written by English author Charles Lutwidge Dodgson over the pseudonym Lewis Carroll.",
			"writer": "Lewis Carroll",
			"link": "https://www.literature.com/book//book/alice_in_wonderland_2"
		}
	}
}

Want to use this service?

The Literature API service is free to use for up to 100 queries per day.

For a premium commercial license, please contact us.

Apply here

Spring 2024

Writing Contest

Join our short stories contest for an opportunity to win cash prizes and attain global acclaim for your talent.
2
months
12
days
22
hours

Browse Literature.com

Our favorite collection of

Famous Authors

»