Bing Web Search API for Corporate bing search - bots

In our company when I navigate to https://www.bing.com/ I can login with my AAD account and able to perform a search specific to my Company. Meaning, I can filter my search results based on my organization.
I see something like "Show results from XyZ Corporation...."
This makes me think that we have Corporate version of Bing search or I might call it Enterprise Bing and some how its connected to my AAD account so it can fetch corporate search results for me.
However, I am trying to get similar search results by 'Bing Web Search API v7 reference'
I see Web browser search results are different (when I'm logged in )that what I get using REST API.
If I search for 'holidays 2019' on web search I see some results but also see and option to filter them by my company name.
When I do same search using an API
https://api.cognitive.microsoft.com/bing/v7.0/search?q=holidays 2019
I am definitely not sending user context, so I do get search results as if I was not logged in or same results I will get if I was not logged in.
Is there any way to get search results specific to my organization since I can do that on the browser I am trying to do the same programatically.

I think the best solution in your scenario is using Bing Custom Search API as it gives you full control over the search results.
It allows you to specify a URL and whether to include subpages of the URL, add active entries to include results from specific websites or URLs, and much more!
You could also use Microsoft Search in Bing since that customizes results based on your logged in email AD which you mentioned in your question.

Related

Instagram API - search user

i am building a website where you can get services for your Instagram account, i want to create a Search box that when you put your user name (e.g. "#John") it returns your profile picture and asks you if that is the correct profile (without logging in to your Instagram account),
I've found a website that made that possible already, does any one know how?!
the website - https://app.get-notch.com/acquisition/instagram-username
thank you in advance!
You should check out this resource that allows you to do that. See an implementation of it here and test it here.

Search for Content Across SharePoint Sites

Currently I'm using: /v1.0/sites/{site-id}/drive/root/search(q='{search-text}') but I would like to search across all the sites I have access to.
Is there a Microsoft Graph API which can search a keyword on all sites a user can access in SharePoint without giving site id?
There's no Graph API for a global content search at the moment.
However you can leverage the SharePoint Search API.

OneDrive REST API and Sharepoint Online

I have the app that uses OneDrive API (MS graph) to access OneDrive free accounts and OneDrive for business.
The app works fine.
In docs of the API i can see same API can be used also to access Sharepoint Online sites data.
How to do this? When i auth a user who has Sharepoint Online account with MS graph, there is only his drive (ondrive) but there is no his site listed.
How to get access to his sharepoint site too using same API?
I have found how to work with sites using the Graph API.
To get list of sites there is the call
GET /v1.0/sites/
Then use the SITEID to get list of drives (in fact, top level folders)
GET /v1.0/sites/SITEID/drives
Then to get contents of a drive user
GET /v1.0/sites/SITEID/drives/DRIVEID/root/children
And all next calls are same as for onedrive drive
However, there is the problem i still can not solve. How to create new top level folder (new drive on a site). There is no API call for this
I believe what you are looking for is the sites API. It lets you interact with a SharePoint site if you know the path or the id of the site. You can find the documentation for the api here:
https://dev.onedrive.com/resources/site.htm
There is no easy way to discover sites as of now. You can however search for a site. You can read more about it here:
https://dev.onedrive.com/sites/search.htm
This endpoint to get the list of sites is not working, so the last answer is not valid anymore.
https://graph.microsoft.com/v1.0/sites
I haven't found a way to do this, the discovery of sites, without admin consent. If the admin consent flow is not a problem you can try this workaround, use the endpoint of groups to ask for the groups that the user is member of, and you can use the groups to get the document libraries of the user.
To get the groups:
GET https://graph.microsoft.com/v1.0/me/memberOf
With the group id, you can use this endpoint:
GET https://graph.microsoft.com/v1.0/groups/{group-id}/drive
So if someone know how to do the discovery of sites for a user without admin consent, please share.
EDIT: I'm not sure why my answer was deleted, my answer basically has 2 things:
I gave notice that one answer here is not valid anymore.
I gave a possible other solution to the problem.

Adsense API live reporting

I want to integrate my Adsense Reporting into my own admin portal.
My admin portal is a simple php based website with lists of other websites that I own.
My goal is to fill this list of websites with the amount of earnings monthly.
So that this list looks like:
name | earnings
example.de | 56,00€
The whole week I am trying to start with the Google API but without any success.
Does anybody know how to get this information live? for example with google apis link?
AdSense Management API is what you want, for reporting.
You'll need client library:
https://developers.google.com/api-client-library/php/start/installation
And you'll probably want to browse the example folder here:
https://github.com/googleads/googleads-adsense-examples/tree/master/php-clientlib-1.x/v1.x
Then, get the API key so you can start playing:
https://developers.google.com/api-client-library/php/auth/api-keys
https://console.developers.google.com/
https://developers.google.com/apis-explorer/
https://stackoverflow.com/a/20199357/246808
EDIT: Almost forgot - the manual:
https://developers.google.com/adsense/management/getting_started

Google API for search data

Is there a Google API to get the following:
How often a search query is entered (Per month) into Google?
Where a site ranks for a particular search term?
There is some data on search volumes available via the AdWords API Keyword tool at http://code.google.com/apis/adwords/docs/reference/latest/TrafficEstimatorService.html
Not really. There is some limited data available via Google Webmaster tools for domains that you own but it doesn't report on all keywords and it can't be pulled via the API yet.

Resources