How to search for a title using the API

Avatar image for nanashi001
Nanashi001

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hello there,

I am trying to create an application that uses a variety of Sources to tag Comics stored in Komga. For that, I am trying to create some API requests to get the required data.

What I'm trying to do is:

- request volume and issue data using (this is already done using api)

- request volumes based on title (i struggle with this one)

I tried using:

https://comicvine.gamespot.com/api/search/volume/{theTitle}?api_key={myKey}&format=json

https://comicvine.gamespot.com/api/volume/{theTitle}?api_key={myKey}&format=json

is this wrong? I know that it technically is possible to get data using the title because some other applications are doing this, but I want to learn to do it myself.

Any help is appreciated.

Avatar image for flips
flips

7

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By flips

You are close. You need to change volume to volumes and then add filter by name with: &filter=name:Ultimate%20Spider-Man

so it would be:

https://comicvine.gamespot.com/api/volumes/?api_key={mykey]&format=json&filter=name:Ultimate%20Spider-Man

EDIT:

Another option if you want to search for something more exact:

https://comicvine.gamespot.com/api/search/?api_key={mykey}&format=json&resources=volume&query=Ultimate%20Spider-Man

The later only returns exact volume matches that are "Ultimate Spider-Man" where as the first option returns everything with the words at least Ultimate Spider-Man in it. I see 72 matches for the first and 8 matches for the second.

Avatar image for nanashi001
Nanashi001

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#3  Edited By Nanashi001

Thanks for the help ^^

I'll use that to create my custom calls