Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Streams and Data Processing Streaming Data on the Net Searching for News Headlines

William Schultz
William Schultz
2,926 Points

Whoever wrote the website for the Microsoft APIs did a horrible job. Can't get API key.

The stupid website keeps taking me in circles (like 8 times now). I go to the link, click "Get started for free", I sign in with my Microsoft account, and it takes me to the Cognitive Services page with a ton of menus. So I click "APIs" dropdown and choose "Bing News Search". I wait, literally, 30-60 seconds before the next page opens.

At this point I have two options. I can click the button that says, "Get started for free", or I can click the button that says, "Documentation" as the instructor did. Both end up in the same never ending loop, but let's say I click "Documentation".

I am now on a page for the "Bing News Search API" overview as in the instructor's video. There is a link there that says, "read our Getting Started guide". So I click the link and I'm magically back at the original link that the instructor gave me in the first place, https://msdn.microsoft.com/en-US/library/mt712546.aspx .

Now I can click the "Getting started for free" link again and do it all over again, forever and ever.

Fabulous. Thanks, Microsoft. Man, I wish we were using Google here, instead.

Any idea how I can actually get a freaking API key?

4 Answers

Kent Carlyle II
Kent Carlyle II
17,084 Points

Hi, I was able to get an API key. Copy and paste the URL below

https://azure.microsoft.com/en-us/try/cognitive-services/?api=bing-news-search-api

Then just click the first "Create" button for Bing Search API's. You then sign in and it will give you two keys that are valid for 30 days.

Daniel Jenkins
Daniel Jenkins
17,714 Points

It's not a particularly intuitive website! From the instructor's link you need to click 'Getting started for free' as you have been doing, but from the page that takes you to, click on 'My Account' in the top right corner. If all you can see there is 'Sign Out' (assuming you're signed in), click 'Home' from the navigation menu and you should see 'My Account'. Click it and on the next page you should have 'Free trials' and 'Labs' as options. Selecting either should give you a link to 'Subscribe to new free trials' and from there you can obtain the keys.

I hope that makes sense and is of some help.

William Schultz
William Schultz
2,926 Points

Thanks for the response, Daniel. Unfortunately when I click 'My Account' it sits there for 30-60 seconds then takes me back to the page to log in. I gave up on obtaining an API key at this point. I will just have to watch the instructor do it and move on. I don't think I am registering as being logged in for some reason, but nothing I do fixes it.

Thanks again for responding. :)

Erik Gabor
Erik Gabor
6,427 Points

The teacher notes at https://teamtreehouse.com/library/introduction-29 should be changed in order to display a correct link. One year has passed and it's not updated yet.