• Installs:
  • Today: 12
  • This Week: 108
  • This Month: 372
  • All Time: 19599


The query endpoint is used to process natural language, either in the form of text or a sound file.

Test This Block

  • apiKey
    Body parameter
    Access token obtained from API.AI

  • gear
    Required Parameters

    • query
      Body parameter
      Natural language text to be processed. Requests can have multiple 'query' parameters.
    • sessionId
      Body parameter
      A string token up to 36 symbols long, used to identify the client and to manage session parameters (including contexts) per client.
    • lang
      Body parameter
      Language tag, e.g., en, es etc.
    Optional Parameters
    • context
      Body parameter
      Array of additional context objects. Should be sent via a POST /query request. Contexts sent in a query are activated before the query. JSON format.
    • entities
      Body parameter
      Array of entities that replace developer defined entities for this request only. The entity(ies) need to exist in the developer console. Entities JSON format follows the format used in the /entities endpoint.
    • timezone
      Body parameter
      Time zone from IANA Time Zone Database
    • location
      Body parameter
      Latitude value. Json format.
    • resetContexts
      Body parameter
      If true, all current contexts in a session will be reset before the new ones are set. False by default.
    Show Optional Parameters
    TEST Function
    CODE (NodeJS)

    Nice try, But you still have to Log in.
    Meanwhile, you can enjoy this limerick:

    "A programming genius called HEAP
    Had trouble in getting to sleep
    So he made his lambs troup
    through a huge FOR-NEXT loop
    FOR 1 TO 10000: NEXT sheep."

    Sign in to get the snippet
    Sign In
    $ / m
    We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.

    Oops, we are missing some details

    Looks like there are a few missing details that you haven't filled in yet.
    These details are important and will help us protect you and let you know about anything new.


    Connect your app to ApiAI via RapidAPI

    Consume and monitor multiple APIs through the RapidAPI SDK.
    Click start to set up your app and connect to ApiAI.


    Give your app a name

    This app will be used in RapidAPI to collect and connect all the APIs you need.


    Connect your project

    Choose your backend language and then install & require the RapidAPI SDK.

    • node
    • php
    • python
    • objc
    • android
    • go
    • ruby
    • csharp

    Install SDK

    Run the following command to install the SDK:

    npm install rapidapi-connect --save

    Require SDK

    In your code, add the following code to require the RapidAPI SDK:


    Hooray! You are connected

    Use the following code to try it out by getting all the APIs that are on RapidAPI.

    rapid.call('RapidAPI', 'getAll', {'{}'});
    esccloses this view

    Login to RapidAPI

    Create endpoints based on popular APIs and share with others.
    Follow popular APIs and get updated. Stand out in the community of developers.

    Login with Github
    Login with Facebook
    Login with Google
    Remember Me

  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view

    Why sign up to RapidAPI?

    • integrate
      Integrate APIs into your app
      Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
    • keys
      Save all API keys in one place
    • notifications
      Get notifications about API changes
    • stats
      Get stats and monitor API connections
    Sign up with Github
    Sign up with Facebook
    Sign up with Google
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view


    esccloses this view