Bing Autosuggest API V6 doesn't return any data for Costa Rica

Luz Adriana 0 Reputation points
2023-02-14T23:24:42.7166667+00:00

Hi,

Bing Autosuggest API V6 doesn't return any data when the country is Costa Rica (constraints=country:cr)

Request for "Cartago" - Main City:

https://www.bing.com/api/v6/Places/AutoSuggest?q=Cartago%20&appid=F2DD9E3AA45F7512D9C6CA9A150CBA7F76556B81&mv8cid=2db13deb-bd87-20fb-529c-f3d6ddb0848a&mv8ig=4684AAD612EB4F138BB320C99E0BC51B&localMapView=&localcircularview=4.620699882507324,-74.12319946289062,100&count=5&structuredaddress=true&types=place&setmkt=es-XL&setlang=es-ES&histcnt=&favcnt=&constraints=country:cr&clientid=342FFBB2C8C56CAD1888EAD8C96A6D18 

Request for "Heredia" - Main City:

https://www.bing.com/api/v6/Places/AutoSuggest?q=Heredia%20&appid=F2DD9E3AA45F7512D9C6CA9A150CBA7F76556B81&mv8cid=2db13deb-bd87-20fb-529c-f3d6ddb0848a&mv8ig=4684AAD612EB4F138BB320C99E0BC51B&localMapView=&localcircularview=4.620699882507324,-74.12319946289062,100&count=5&structuredaddress=true&types=place&setmkt=es-XL&setlang=es-ES&histcnt=&favcnt=&constraints=country:cr&clientid=342FFBB2C8C56CAD1888EAD8C96A6D18

Request for "San Jose" - Capital of Costa Rica:

https://www.bing.com/api/v6/Places/AutoSuggest?q=San%20Jose%20&appid=F2DD9E3AA45F7512D9C6CA9A150CBA7F76556B81&mv8cid=8fedf8c5-8643-f8b7-32f0-84edbb9f8421&mv8ig=50071C6BBA0944B3B42AFD40060706D3&localMapView=&localcircularview=4.620699882507324,-74.12319946289062,100&count=5&structuredaddress=true&types=place&setmkt=es-XL&setlang=es-ES&histcnt=&favcnt=&constraints=country:cr&clientid=342FFBB2C8C56CAD1888EAD8C96A6D18 

For other countries, this last request ("San Jose") works and returns data. Examples:

Colombia (constraints=country:co):

https://www.bing.com/api/v6/Places/AutoSuggest?q=San%20Jose%20&appid=F2DD9E3AA45F7512D9C6CA9A150CBA7F76556B81&mv8cid=8fedf8c5-8643-f8b7-32f0-84edbb9f8421&mv8ig=50071C6BBA0944B3B42AFD40060706D3&localMapView=&localcircularview=4.620699882507324,-74.12319946289062,100&count=5&structuredaddress=true&types=place&setmkt=es-XL&setlang=es-ES&histcnt=&favcnt=&constraints=country:co&clientid=342FFBB2C8C56CAD1888EAD8C96A6D18 

Mexico (constraints=country:mx):

https://www.bing.com/api/v6/Places/AutoSuggest?q=San%20Jose%20&appid=F2DD9E3AA45F7512D9C6CA9A150CBA7F76556B81&mv8cid=8fedf8c5-8643-f8b7-32f0-84edbb9f8421&mv8ig=50071C6BBA0944B3B42AFD40060706D3&localMapView=&localcircularview=4.620699882507324,-74.12319946289062,100&count=5&structuredaddress=true&types=place&setmkt=es-XL&setlang=es-ES&histcnt=&favcnt=&constraints=country:mx&clientid=342FFBB2C8C56CAD1888EAD8C96A6D18 

Regards,

Bing Autosuggest
Bing Autosuggest
A Bing service that gives your app intelligent autosuggest options for searches.
13 questions
{count} votes

2 answers

Sort by: Most helpful
  1. rbrundritt 18,816 Reputation points Microsoft Employee
    2023-02-15T19:11:47.4733333+00:00

    That doesn't look like the Bing Maps Autosuggest API. The Bing Maps Autosuggest API is documented here: https://learn.microsoft.com/en-us/bingmaps/rest-services/autosuggest and uses a virtualearth.net domain.

    It looks like you are using the generic Bing Autosuggest API which is not the same as Bing Maps: https://www.microsoft.com/en-us/bing/apis/bing-autosuggest-api

    1 person found this answer helpful.

  2. IoTGirl 3,221 Reputation points Microsoft Employee
    2023-03-21T16:32:35.15+00:00

    This is not a Maps API and if you research this API you will find that the latest is V7. Start with https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/bing-api-comparison?source=recommendations to understand the Bing Search API suite.

    0 comments No comments

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.