question

Upvotes
Accepted
2 0 0 1

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.

#productrdp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
27k 65 17 14

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}

api-7.png (130.8 KiB)
api-6.png (51.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
27k 65 17 14

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).



api-1.png (102.3 KiB)
api-2.png (62.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

(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


api-3.png (24.8 KiB)
api-4.png (32.5 KiB)

(Cont).

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

api-5.png

api-5.png (46.0 KiB)
Upvotes
2 0 0 1

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
2 0 0 1

@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"?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.