Bing API News search for Trending topics returns Error 403 Forbidden and code 'InsufficientAuthorization' - http-status-code-403

I recently tried to search for Trending topics news using Bing Search API v7.0 with a valid subcription key but in response I got the following:
"code": "InsufficientAuthorization",
"message": "Insufficient authorization to access requested resource.",
I did not face any problem with the Search endpoint, or when using v5.0 API to get Trending topics news.

This should work now. It seems there was a bug from server side. Here is the link for easy reference: https://dev.cognitive.microsoft.com/docs/services/e5e22123c5d24f1081f63af1548defa1/operations/56c7a9a6cf5ff801a090fbdc

Related

Amadeus API Error : You do not have permission to access this content

I'm new to Amadeus development.
I'm trying to develop an airline booking website. I'm using Amadeus Self service API's to get flights from searched term. Everything used to work fine, but from yesterday, if i call an api, I'm receiving error 403 forbidden, Invalid user. And I had a look into my Self Service workplace, It's throwing an error You do not have permission to access this content.
Any answers much appreciated.
Sample of my website is https://master.d3799dd2ybju3c.amplifyapp.com/.
Note: This is not the actual website, It's just a sample. For fetching airports i'm using my own data. It's not calling any backend api.
And once you please do reload the page again for good response.

403 Forbidden message in postman

Actually I am trying to send a mail using the SendGrid API key from the contact page. I am not able to understand what error is coming.
Let me know the actual error that I am facing. This will be greatly helpful to solve.
403 error indicates that you have a permission issue with the API key that you are using. Please check your API key permissions whether it has access to the API you are trying to hit.

retrieving instagram stories data using instagram api

I want to access and retrieve a user's Stories post from Instagram using their Dev API.
I tested after posting a story myself by using https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN.
However, that returns an empty object unless I post a regular post.
As far as I am aware the Instagram API does not currently return Stories.
The example response in the documentation for the media endpoint, for example, shows responses for Images, Videos and Carousel items only. The recent media end point documentation doesn't go into much detail on responses.
Media End Point Documentation
It is available only for Instagram Business Account.
See this link for more information: https://developers.facebook.com/docs/instagram-api/reference/user/stories/
The id returned by this endpoint can be used on the same API media endpoint.

Instagram API says user does not exist

The user jwinery clearly exists: https://www.instagram.com/jwinery/
Querying the search API (/v1/users/search?q=jwinery&access_token=) gives you this user id: 321285908
Querying the users API (/v1/users/321285908/?access_token=) gives you this response:
{"meta": {"error_type": "APINotFoundError", "code": 400, "error_message": "this user does not exist"}}
My user is not in sandbox mode and has been approved, the access token is valid, and this has worked with thousands of users already. I know Instagram doesn't have the best error reporting so could this be another issue with jwinery or is Instagram just borking this? jwinery is obviously not private, but I don't use Instagram so I don't know all the other things that could be going on.
very interesting
https://www.instagram.com/jwinery/ said does not exist.
Search API is showing the id as valid, but user API for id does not return user info. this user does not exist
I checked the user #jwinery on instagram app, it opened, but asked me to confirm I'm over 21, and then it showed images on Instagram app.
Then I checked on https://www.instagram.com/jwinery/, it worked.
I used User API, it responded with data.
So I guess, API does not give you correct response until you have opened that user in App and then confirm over 21.
Also the access_token you use for API call should of the same user that was used to confirm over 21 on instagram app, then it will start working on API
So I guess this is a new category of profile type, that is not supported correctly in API yet.

Instagram API not returning data

I am quite new to the Instagram API. I have been able to authorize myself and get an access token. I used the following URL to search for users, but to no avail:
https://api.instagram.com/v1/users/search?q=jack&access_token=3316552483.1677ed0.ab992a6bf15c4bbe99f093e59043547b&count=10
Keep in mind this specific URL will not work because that is not my real access token. However, when I do use my reall access token, I get this response:
{
"meta": {
"code": 200
},
"data": []
}
I have scanned the API documentation and I cannot find where my problem is. Keep in mind, I am a sandbox user, and that may have something to do with it.
Looks like you are in Sandbox mode, it will only show your and your sandbox user's posts in API response, here is documentation for sandbox:
The behavior of the API when you are in sandbox mode is the same as
when your app is live, but comes with the following restrictions:
Data is restricted to sandbox users and the 20 most recent media from each sandbox user
Reduced API rate limits
The first point is important and it means that the API behaves as if
the only users on Instagram were your sandbox users, and the only
media ever posted were the last 20 for each of these users.
In the API call, search your username then it will be shown in API response

Resources