Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Seb-L/songkick-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

songkick-graphql

SongKick API GraphQL wrapper (⚠️ Work in progress ⚠️). Use it as a reference to build a GraphQL server to wrap an existing API.

Uses graphql-import and graphql-yoga.

Install

Clone the repo then:

npm i

Run dev

SKKEY=YOU_SONGKICK_API_KEY npm start

GraphiQL will be available on http://localhost:4000

Query example:

{
  artists (query: "thee oh sees", per_page: 1) {
    id
    displayName
    events (per_page: 1) {
      id
      displayName
    }
  }
}

Will output

{
  "data": {
    "artists": [
      {
        "id": 2321725,
        "displayName": "Thee Oh Sees",
        "events": [
          {
            "id": 33137014,
            "displayName": "Thee Oh Sees at O2 Forum Kentish Town (September 3, 2018)"
          }
        ]
      }
    ]
  }
}

Get an API Key

You can create an API key: HERE

API References

You'll find the API references: HERE

About

A GraphQL SongKick API Wrapper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published