How To Build A Web App, part 9 of ?: connect to the Ticketmaster API

What’s an API?

One Stepping Stone Too Many?

API Consumer Key

Return comedy-gigs data from Ticketmaster’s API

$ curl \
> --include ''
HTTP/1.1 200 OK
Accept-Ranges: bytes
Accept-Ranges: bytes
Accept-Ranges: bytes
Accept-Ranges: bytes
Access-Control-Allow-Headers: origin, x-requested-with, accept
Access-Control-Allow-Methods: GET, PUT, POST, DELETE
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3628800
Age: 0
Age: 0
Content-Type: application/json;charset=utf-8
Date: Mon, 07 Oct 2019 03:43:10 GMT
Rate-Limit: 5000
Rate-Limit-Available: 4994
Rate-Limit-Over: 0
Rate-Limit-Reset: 1570503621650
Server: nginx
Set-Cookie: TMSO=seed=0bad7b43a051&exp=1570503622&kid=key1&sig=0x8cfc1d4ea6311175e3065825f302e90f6074129de9d1e567454b33bdd673c8cd5df4f841558e575adca518cd7357f2f76887af063f2a813ceb8dd83c97874ea3; Path=/; Expires=Tue, 08 Oct 2019 03:00:22 GMT
Vary: Accept-Encoding,Accept-Encoding
Via: 1.1 varnish
Via: 1.1 varnish
X-Application-Context: application:default,jash1,docker:8080
X-Cache-Hits: 0, 0
X-Served-By: cache-bwi5149-BWI, cache-sea1022-SEA
X-Timer: S1570417222.654540,VS0,VE267
X-TM-SESSION-BID: bk2ar98rs4ov6qvfgrs52h8bd
Content-Length: 10762
Connection: keep-alive
{ a ton of JSON, like, hundreds of lines of it }
curl \
--include ''
"page": {
"size": 20,
"totalElements": 1341,
"totalPages": 68,
"number": 0



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store