All integrationsFilm, TV & Fandom

Avatar API

Bring Avatar: The Last Airbender into a workflow from the free, keyless Avatar API: its characters, with their nation, bending, portrait, allies and enemies; all 61 episodes, with their air dates and credits; and a bank of multiple-choice trivia questions.

actions
12

Actions

Steps a workflow can run in Avatar API.

  • Get show detailsGet the show's synopsis, genres and creators, when it aired, and how many seasons and episodes it ran to, season by season. The service's own record says the show aired from 2003, but its episode list starts on February 21, 2005, the night it premiered, so the dates and counts here are worked out from the episodes themselves.
  • Get a characterLook up one character and get everything the service knows about them: their nation and bending, a portrait, nicknames, allies and enemies, titles, and who voiced them. Pick them from the list, or pass a name, a nickname or an id in from an earlier step: 'Mushi' finds Iroh, and a nickname two characters share comes back saying which rather than guessing. The service's records are a scrape of the Avatar Wiki with rows out of place; they are put back before anything is returned.
  • Find charactersBrowse the characters, or just the ones you want: search their names, nicknames, titles and groups for a word, keep only one nation, or only the benders of one element, or only the non-benders. The service records neither a nation nor an element, so both are read off each character, which is what makes 'every firebender' one step. The number of characters matching is always reported, however many are returned.
  • Get a random characterPick one character at random, for a character spotlight, from everyone or from one nation or element. Different every call. Set a seed when two runs have to agree instead.
  • Get an episodeLook up one episode: its title, season, air date, director, writers and animation studio. Pick it from the list, or pass a title, a code such as S02E06, or its number in the whole series (1 to 61) in from an earlier step. A title that fits several episodes - 'Sozin's Comet' has four parts - comes back listing them rather than guessing.
  • Find episodesBrowse all 61 episodes, or just the ones you want: one season, a search of the titles and credits, or the episodes first aired on a day of the year, for an 'on this day' post. Titles come without the quote marks the service wraps them in, and air dates as real dates. The number of episodes matching is always reported, however many are returned.
  • Get a random episodePick one episode at random (the answer to 'what shall we watch tonight?') from the whole show or from one season. Different every call. Set a seed when two runs have to agree instead.
  • Get a random trivia questionPick one of the service's multiple-choice questions at random, with its options lettered and set out ready to post, and its answer. Different every call. Set a seed when two runs have to agree instead. For a question that stays the same all day, use Get the trivia question of the day.
  • Get the trivia question of the dayPick one question for a day and keep picking that same question all day, so a morning step can post the question and an evening one the answer. Each day takes the next question in one fixed order through the whole bank, so no question comes round again until every other one has had its day, where a fresh random pick each day would repeat within a week about half the time. Add a seed of your own to give a workspace its own order.
  • Get a trivia quizPut together a quiz of several different questions, returned as records, as one block of text ready to post, and with a separate answer key, so a workflow can send the quiz now and the answers later. Different every call; a seed makes the same quiz every time.
  • Check a trivia answerMark a player's answer to a question and get the right one back. The answer can be the option's letter or its words, however they are capitalised: 'Fire Nation' answers 'the Fire Nation'. A wrong answer, one that picks out none of the options and no answer at all are all marked wrong rather than failing the step, so a quiz bot can reply to anything a player sends.
  • Check service statusCheck whether the Avatar API is answering, how quickly, and how much of the rate limit is left. This is the one action that reports a problem as a value instead of failing the step, so a workflow can decide what to do about it. Being throttled is reported separately from being down.

Automate Avatar API with Lodol.

Connect Avatar API and ask your AI for your first workflow.

Free plan, no credit card