Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /

For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

avatar image
REFINITIV
Question by mohamed.hisham · Apr 12, 2021 at 08:44 AM · dss-rest-apidatascope-selectdssapi

How do I know through DSS download file size?


How do I know through DataScope download file size?

I downloaded several files through the REST API and want to know for sure that the file size on the Refinitiv server exactly matches the file size that I downloaded.
How do I do that?


Please provide a step-by-step description of how to recognize file size through DataScope


I am interested in how I can check that the size of the downloaded file on my computer is equal to the size of the file located on the Refinitiv server

I wonder if there's a way to track the size of the files on the Refinitiv server that are being prepared for download on my computer?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya faberov · Apr 12, 2021 at 03:47 PM

Hello @mohamed.hisham,

Once your job is completed, you can request the extraction details, including file size, via ExtractionFileId. Please note that this ID is different from accepted JobId:

{ {protocol}}{ {host}}{ {api}}Extractions/ExtractedFiles('{ { extractedDataFileId}}')

An example of a result obtained:

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ExtractedFiles/$entity",
    "ExtractedFileId": "VjF8MHgwNzgzODFhOWQ3NTc2ZWFhfA",
    "ReportExtractionId": "2000000246945099",
    "ScheduleId": "0x078385142e576ebe",
    "FileType": "Note",
    "ExtractedFileName": "_OnD_0x078385142e576ebe.csv.gz.notes.txt",
    "LastWriteTimeUtc": "2021-04-12T15:04:25.090Z",
    "ContentsExists": true,
    "Size": 1246,
    "ReceivedDateUtc": "2021-04-12T15:04:25.090Z"
}

As this id does not come back in notes or Job status check (this info only becomes available once the extraction is completed), or as an alternative approach, you can request all the extracted files information, and search the result by the jobId.

{ {protocol}}{ {host}}{ {api}}Extractions/ExtractedFiles

For example:

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ExtractedFiles",
    "value": [
        {
            "ExtractedFileId": "VjF8MHgwNzgzODFhOWQ3NTc2ZWFhfA",
            "ReportExtractionId": "2000000246945099",
            "ScheduleId": "0x078385142e576ebe",
            "FileType": "Note",
            "ExtractedFileName": "_OnD_0x078385142e576ebe.csv.gz.notes.txt",
            "LastWriteTimeUtc": "2021-04-12T15:04:25.090Z",
            "ContentsExists": true,
            "Size": 1246,
            "ReceivedDateUtc": "2021-04-12T15:04:25.090Z"
        },
...

Please review the complete spec via DSS API Reference Tree


Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
15 People are following this question.

Related Questions

Get the exchange rates list by Instrument List Id

Does Refinitiv C# DSS/RTH API is fully compatible with .NET core?

How do I change the maximum allowed instruments? Currently the limit is 1!

Is there an API for data challenges?

IdentifierType to get a special asset type

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges