• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

API Web Scraping|Power Query|Excel Forum|My Online Training Hub

You are here: Home / API Web Scraping|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryAPI Web Scraping
sp_PrintTopic sp_TopicIcon
API Web Scraping
Avatar
Peter Fresh
Member
Members
Level 0
Forum Posts: 13
Member Since:
August 6, 2020
sp_UserOfflineSmall Offline
1
February 3, 2021 - 7:06 am
sp_Permalink sp_Print sp_EditHistory
Hi to all Forum Members,
I have an issue about API‘s. I can‘t build the bridge about Myndas examples from the corresponding video on youtube and my problem here. Where can I put in the needed information in the process of Data from Web with Power Query?
 
I have given following curl:
 
curl -X GET - - header “Accept: application/json“ - - header “Authorization: Bearer “ “https://developer.fraport.de/api/flights/1.0.1/flight/FRA/arroval“
 
In addition I have a consumer key and a consumer secret.
 
Actually I get really confused about what my API key is and at what point I have to type it in Excel.
 
Hope someone can help. 🙂
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
February 3, 2021 - 5:41 pm
sp_Permalink sp_Print sp_EditHistory

Hi Peter,

If you haven't already, please read these posts on API's and Power Query

Getting Started with API's in Power Query • My Online Training Hub

Connecting to an OAuth API Like PayPal With Power Query • My Online Training Hub

The API you are trying to use uses OAuth as an authentication process - that's the process of registering an application (like Power Query) to use the API.  To get data from the API you need to generate an access token. You can do this on the fraport.de web site.  On the same page where you generated the consumer key & secret, you can generate an access token.

Usually you can create the access token from within PQ too but I didn't see the mechanism described in their documentation on how to do this, so you'll have to generate tokens via the site for now.

If you open the attached workbook I've modified the query from the Paypal API blog post (linked above).  I created an account on fraport, registered an app and generated my own token by following these instructions

Instructions (fraport.de)

Using my own access token I was then able to query the API to get this data - see attached image.

If you edit the query in my workbook, and enter your own access token, you should be able to get similar data.  You'll need to modify the URL end point to get data for other things 

Documentation (fraport.de)

Give it a go and if you get stuck, post back here.

Regards

Phil

fraport.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage fraport.png (160 KB)
Avatar
Peter Fresh
Member
Members
Level 0
Forum Posts: 13
Member Since:
August 6, 2020
sp_UserOfflineSmall Offline
3
February 4, 2021 - 5:47 am
sp_Permalink sp_Print

Hi Phil,

thank you very much for your very well described answer.

Your link to the Paypal API blog post was really helpful as well and now I understand that I have to use the advanced query editor in order to type in my credentials <- this was my main issue!

I will use your example file in order to understand the M statement.

All the best

Peter

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
February 4, 2021 - 9:41 am
sp_Permalink sp_Print

You're welcome, glad to help.

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Lionel Baijot, Jack Brett, Ben Hughes
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Hayden Hao
Angela chen
Sean Moore
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Forum Stats:
Groups: 3
Forums: 24
Topics: 6211
Posts: 27238

 

Member Stats:
Guest Posters: 49
Members: 31891
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.