+ Reply to Thread
Results 1 to 12 of 12

Excel - Powerquery Help with setting up Authentication through API

  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Excel - Powerquery Help with setting up Authentication through API

    Hi There,

    Could some one help me setup a web query *through powerquery* to a website called.
    https://woei.degraaflogistics.nl/nl/default.aspx

    i would like to download the data behind the login screen but first i need to login.
    The IT people of the company has made a name a Apikey and a token for me.

    I'm not sure how to start setting up and what i exactly need to do so.

    So far i've read.
    You need to put the apikey/token in the header in the advanced editor (so hard code it)
    You always need to click anonymous.

    i have tried some things but i wont get far...

    greetings,

    Aaron

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Excel - Powerquery Help with setting up Authentication through API

    There's an excellent tutorial here: https://www.myonlinetraininghub.com/...-filling-forms
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel - Powerquery Help with setting up Authentication through API

    Change your Web.Contents query string to include the API Token:

    Please Login or Register  to view this content.
    Now change the Data Source Settings, Edit Permissions, Edit Credentials, select Web API and enter your API key:

    Attachment 633749
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Re: Excel - Powerquery Help with setting up Authentication through API

    Hi There,

    I can't download anything and i am using office 365 with powerquery added in.

    But that looks like a nice tut.

    gr,

    Aaron

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel - Powerquery Help with setting up Authentication through API

    You don't need to download anything?

  6. #6
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Re: Excel - Powerquery Help with setting up Authentication through API

    Hey olly,

    Hmm that's weird i replied to the post of the lady.

    Ill try your method soon

    sadly i can't see the attachment.
    it redirects me to this website with a contact the moderator.

    gr,

    Aaron

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel - Powerquery Help with setting up Authentication through API

    The attachment was just an image of the Access Web Content dialog box, where you need to select "Web API" and enter your API key.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: Excel - Powerquery Help with setting up Authentication through API

    I didn't tell you to download anything - I merely pointed you to a tutorial that I felt might help you!

    Image from post #3:
    Attached Images Attached Images

  9. #9
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Re: Excel - Powerquery Help with setting up Authentication through API

    Quote Originally Posted by AliGW View Post
    I didn't tell you to download anything - I merely pointed you to a tutorial that I felt might help you!
    the tutorial describes i need to download selenium basic in order to get moving. sadly i can't download anything since we have an IT department.
    thanks for the image.. Im going to try and set this thing up!

  10. #10
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Re: Excel - Powerquery Help with setting up Authentication through API

    Quote Originally Posted by Olly View Post
    Change your Web.Contents query string to include the API Token:

    Please Login or Register  to view this content.
    Now change the Data Source Settings, Edit Permissions, Edit Credentials, select Web API and enter your API key:

    Attachment 633749
    Hey olly,

    What do i exactly need to do?

    As far as i can understand:

    Create a new source -> different sources -> Web.

    At url I use default - https://woei.degraaflogistics.nl/nl/default.aspx -> OK


    than copy past the stuff you said to advanced editor.

    Now when i click source i can see that the from WEB has changed to advanced and there is a url-part and now i see Parameters of http header = APItoken .

    Now it gives me the error that my reference that i gve is invalid
    When i open the error it gives me the Key and level i need the key to be used.

    I have tried to put the token in but then he say's a web API key can only be used when the web api key has a name.
    so now im stranded there

    They made me a login name - a password and a token. Is the token the two combined?

    greetings,

    Aaron
    Attached Images Attached Images

  11. #11
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel - Powerquery Help with setting up Authentication through API

    Anything I advise now will be guesswork - you need to speak to the API authors to clarify exactly what needs passed in the query, to authenticate correctly.

  12. #12
    Registered User
    Join Date
    12-22-2014
    Location
    Netherlands
    MS-Off Ver
    O365
    Posts
    58

    Re: Excel - Powerquery Help with setting up Authentication through API

    I will try and contact the IT department @ the website.

    thanks for the help.

    greetings,
    aaron

+ 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. Need Help Setting Up NT Authentication
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2017, 03:31 PM
  2. Excel 2010 server authentication failing
    By JoshuaBr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2015, 07:34 PM
  3. user level authentication excel 03
    By gsheets in forum Excel General
    Replies: 6
    Last Post: 03-13-2015, 02:42 AM
  4. Excel-Sharepoint Authentication
    By taylordgordon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2008, 09:35 PM
  5. user level authentication excel 03
    By neilcarden in forum Excel General
    Replies: 1
    Last Post: 12-04-2007, 04:31 PM
  6. MAC authentication in Excel VBA
    By sieglej in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-01-2006, 11:20 AM
  7. [SOLVED] http post from excel - user authentication from excel to web
    By bruce in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2006, 07:50 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