Bing Search API for News Operation: empty news results for Arabic Language

Answered Bing Search API for News Operation: empty news results for Arabic Language

  • Wednesday, January 16, 2013 4:00 PM
     
     

    I am getting empty news results for Arabic Language however im using URL encoding and 'ar_XA' market for arabic region. Below is the URL used for reference:

    api.datamarket.azure.com/Bing/Search/News()?Query=%27%D9%84%D8%A8%D9%86%D8%A7%D9%86%27&Market='ar-XA'&NewsSortBy='Date'&$top=10

    Appreciate your kind help.


All Replies

  • Thursday, January 17, 2013 6:58 AM
    Moderator
     
     

    Hi,

    How do you generate the url, I mean the code? Try this:

    query = "api.datamarket.azure.com/Bing/Search/News()?Query=%27" + HttpUtility.UrlEncode("yourtext") + "%27&Market='ar-XA'&NewsSortBy='Date'";

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Thursday, January 17, 2013 7:30 AM
     
     

    Exactly thats what i did! however no results were retreived.

    is there anything else missing?

  • Friday, January 18, 2013 1:55 AM
    Moderator
     
     

    Hi,

    The news only query url format looks like this kind:

    https://api.datamarket.azure.com/Bing/Search/v1/News?Query=%27xbox%27&Market=%27en-US%27&NewsSortBy=%27Date%27

    You can the DataMarket Service Explorer to test the query result using this url. Make sure your search news has the actual result, maybe it does no result or you can use other more popular words to try.

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, January 18, 2013 7:55 AM
     
     
    My problem is only with 'ar-XA' region the news query i used or even the one you are using retrieves results for english and even chinese however when i use 'ar-XA' language i get empty results however i used many words to check and URl encoding in the correct form as above. Any idea?
  • Friday, January 18, 2013 8:09 AM
    Moderator
     
     

    Hi,

    Yes, I know. I say you can try to use above url appending with the encoded Arabic text to query the result. Replace the english words in my sample above to try. I have consulted with Bing API team for this. They suggest you to do that. If it is still not working, I can involve someone familiar to it to help or you can open a support ticket for it.

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, January 18, 2013 9:16 AM
     
     

    If i replace the english text with encoded arabic text in the URL you sent i can get results but in english. What i want is to get arabic news for that reason i am using 'ar-XA' and once i use this market i get empty results. Is there any other possible solution.

  • Tuesday, January 22, 2013 5:12 AM
    Moderator
     
     

    Hi,
     
    I have escalated this thread. We are trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
     
    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Tuesday, January 22, 2013 8:01 AM
     
     
    Thanks a lot and no problem i will be waiting.
  • Wednesday, January 23, 2013 1:54 AM
    Moderator
     
     Answered

    Hi,

    I am back. Sorry for the waiting. As the result of consulting, not all source types are available in all Markets; although Bing is constantly expanding its content to other parts of the world so it may be available in the future.

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked As Answer by HusseinIsmail Thursday, January 24, 2013 3:41 PM
    •  
  • Thursday, January 24, 2013 3:40 PM
     
     
    Ok thanks a lot for your usual support.