+ Reply to Thread
Results 1 to 9 of 9

Help to Get data from API and with KEY

  1. #1
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Help to Get data from API and with KEY

    Hi

    I am trying to pull information from an API but I can't work out how to do the coding.
    We use workbook connection with Power Query now to get the data, But I think it reads 100 or 200 rows at a time and it takes quiet some time.
    We would like to use it in a VBA application wee already have, so I was asked to get this part done.
    I have never used API to get data before, so I am a bit lost.
    I have looked online and found som templates, but I am still a bit lost.

    I have been provided the below in relation to the API and I have my API key to add in but would appreciate it if someone could assist with how I need to code it.

    Please Login or Register  to view this content.
    I have attaced a sample WB with Sheet ("Rooms") and the table in it.

    The WB with template code I found online is this also attaced, (TEMPLATE)
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by nordicdust; 03-09-2023 at 12:40 PM. Reason: Better Title

  2. #2
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Help to Get data from API and with KEY

    I have changed the title as there has been no responce. I thought that it might have been a poor title.

    Is there anything else I can show if my problem is not clear.

    I would realy appriciate some help.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Help to Get data from API and with KEY


    Hi,

    as we can't obviously try so difficult to help …

  4. #4
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Help to Get data from API and with KEY

    Thanks Marc

    I will try and write the code and se witch errors I get, and maybe someone can help with the errors or syntax.

  5. #5
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Help to Get data from API and with KEY

    Hi,

    I can get data now, but I need to paste it in my table, I will need help for that.
    I have attaced a Text file where you can see the data i get, and the picture shows the table.

    My code as is now.

    Please Login or Register  to view this content.
    can I provide any other information to get a litle help.
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Help to Get data from API and with KEY


    I have no clue where comes your 'JsonConverter' but it seems to convert nothing !
    And obviously the request status must be checked before to convert anything …

    Different ways to extract Json data, a sample in this thread

  7. #7
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Help to Get data from API and with KEY

    You might want to check out this Youtube video

  8. #8
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Help to Get data from API and with KEY

    Thanks, I have seen that.

  9. #9
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Help to Get data from API and with KEY

    Ok, so now I kan get all the data from the api
    This is my code, and please feel free to come with improvements :-)

    Please Login or Register  to view this content.
    Can someone help with getting the nextBookmark value from the metadata from the api?
    This is the metadata from the api:
    Please Login or Register  to view this content.

+ 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. Replies: 5
    Last Post: 10-03-2019, 07:23 PM
  2. [SOLVED] Read ( FRONT ) page data then transfer that data to the main data Sheet (OPEN)
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 08-22-2019, 01:35 AM
  3. Replies: 37
    Last Post: 08-02-2019, 05:47 AM
  4. Replies: 2
    Last Post: 04-30-2017, 08:28 PM
  5. Replies: 11
    Last Post: 12-23-2014, 01:01 PM
  6. Replies: 34
    Last Post: 01-21-2014, 03:07 PM
  7. Replies: 2
    Last Post: 07-18-2012, 09:11 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