question

Upvotes
Accepted
1 1 2 2

I am trying to use the Datastream API in R (using the R package DatastreamDSWS2R), but it is giving me a 403 error.

GAURAV.PNGI am trying to use the Datastream API in R (using the R package DatastreamDSWS2R), but it is giving me a 403 error. Below is the full text of the error message. Please could you help?

Error in .self$.requestToken() :
Error requesting access Token. HTTP message was: Client error : Forbidden : Client error: (403) Forbidden

datastream-apidsws-apirerror-403
gaurav.png (54.6 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.

Hello @Hamilton.Nactor ,

Thank you for your participation in the forum.

Is one of the replies below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@Hamilton.Nactor

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
78.8k 250 52 74

@Hamilton.Nactor

I got the same error when using an invalid DSWS account.

1629278310099.png

A DSWS user account (Datastream Child ID and password) is required to run the code successfully. The username format is four letters and three numbers (ZABC123).

You may check your DSWS account via the http://product.datastream.com/DswsClient/Docs/TestRestV1.aspx with the Get Token service method.

1629278442920.png



1629278310099.png (7.0 KiB)
1629278442920.png (23.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
25.3k 87 12 25

Hi @Hamilton.Nactor

Do the same credentials work with Python or C#?

I have seen the 403 error with RDP where a licence has expired or the credential does not have the appropriate licence required to access particular content sets.

DataStream Tutorials | Refinitiv Developers

DataStream Quickstart | Refinitiv Developers

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.