Skip to content

A crawler that search a book in the Amazon website

Notifications You must be signed in to change notification settings

leblancphil/php-book-amazon-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Book Searcher

A simple API that search a book and retrieve a JSON result.

Just make a request with GET method with parameter name bookName. Like:

/book_search.php?bookName=CleanCode

Response

If there is results, response code will be 200 and body:

[
	{
		"id": 2455124,
		"name": "Some book name",
		"author": "Name Here",
		"aval": 4.3,
		"imageSrc": "http://somedestination/asasa1212.jpg"
	},
	{
		"id": 7312444896,
		"name": "Some other name",
		"author": "Other Here",
		"aval": 2.0,
		"imageSrc": "http://somedestination/1231s.jpg"
	}
]

If there is no results, response code will be 204 with empty body.

If some error happened, response code will be 404 with some info.

{
	"info": "Invalid search"
}

About

A crawler that search a book in the Amazon website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages