Bing Search V7 sending external results than the site mentioned

Sonia Muthiyan (Accenture International Limite) 0 Reputation points Microsoft Vendor
2024-08-16T07:32:49.0166667+00:00

Hi Team,

We are implementing the Bing Search V7 in our project, the API we are using is https://api.bing.microsoft.com/

After analyzing the API call response with search keywords, we have below questions.

Sample API Call response given below: -

https://api.bing.microsoft.com/v7.0/search/?offset=0&q=video and ctv&mkt=fr-FR&site=about.ads.microsoft.com&responseFilter=Webpages&count=5

  1. From the API response we are getting other sites page results also. this is implemented as per Bing api logic, reference link - https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/filter-answers
  •  How can we restrict to fetch results on based out of site:about.ads.microsoft.com, no extra results (from other sites) should be fetched?
  1. How can we fetch the images in the search results?
  2. A snippet of text from the webpage that describes its contents: Bing API is returning only one snippet object related to search data description which also has truncation logic. https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/reference/response-objects. How can we get meta description instead of the snippet?
  3. Currently we are getting "totalEstimatedMatches" in lakhs or thousands, which is huge number. We need to restrict this count so that we can implement pagination based on the total results count. So how can we restrict this count to hundreds or less in order to create pagination logic?

Sample Response from our API hit: -

{

    "_type": "SearchResponse",

    "queryContext": {

        "originalQuery": "How to navigate Retail Media"

    },

    "webPages": {

        "webSearchUrl": "https://www.bing.com/search?q=How+to+navigate+Retail+Media",

        "totalEstimatedMatches": 18700000,

        "value": [

            {

                "id": "https://api.bing.microsoft.com/api/v7/#WebPages.0",

                "name": "How to navigate Retail Media success with your Joint Business Plan ...",

                "url": "https://about.ads.microsoft.com/en/blog/post/august-2024/how-to-navigate-retail-media-success-with-your-joint-business-plan",

                "isFamilyFriendly": true,

                "displayUrl": "https://about.ads.microsoft.com/en/blog/post/august-2024/how-to-navigate-retail-media...",

                "snippet": "Retail media is constantly growing to encompass more surfaces and experiences. Investing the time and energy to improve outcomes from the JBP process can increase ROI by 10%, making it worth everyone's time to improve. And as retailers for more brand dollars and expect more investment from their brand partners, finding ways to deliver more ...",

                "dateLastCrawled": "2024-08-08T19:23:00.0000000Z",

                "cachedPageUrl": "http://cc.bingj.com/cache.aspx?q=How+to+navigate+Retail+Media&d=754291075202&mkt=fr-FR&setlang=fr-FR&w=ZfMbWuNf7mAoAdqW8ZcL9hP-ikgUJJHu",

                "language": "en",

                "isNavigational": true,

                "noCache": false,

                "siteName": "Microsoft Advertising"

            },

            {

                "id": "https://api.bing.microsoft.com/api/v7/#WebPages.1",

                "name": "Retail Media Networks: A Complete Guide with Definition and Examples",

                "url": "https://medium.com/gowit/retail-media-networks-a-complete-guide-with-definition-and-examples-bf316d4e20b3",

                "isFamilyFriendly": true,

                "displayUrl": "https://medium.com/gowit/retail-media-networks-a-complete-guide-with-definition-and...",

                "snippet": "A Retail Media Network (RMN) is essentially a digital Advertising Technology (AdTech) platform operated or owned by a retailer. Brands of all sizes can leverage this platform to enhance their...",

                "dateLastCrawled": "2024-08-08T02:18:00.0000000Z",

                "language": "en",

                "isNavigational": false,

                "noCache": true,

                "siteName": "Medium"

            },

            {

                "id": "https://api.bing.microsoft.com/api/v7/#WebPages.2",

                "name": "Retail Media 101 - What you need to know (for brands & retailers ...",

                "url": "https://medium.com/retail-media/retail-media-101-3232827b0e4e",

                "isFamilyFriendly": true,

                "displayUrl": "https://medium.com/retail-media/retail-media-101-3232827b0e4e",

                "snippet": "Retail media brings together brands, agencies, platforms and retailers to engage the modern shopper. Following retail media best practices will allow brands to navigate this growing opportunity.",

                "dateLastCrawled": "2024-08-05T18:10:00.0000000Z",

                "cachedPageUrl": "http://cc.bingj.com/cache.aspx?q=How+to+navigate+Retail+Media&d=4551690810302443&mkt=fr-FR&setlang=fr-FR&w=k-42Toj_NQkV3pvT3OD6Qxo4C7wz9K5W",

                "language": "en",

                "isNavigational": false,

                "noCache": false,

                "siteName": "Medium"

            },

            {

                "id": "https://api.bing.microsoft.com/api/v7/#WebPages.3",

                "name": "How Retail Media Is Reshaping Retail | BCG - Boston Consulting Group",

                "url": "https://www.bcg.com/publications/2022/how-media-is-shaping-retail",

                "isFamilyFriendly": true,

                "displayUrl": "https://www.bcg.com/publications/2022/how-media-is-shaping-retail",

                "snippet": "A retail media network is essentially an advertising business that a retailer sets up in order to allow advertisers to buy advertising space across the retailer’s owned (onsite) properties and paid (offsite) media, using consumer data to connect with consumers throughout the buyer journey.",

                "dateLastCrawled": "2024-08-05T18:22:00.0000000Z",

                "cachedPageUrl": "http://cc.bingj.com/cache.aspx?q=How+to+navigate+Retail+Media&d=4514127020718113&mkt=fr-FR&setlang=fr-FR&w=9iZi9FVdc7oEycbEGUawB-fBGpCKJoer",

                "language": "en",

                "isNavigational": false,

                "noCache": false,

                "siteName": "Boston Consulting Group"

            },

            {

                "id": "https://api.bing.microsoft.com/api/v7/#WebPages.4",

                "name": "Retail media networks explained & the top networks you should know",

                "url": "https://funnel.io/blog/retail-media-networks",

                "isFamilyFriendly": true,

                "displayUrl": "https://funnel.io/blog/retail-media-networks",

                "snippet": "The term “retail media network” refers to advertising space provided by an online retailer. Brands pay retailers to use this space, or they may go through a third-party advertising agent that has an agreement in place with the retailer. This is how you get to see “sponsored” ads on Amazon, Walmart and other retail sites.",

                "dateLastCrawled": "2024-08-08T21:29:00.0000000Z",

                "cachedPageUrl": "http://cc.bingj.com/cache.aspx?q=How+to+navigate+Retail+Media&d=1785127060346&mkt=fr-FR&setlang=fr-FR&w=gpe0NnTBQDqWNmmjSXsVjBRwJhCAWrDD",

                "language": "en",

                "isNavigational": false,

                "noCache": false,

                "siteName": "Funnel"

            }

        ],

        "someResultsRemoved": true

    },

    "rankingResponse": {

        "mainline": {

            "items": [

                {

                    "answerType": "WebPages",

                    "resultIndex": 0,

                    "value": {

                        "id": "https://api.bing.microsoft.com/api/v7/#WebPages.0"

                    }

                },

                {

                    "answerType": "WebPages",

                    "resultIndex": 1,

                    "value": {

                        "id": "https://api.bing.microsoft.com/api/v7/#WebPages.1"

                    }

                },

                {

                    "answerType": "WebPages",

                    "resultIndex": 2,

                    "value": {

                        "id": "https://api.bing.microsoft.com/api/v7/#WebPages.2"

                    }

                },

                {

                    "answerType": "WebPages",

                    "resultIndex": 3,

                    "value": {

                        "id": "https://api.bing.microsoft.com/api/v7/#WebPages.3"

                    }

                },

                {

                    "answerType": "WebPages",

                    "resultIndex": 4,

                    "value": {

                        "id": "https://api.bing.microsoft.com/api/v7/#WebPages.4"

                    }

                }

            ]

        }

    }

}

Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
161 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.