On RDP News, how can I get HAR logs?

I would like to know how to get HAR logs for RDP news in case client face any issue.

Tagged:

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @aya.nakamura01

    Did you or the client try the steps I suggest above yet? The HAR file capture from the steps above can capture the RDP API request and response messages detail.

    I suggest you try and open the saved har file with any text editor, and you will see all the content.

    About the News Meta API issue, is it the same issue as this old post? If so, the news API returns only 10 rows of data by default. The data that the client needs might not show in the first response. The client can check if there a "next" node data in a response, the client can request that "next" node value to get the next 10 rows of result (Paging feature).

    In the API Playground page, the client can click on the "Next" link to get the nextLink URL and then click a request button again to get the next page of data.


    api-7.png

    The client can set the "limit" parameter as suggested by my colleague on that old post to specify the number of return data per one API call (min 10, maximum 100). I did a quick test with https://api.refinitiv.com/data/news/v1/metadata?group=Geography&limit=100 and the JP information is in the response message.

    api-6.png

    I double checked with the request HAR file, it contains the request and response with JP group

    {\"id\":\"G:41\",\"label\":\"Japan\",\"group\":\"Geography\",\"readable\":\"Topic:JP\",\"searchable\":true,\"childrenCount\":0}

Answers

  • wasin.w
    wasin.w admin

    Hello @aya.nakamura01

    Not sure if this what the client wants, if the issue can be replicated on the RDP API Playground page.

    Firstly, open the web browser and go to the https://apidocs.refinitiv.com/Apps/ApiDocs page --> Navigate to the endpoint (example: /data/news/v1/headlines)

    api-1.png

    Then open a browser developer tool (each browser has different way to open it, I am demonstrating with Edge).

    api-2.png

    See more in a comment (cont).


  • wasin.w
    wasin.w admin

    (Cont).

    On the Developer Tool, open a "Network" Tab.

    api-3.png

    Then click on the send request button on the API Playground page, the request that being sent will be shown on the developer tools.

    api-4.png


  • wasin.w
    wasin.w admin

    (Cont).

    Right Click the request --> Choose "Save all as Har with Content" option.

    api-5.png

  • @wasin.w Thank you so much! It is clear now.

  • @wasin.w I have additional question. Using this end point, https://api.refinitiv.com/data/news/v1/metadata to get geography subgroup. There was an issue last week that "JP" was missing but we couldn't find the root cause. I was told next time we need to get the HAR logs. Can you advise me if above log will provide me the HAR logs based on "request"?