Is there an API for the Google Answer Boxes?










12















The Google Answer Boxes (sometimes called Featured Snippets, Knowledge Cards, or Live Results) are extremely helpful. I'd like to extract the information and use it in my own program. Looking at the HTML code, it's not quite so straight forward as pulling it from there. I've done quite a bit of research, but I can't seem to find any support for them. Does anyone know if there is an API (or part of the Web Search API) where you can retrieve the information returned from the Answer Box?



I saw the answer here:
google api for glorious info box?
, but the solution presented was deprecated last month.



enter image description here



Just for an example, this is the HTML code for "What is the time in japan":



<!--m--><div data-hveid="30"> 
<div class="vk_c vk_gy vk_sh card-section _MZc">
<div class="vk_bk vk_ans">6:37 AM</div>
<div class="vk_gy vk_sh"> Tuesday, <span class="_Hq">August 4, 2015</span>
<span class="_Hq"> (GMT+9) </span>
</div> <span class="vk_gy vk_sh"> Time in Japan </span>


Which is VERY different from "where is tokyo located":



<!--m-->
<div class="_uX kno-fb-ctx" aria-level="3" role="heading" data-hveid="41" data-ved="0CCkQtwcoATACahUKEwiLjemg8I3HAhUTKYgKHU7jCho">
<div class="_eF" data-tts="answers" data-tts-text="Japan">Japan</div>
<div class="_Tfc">
</div></div>
<!--n-->
</li><li class="mod" data-md="61" style="clear:none">
<!--m-->
<div class="_oDd" data-hveid="42">
<span class="_Tgc _y9e">Tokyo consists of the southwestern part of the Kanto region, the <b>Izu Islands</b>, and the <b>Ogasawara Islands</b>. Tokyo is the capital of <b>Japan</b>, and the place where over 13 million people live, making it one of the most populous cities in the world.</span></div>


I essentially need to extract "6:37 AM" from the first and "Japan" from the second, but performing a dynamic string search would be difficult as they are in very different formats.










share|improve this question
























  • I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

    – Daz C
    Aug 23 '15 at 22:49
















12















The Google Answer Boxes (sometimes called Featured Snippets, Knowledge Cards, or Live Results) are extremely helpful. I'd like to extract the information and use it in my own program. Looking at the HTML code, it's not quite so straight forward as pulling it from there. I've done quite a bit of research, but I can't seem to find any support for them. Does anyone know if there is an API (or part of the Web Search API) where you can retrieve the information returned from the Answer Box?



I saw the answer here:
google api for glorious info box?
, but the solution presented was deprecated last month.



enter image description here



Just for an example, this is the HTML code for "What is the time in japan":



<!--m--><div data-hveid="30"> 
<div class="vk_c vk_gy vk_sh card-section _MZc">
<div class="vk_bk vk_ans">6:37 AM</div>
<div class="vk_gy vk_sh"> Tuesday, <span class="_Hq">August 4, 2015</span>
<span class="_Hq"> (GMT+9) </span>
</div> <span class="vk_gy vk_sh"> Time in Japan </span>


Which is VERY different from "where is tokyo located":



<!--m-->
<div class="_uX kno-fb-ctx" aria-level="3" role="heading" data-hveid="41" data-ved="0CCkQtwcoATACahUKEwiLjemg8I3HAhUTKYgKHU7jCho">
<div class="_eF" data-tts="answers" data-tts-text="Japan">Japan</div>
<div class="_Tfc">
</div></div>
<!--n-->
</li><li class="mod" data-md="61" style="clear:none">
<!--m-->
<div class="_oDd" data-hveid="42">
<span class="_Tgc _y9e">Tokyo consists of the southwestern part of the Kanto region, the <b>Izu Islands</b>, and the <b>Ogasawara Islands</b>. Tokyo is the capital of <b>Japan</b>, and the place where over 13 million people live, making it one of the most populous cities in the world.</span></div>


I essentially need to extract "6:37 AM" from the first and "Japan" from the second, but performing a dynamic string search would be difficult as they are in very different formats.










share|improve this question
























  • I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

    – Daz C
    Aug 23 '15 at 22:49














12












12








12


10






The Google Answer Boxes (sometimes called Featured Snippets, Knowledge Cards, or Live Results) are extremely helpful. I'd like to extract the information and use it in my own program. Looking at the HTML code, it's not quite so straight forward as pulling it from there. I've done quite a bit of research, but I can't seem to find any support for them. Does anyone know if there is an API (or part of the Web Search API) where you can retrieve the information returned from the Answer Box?



I saw the answer here:
google api for glorious info box?
, but the solution presented was deprecated last month.



enter image description here



Just for an example, this is the HTML code for "What is the time in japan":



<!--m--><div data-hveid="30"> 
<div class="vk_c vk_gy vk_sh card-section _MZc">
<div class="vk_bk vk_ans">6:37 AM</div>
<div class="vk_gy vk_sh"> Tuesday, <span class="_Hq">August 4, 2015</span>
<span class="_Hq"> (GMT+9) </span>
</div> <span class="vk_gy vk_sh"> Time in Japan </span>


Which is VERY different from "where is tokyo located":



<!--m-->
<div class="_uX kno-fb-ctx" aria-level="3" role="heading" data-hveid="41" data-ved="0CCkQtwcoATACahUKEwiLjemg8I3HAhUTKYgKHU7jCho">
<div class="_eF" data-tts="answers" data-tts-text="Japan">Japan</div>
<div class="_Tfc">
</div></div>
<!--n-->
</li><li class="mod" data-md="61" style="clear:none">
<!--m-->
<div class="_oDd" data-hveid="42">
<span class="_Tgc _y9e">Tokyo consists of the southwestern part of the Kanto region, the <b>Izu Islands</b>, and the <b>Ogasawara Islands</b>. Tokyo is the capital of <b>Japan</b>, and the place where over 13 million people live, making it one of the most populous cities in the world.</span></div>


I essentially need to extract "6:37 AM" from the first and "Japan" from the second, but performing a dynamic string search would be difficult as they are in very different formats.










share|improve this question
















The Google Answer Boxes (sometimes called Featured Snippets, Knowledge Cards, or Live Results) are extremely helpful. I'd like to extract the information and use it in my own program. Looking at the HTML code, it's not quite so straight forward as pulling it from there. I've done quite a bit of research, but I can't seem to find any support for them. Does anyone know if there is an API (or part of the Web Search API) where you can retrieve the information returned from the Answer Box?



I saw the answer here:
google api for glorious info box?
, but the solution presented was deprecated last month.



enter image description here



Just for an example, this is the HTML code for "What is the time in japan":



<!--m--><div data-hveid="30"> 
<div class="vk_c vk_gy vk_sh card-section _MZc">
<div class="vk_bk vk_ans">6:37 AM</div>
<div class="vk_gy vk_sh"> Tuesday, <span class="_Hq">August 4, 2015</span>
<span class="_Hq"> (GMT+9) </span>
</div> <span class="vk_gy vk_sh"> Time in Japan </span>


Which is VERY different from "where is tokyo located":



<!--m-->
<div class="_uX kno-fb-ctx" aria-level="3" role="heading" data-hveid="41" data-ved="0CCkQtwcoATACahUKEwiLjemg8I3HAhUTKYgKHU7jCho">
<div class="_eF" data-tts="answers" data-tts-text="Japan">Japan</div>
<div class="_Tfc">
</div></div>
<!--n-->
</li><li class="mod" data-md="61" style="clear:none">
<!--m-->
<div class="_oDd" data-hveid="42">
<span class="_Tgc _y9e">Tokyo consists of the southwestern part of the Kanto region, the <b>Izu Islands</b>, and the <b>Ogasawara Islands</b>. Tokyo is the capital of <b>Japan</b>, and the place where over 13 million people live, making it one of the most populous cities in the world.</span></div>


I essentially need to extract "6:37 AM" from the first and "Japan" from the second, but performing a dynamic string search would be difficult as they are in very different formats.







html google-api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:25









Community

11




11










asked Aug 3 '15 at 22:53









rphello101rphello101

84932354




84932354












  • I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

    – Daz C
    Aug 23 '15 at 22:49


















  • I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

    – Daz C
    Aug 23 '15 at 22:49

















I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

– Daz C
Aug 23 '15 at 22:49






I'm in the same curious boat as you but now I'm exploring DuckDuckGo possibilities since they have a similar feature: duckduckgo.com/api

– Daz C
Aug 23 '15 at 22:49













4 Answers
4






active

oldest

votes


















4














There is an instant answer api available from DuckDuckGo that I've used in the past that works pretty well. The responses aren't as robust as google's but it's a good start.



https://duckduckgo.com/api



The api looks like so in a JSON response.




Abstract: ""
AbstractText: ""
AbstractSource: ""
AbstractURL: ""
Image: ""
Heading: ""
Answer: ""
Redirect: ""
AnswerType: ""
Definition: ""
DefinitionSource: ""
DefinitionURL: ""
RelatedTopics: [ ]
Results: [ ]
Type: ""



I hope this helps!






share|improve this answer






























    3














    I've done a lot of research and it seems like there isn't anything currently available like you've described. There isn't anything that could pull information from Google Searches either.



    The only thing I could think of that could be an alternative is getting information via RSS (http://www.w3schools.com/xml/xml_rss.asp) and implementing that in a program somehow.






    share|improve this answer






























      1














      A bit late, but here is a working solution in 2017 that uses Python and Selenium (with the headless chromedriver) to extract the "primary" text from the answer box, based on the fact that the formatting of the search page and answer box is reasonably consistent across different types of queries (though I haven't tested this exhaustively). Of course, the element coordinates may change depending on resolution/window size, but adjusting for that is easy enough.



      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys
      from selenium.webdriver.chrome.options import Options

      chrome_options = Options()
      chrome_options.add_argument("--window-size=1024x768")
      chrome_options.add_argument("--headless")
      driver = webdriver.Chrome(chrome_options=chrome_options)

      def ask_google(query):

      # Search for query
      query = query.replace(' ', '+')

      driver.get('http://www.google.com/search?q=' + query)

      # Get text from Google answer box

      answer = driver.execute_script(
      "return document.elementFromPoint(arguments[0], arguments[1]);",
      350, 230).text

      return answer


      And testing this approach with your queries (or close to them) produces:



      ask_google("what is the time in Japan")

      "4:36 PM"

      ask_google("where is tokyo located in japan")

      "Situated on the Kanto Plain, Tokyo is one of three large cities, the other two being Yokohama and Kawasaki, located along the northwestern shore of Tokyo Bay, an inlet of the Pacific Ocean on east-central Honshu, the largest of the islands of Japan."





      share|improve this answer

























      • This won't work if you have a newline after the return in your script string.

        – Enrico Borba
        May 2 '18 at 1:09


















      0














      SerpApi supports direct answer box. It seems to support time as well:



      $ curl https://serpapi.com/search.json?q=time+in+japan

      ...
      "answer_box":
      "type": "local_time",
      "result": "4:37 AM"
      ,
      ....


      Some documentation: https://serpapi.com/direct-answer-box-api






      share|improve this answer























      • 50$ for a month is too much.

        – ToraCode
        Mar 4 at 11:14











      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31798009%2fis-there-an-api-for-the-google-answer-boxes%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      There is an instant answer api available from DuckDuckGo that I've used in the past that works pretty well. The responses aren't as robust as google's but it's a good start.



      https://duckduckgo.com/api



      The api looks like so in a JSON response.




      Abstract: ""
      AbstractText: ""
      AbstractSource: ""
      AbstractURL: ""
      Image: ""
      Heading: ""
      Answer: ""
      Redirect: ""
      AnswerType: ""
      Definition: ""
      DefinitionSource: ""
      DefinitionURL: ""
      RelatedTopics: [ ]
      Results: [ ]
      Type: ""



      I hope this helps!






      share|improve this answer



























        4














        There is an instant answer api available from DuckDuckGo that I've used in the past that works pretty well. The responses aren't as robust as google's but it's a good start.



        https://duckduckgo.com/api



        The api looks like so in a JSON response.




        Abstract: ""
        AbstractText: ""
        AbstractSource: ""
        AbstractURL: ""
        Image: ""
        Heading: ""
        Answer: ""
        Redirect: ""
        AnswerType: ""
        Definition: ""
        DefinitionSource: ""
        DefinitionURL: ""
        RelatedTopics: [ ]
        Results: [ ]
        Type: ""



        I hope this helps!






        share|improve this answer

























          4












          4








          4







          There is an instant answer api available from DuckDuckGo that I've used in the past that works pretty well. The responses aren't as robust as google's but it's a good start.



          https://duckduckgo.com/api



          The api looks like so in a JSON response.




          Abstract: ""
          AbstractText: ""
          AbstractSource: ""
          AbstractURL: ""
          Image: ""
          Heading: ""
          Answer: ""
          Redirect: ""
          AnswerType: ""
          Definition: ""
          DefinitionSource: ""
          DefinitionURL: ""
          RelatedTopics: [ ]
          Results: [ ]
          Type: ""



          I hope this helps!






          share|improve this answer













          There is an instant answer api available from DuckDuckGo that I've used in the past that works pretty well. The responses aren't as robust as google's but it's a good start.



          https://duckduckgo.com/api



          The api looks like so in a JSON response.




          Abstract: ""
          AbstractText: ""
          AbstractSource: ""
          AbstractURL: ""
          Image: ""
          Heading: ""
          Answer: ""
          Redirect: ""
          AnswerType: ""
          Definition: ""
          DefinitionSource: ""
          DefinitionURL: ""
          RelatedTopics: [ ]
          Results: [ ]
          Type: ""



          I hope this helps!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 3 '16 at 13:57









          cfgcfg

          27826




          27826























              3














              I've done a lot of research and it seems like there isn't anything currently available like you've described. There isn't anything that could pull information from Google Searches either.



              The only thing I could think of that could be an alternative is getting information via RSS (http://www.w3schools.com/xml/xml_rss.asp) and implementing that in a program somehow.






              share|improve this answer



























                3














                I've done a lot of research and it seems like there isn't anything currently available like you've described. There isn't anything that could pull information from Google Searches either.



                The only thing I could think of that could be an alternative is getting information via RSS (http://www.w3schools.com/xml/xml_rss.asp) and implementing that in a program somehow.






                share|improve this answer

























                  3












                  3








                  3







                  I've done a lot of research and it seems like there isn't anything currently available like you've described. There isn't anything that could pull information from Google Searches either.



                  The only thing I could think of that could be an alternative is getting information via RSS (http://www.w3schools.com/xml/xml_rss.asp) and implementing that in a program somehow.






                  share|improve this answer













                  I've done a lot of research and it seems like there isn't anything currently available like you've described. There isn't anything that could pull information from Google Searches either.



                  The only thing I could think of that could be an alternative is getting information via RSS (http://www.w3schools.com/xml/xml_rss.asp) and implementing that in a program somehow.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 4 '16 at 19:38









                  Andrew1996Andrew1996

                  260215




                  260215





















                      1














                      A bit late, but here is a working solution in 2017 that uses Python and Selenium (with the headless chromedriver) to extract the "primary" text from the answer box, based on the fact that the formatting of the search page and answer box is reasonably consistent across different types of queries (though I haven't tested this exhaustively). Of course, the element coordinates may change depending on resolution/window size, but adjusting for that is easy enough.



                      from selenium import webdriver
                      from selenium.webdriver.common.keys import Keys
                      from selenium.webdriver.chrome.options import Options

                      chrome_options = Options()
                      chrome_options.add_argument("--window-size=1024x768")
                      chrome_options.add_argument("--headless")
                      driver = webdriver.Chrome(chrome_options=chrome_options)

                      def ask_google(query):

                      # Search for query
                      query = query.replace(' ', '+')

                      driver.get('http://www.google.com/search?q=' + query)

                      # Get text from Google answer box

                      answer = driver.execute_script(
                      "return document.elementFromPoint(arguments[0], arguments[1]);",
                      350, 230).text

                      return answer


                      And testing this approach with your queries (or close to them) produces:



                      ask_google("what is the time in Japan")

                      "4:36 PM"

                      ask_google("where is tokyo located in japan")

                      "Situated on the Kanto Plain, Tokyo is one of three large cities, the other two being Yokohama and Kawasaki, located along the northwestern shore of Tokyo Bay, an inlet of the Pacific Ocean on east-central Honshu, the largest of the islands of Japan."





                      share|improve this answer

























                      • This won't work if you have a newline after the return in your script string.

                        – Enrico Borba
                        May 2 '18 at 1:09















                      1














                      A bit late, but here is a working solution in 2017 that uses Python and Selenium (with the headless chromedriver) to extract the "primary" text from the answer box, based on the fact that the formatting of the search page and answer box is reasonably consistent across different types of queries (though I haven't tested this exhaustively). Of course, the element coordinates may change depending on resolution/window size, but adjusting for that is easy enough.



                      from selenium import webdriver
                      from selenium.webdriver.common.keys import Keys
                      from selenium.webdriver.chrome.options import Options

                      chrome_options = Options()
                      chrome_options.add_argument("--window-size=1024x768")
                      chrome_options.add_argument("--headless")
                      driver = webdriver.Chrome(chrome_options=chrome_options)

                      def ask_google(query):

                      # Search for query
                      query = query.replace(' ', '+')

                      driver.get('http://www.google.com/search?q=' + query)

                      # Get text from Google answer box

                      answer = driver.execute_script(
                      "return document.elementFromPoint(arguments[0], arguments[1]);",
                      350, 230).text

                      return answer


                      And testing this approach with your queries (or close to them) produces:



                      ask_google("what is the time in Japan")

                      "4:36 PM"

                      ask_google("where is tokyo located in japan")

                      "Situated on the Kanto Plain, Tokyo is one of three large cities, the other two being Yokohama and Kawasaki, located along the northwestern shore of Tokyo Bay, an inlet of the Pacific Ocean on east-central Honshu, the largest of the islands of Japan."





                      share|improve this answer

























                      • This won't work if you have a newline after the return in your script string.

                        – Enrico Borba
                        May 2 '18 at 1:09













                      1












                      1








                      1







                      A bit late, but here is a working solution in 2017 that uses Python and Selenium (with the headless chromedriver) to extract the "primary" text from the answer box, based on the fact that the formatting of the search page and answer box is reasonably consistent across different types of queries (though I haven't tested this exhaustively). Of course, the element coordinates may change depending on resolution/window size, but adjusting for that is easy enough.



                      from selenium import webdriver
                      from selenium.webdriver.common.keys import Keys
                      from selenium.webdriver.chrome.options import Options

                      chrome_options = Options()
                      chrome_options.add_argument("--window-size=1024x768")
                      chrome_options.add_argument("--headless")
                      driver = webdriver.Chrome(chrome_options=chrome_options)

                      def ask_google(query):

                      # Search for query
                      query = query.replace(' ', '+')

                      driver.get('http://www.google.com/search?q=' + query)

                      # Get text from Google answer box

                      answer = driver.execute_script(
                      "return document.elementFromPoint(arguments[0], arguments[1]);",
                      350, 230).text

                      return answer


                      And testing this approach with your queries (or close to them) produces:



                      ask_google("what is the time in Japan")

                      "4:36 PM"

                      ask_google("where is tokyo located in japan")

                      "Situated on the Kanto Plain, Tokyo is one of three large cities, the other two being Yokohama and Kawasaki, located along the northwestern shore of Tokyo Bay, an inlet of the Pacific Ocean on east-central Honshu, the largest of the islands of Japan."





                      share|improve this answer















                      A bit late, but here is a working solution in 2017 that uses Python and Selenium (with the headless chromedriver) to extract the "primary" text from the answer box, based on the fact that the formatting of the search page and answer box is reasonably consistent across different types of queries (though I haven't tested this exhaustively). Of course, the element coordinates may change depending on resolution/window size, but adjusting for that is easy enough.



                      from selenium import webdriver
                      from selenium.webdriver.common.keys import Keys
                      from selenium.webdriver.chrome.options import Options

                      chrome_options = Options()
                      chrome_options.add_argument("--window-size=1024x768")
                      chrome_options.add_argument("--headless")
                      driver = webdriver.Chrome(chrome_options=chrome_options)

                      def ask_google(query):

                      # Search for query
                      query = query.replace(' ', '+')

                      driver.get('http://www.google.com/search?q=' + query)

                      # Get text from Google answer box

                      answer = driver.execute_script(
                      "return document.elementFromPoint(arguments[0], arguments[1]);",
                      350, 230).text

                      return answer


                      And testing this approach with your queries (or close to them) produces:



                      ask_google("what is the time in Japan")

                      "4:36 PM"

                      ask_google("where is tokyo located in japan")

                      "Situated on the Kanto Plain, Tokyo is one of three large cities, the other two being Yokohama and Kawasaki, located along the northwestern shore of Tokyo Bay, an inlet of the Pacific Ocean on east-central Honshu, the largest of the islands of Japan."






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited May 2 '18 at 5:54









                      Enrico Borba

                      534415




                      534415










                      answered Nov 14 '17 at 7:40









                      dscripkadscripka

                      314




                      314












                      • This won't work if you have a newline after the return in your script string.

                        – Enrico Borba
                        May 2 '18 at 1:09

















                      • This won't work if you have a newline after the return in your script string.

                        – Enrico Borba
                        May 2 '18 at 1:09
















                      This won't work if you have a newline after the return in your script string.

                      – Enrico Borba
                      May 2 '18 at 1:09





                      This won't work if you have a newline after the return in your script string.

                      – Enrico Borba
                      May 2 '18 at 1:09











                      0














                      SerpApi supports direct answer box. It seems to support time as well:



                      $ curl https://serpapi.com/search.json?q=time+in+japan

                      ...
                      "answer_box":
                      "type": "local_time",
                      "result": "4:37 AM"
                      ,
                      ....


                      Some documentation: https://serpapi.com/direct-answer-box-api






                      share|improve this answer























                      • 50$ for a month is too much.

                        – ToraCode
                        Mar 4 at 11:14















                      0














                      SerpApi supports direct answer box. It seems to support time as well:



                      $ curl https://serpapi.com/search.json?q=time+in+japan

                      ...
                      "answer_box":
                      "type": "local_time",
                      "result": "4:37 AM"
                      ,
                      ....


                      Some documentation: https://serpapi.com/direct-answer-box-api






                      share|improve this answer























                      • 50$ for a month is too much.

                        – ToraCode
                        Mar 4 at 11:14













                      0












                      0








                      0







                      SerpApi supports direct answer box. It seems to support time as well:



                      $ curl https://serpapi.com/search.json?q=time+in+japan

                      ...
                      "answer_box":
                      "type": "local_time",
                      "result": "4:37 AM"
                      ,
                      ....


                      Some documentation: https://serpapi.com/direct-answer-box-api






                      share|improve this answer













                      SerpApi supports direct answer box. It seems to support time as well:



                      $ curl https://serpapi.com/search.json?q=time+in+japan

                      ...
                      "answer_box":
                      "type": "local_time",
                      "result": "4:37 AM"
                      ,
                      ....


                      Some documentation: https://serpapi.com/direct-answer-box-api







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 15 at 19:39









                      HartatorHartator

                      2,29722965




                      2,29722965












                      • 50$ for a month is too much.

                        – ToraCode
                        Mar 4 at 11:14

















                      • 50$ for a month is too much.

                        – ToraCode
                        Mar 4 at 11:14
















                      50$ for a month is too much.

                      – ToraCode
                      Mar 4 at 11:14





                      50$ for a month is too much.

                      – ToraCode
                      Mar 4 at 11:14

















                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31798009%2fis-there-an-api-for-the-google-answer-boxes%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                      Syphilis

                      Darth Vader #20