+ Reply to Thread
Results 1 to 3 of 3

Trying to web query an api url but the result is asking to save file instead of importing

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    rochester, ny
    MS-Off Ver
    Excel 2013
    Posts
    14

    Trying to web query an api url but the result is asking to save file instead of importing

    I have done web queries in the past. But I am now trying to use API data instead of whatever content imports from a web query.

    When I go to the following url in a browser, I get a page full of script, I believe in JSON format: https://proapi.whitepages.com/2.2/lo...e+65&api_key=x

    but when I try to paste this URL into the excel web query browser window, this same result does not display as with a normal browser window, but instead it asks me where to save the file. I can also open the file, but it opens a new excel window and places the data in there. I want the script to just import into excel the same as when I use the url in a normal browser window.

    The problem I run into when trying to open the file is that none of these actions are recorded when I start recording a macro. I was hoping to record a macro of me web querying the api url and either get the JSON script directly in the excel window I had open or copy the script from the new excel window and paste it in the window I originally had opened.

    If I cannot import the results of the web query with the api url, what is the next alternative to getting the data into exel?

    I deleted the api key at the end of the url as I was not sure that this was something that should be posted.

    Any help is appreciated
    Last edited by dwassner; 10-13-2016 at 09:04 AM.

  2. #2
    Registered User
    Join Date
    03-19-2012
    Location
    rochester, ny
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Trying to web query an api url but the result is asking to save file instead of import

    ? any thoughts ?

  3. #3
    Registered User
    Join Date
    03-19-2012
    Location
    rochester, ny
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Trying to web query an api url but the result is asking to save file instead of import

    I will simplify as I have not gotten any responses yet. When I access the whitepages pro url and use the api key, doing this in a normal browser window produces a page full of script. It is exactly what I am looking for. But when I use this same URL in the excel web query browser window, the page of script does not appear. Instead it asks me to save a file. How do I see the script instead?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Polish signs error during importing from TXT file to Excel - MS Query UTf 8 encoding
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2016, 05:44 AM
  2. Looking to automatically save file as new file name after a query is run
    By karlzweb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2014, 09:21 PM
  3. Replies: 1
    Last Post: 08-13-2013, 03:25 AM
  4. Replies: 0
    Last Post: 06-13-2013, 07:00 PM
  5. Importing txt file into excel but save as messes it up...
    By Dustin S. in forum Excel General
    Replies: 0
    Last Post: 01-14-2009, 03:11 PM
  6. Replies: 0
    Last Post: 03-15-2006, 09:40 PM
  7. Auto Open file VBA Refresh MS Query Save Close
    By gcutter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1