Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
/ ComicsAPI Public archive

Documentation for API providing a list of comics released this week and next.

License

Notifications You must be signed in to change notification settings

Squls/ComicsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This documentation and the API it refers to are now deprecated as Comic List has moved its listings to blog.gocollect.com.

This endpoint provides a service for getting comic releases by way of scraping data from comiclist.com. This project was initially devised as a way of creating and testing a simple site scraping class for use in other projects. This means that this service will exist as long as Comic List does or they block the IP. Which ever occurs first.

API

Endpoints

The base url will return all publishers and titles for the current week.

Example base url call:

https://ghostbox.design/api/comics

Example JSON returned:

[{
	"publisher": "DC COMICS",
	"titles": ["Batman #1",
            "Superman #1"]
},
{
	"publisher": "MARVEL COMICS",
	"titles": ["Spider-Man #1",
            "Uncanny X-Men #1"]
}]

It also accepts four additional parameters.

week

This allows you to select the required weeks data. Accepts either this, next or last.

Example call:

https://ghostbox.design/api/comics?week=next

publishers

Accepts a comma separated list of comic publishers.

Example call:

https://ghostbox.design/api/comics?publishers=dc%20comics,marvel%20comics

At time of creation the available publishers were:

Abrams Comicarts, Action Lab Entertainment, Aftershock Comics, American Gothic Press, Amigo Comics, Antarctic Press, Archie Comic Publications, Aspen Comics, Big Finish, Blizzard Entertainment, BOOM! Studios, Broadsword Comics, Cinebook, Comic Shop News, Danger Zone, Dark Horse Comics, Dark Planet, DC Comics, Dead Reckoning, Drawn And Quarterly, Dynamic Forces, Dynamite Entertainment, Ember, Fantagraphics Books, First Second, Gallery 13, Golden Apple Books, Hachette Partworks, Graphic India, IDW Publishing, Image Comics, Keenspot Entertainment, Kodansha Comics, Last Gasp, Lion Forge, Margaret K Mcelderry Books, Marvel Comics, Nobrow, Panini Publishing, Oni Press, Ps Artbooks, Random House Books For Young Readers, Rebellion/2000 Ad, Renegade Arts Entertainment, Sanctum Productions, Scout Comics, Stone Arch Books, Titan Comics, Tohan Corporation, Tokyopop, University Press Of Mississippi, Viz Media, William Morrow, Zenescope Entertainment

titles

Will return an unordered list of all titles without publishers. Accepts boolean of 1 or 0. If publisher is also set as a parameter it will be ignored.

Example call:

https://ghostbox.design/api/comics?titles=1

novariants

Including this parameter will strip all references to variant covers or cover options, returning only one version per comic title. Accepts boolean of 1 or 0. So if variants are not required pass 1.

Example call:

https://ghostbox.design/api/comics?novariants=1

Code

Scraper Class

This API uses a custom webscraper class included in Scrape.php

Get Items By Tag

/**
** @param String $resource Html that requires processing
** @param String $starttag First target tag/string to search by
** @param String $endtag last target tag/string to search by
** @return Array Containing contents of tags
**/
getItemsByTag($resource, $starttag, $endtag)

Trim Data

/**
** @param Array $data Html that requires processing
** @param Int $beginning Items to be trimmed from beginning
** @param Int $end last Items to be trimmed from end
** @return Array Containing trimmed data
**/
trimData($data, $beginning, $end)

Clean Data

/**
** @param Array $data Raw scraped data
** @return Json Converted array
**/
cleanData($data)

To Do

  • Add key
  • Fix passed publisher list functionality

Issues

Please feel free to report any issues on the Github page.

About

Documentation for API providing a list of comics released this week and next.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages