Skip to content

Instantly share code, notes, and snippets.

@patcon
Last active May 28, 2017 22:25
Show Gist options
  • Save patcon/a42d77a97a91d9a8d276d1f92afec2d1 to your computer and use it in GitHub Desktop.
Save patcon/a42d77a97a91d9a8d276d1f92afec2d1 to your computer and use it in GitHub Desktop.
Documentation of the unofficial NOW Toronto event listing API.

NOW Toronto API

Full examples:

Base url: https://nowtoronto.com/api/search

Common parameters

  • page
  • search_value
  • search_date: Format "YYYY-MM-DD".
  • categories: common-separated list of concatenated, format <cat>_<subcat> or 1_1234.
  • tile: mapping tile. Format x,y,z, where "z" is zoom level, and "x" and "y" are tile designations at that zoom level.
    • Note: 0,0,0 is the only tile at the lowest zoom level (ie. world map), and so gets all results.

Methods

One of these methods must be used as the final url part of an event or location endpoint (see below).

  • /get_categories: Gets an array of numerical sets for all active categories from a given query. Each set is an array [x, y] where x is the category id, and y is the 4-digit sub-category id.
    • Example, "Guides & Special Issues" is category "1", so if a set for [1, 1932] is returned, then it means that the query is possible to further filter by the sub-category "1931", which happens to be "Luminato". So in the UI, the "Luminato" checkbox is active and selectable for further filtering.
    • Note that the page common param is ignored, and simply all category sets are returned.
  • /get_search_results: This returns an array of results for the query, filtered
  • /get_map_search_results: A method specific to locations. Required a tile param (unknown format)

Events

/event/all

/event/all-picks

/event/food-and-drink

/event/music

/event/stage

/event/community-events

/event/art

/event/books

/event/film

Locations

/location/all

/location/galleries

/location/museums

/location/restaurants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment