• HTTP document
    Show / Hide Table of Contents
    • Login Interface
      • Explanation of terms
      • Login
      • Refresh Login
    • Write Data Process
      • Add FGate Group
      • Add FGate
      • Add Monitoring Group
      • Add Monitoring Point
      • Get FGate List
      • FGate Monitoring List
      • Write Monitoring Value
      • Get Monitoring Value
    • Information Access
      • Get Single FGate
      • Get Monitoring Group
      • Get Some monitoring Points
      • Get Monitoring Point by Group
      • Get Iccid、Imei
      • Get Location of FGate
    • Remote Download
      • Get FGate Drive List
      • Download FGate Drive
      • Get Register Type of Device
      • Get Server Drive List
    • Modification Interface
      • Modify FGate Group
      • Modify FGate Name
      • Modify Monitoring
      • Modify Refresh Interval
    • Delete Interface
      • Delete FGate Group
      • Delete FGate
      • Delete Monitoring Group
      • Delete Monitoring Point
    • Alarm Interface
      • Alarm Group
        • Get Alarm Group List
        • Add Alarm Group
        • Modify Alarm Group
        • Delete Alarm Group
      • Alarm Contact
        • Get Alarm Contact List
        • Get Single Alarm Contact
        • Add Alarm contact
        • Modify Alarm Contact
        • Delete Alarm Contact
      • Alarm Record
        • Get Alarm Entry List
        • Get Alarm Entry
        • Add Alarm Entry
        • Modify Alarm Entry
        • Delete Alarm Entry
        • Get Historical Alarm
        • Get Alarm Entry Status
        • Confirm Alarm
    • Historical Data
      • Get Historical Data List
      • Get Historical Data Entry
      • Add Historical Record
      • Update Historical Record
      • Delete Historical Data
      • Get Historical Data
    • Push Monitoring Data
      • Enable Monitoring Group
      • Disable Monitoring Group
      • Enable Monitoring Group List
      • Disable Monitoring Group List
      • Enable All Monitoring Points
      • Disable All Monitoring Points
      • Enable One Monitoring Point
      • Disable One Monitoring Point
      • Enable Some Monitoring Points
      • Disable Some Monitoring Points
      • Enable Some Monitoring Points
      • Enable One Monitoring Group
      • Enable Some Monitoring Groups
    • Data Push(SignalR)
      • Real-time Data Push(signalR)
      • Status Change Push
      • Real-time Data Push
      • Alarm Trigger
      • Alarm Restore
    • Write in Batch
      • Get Bacth Write Group
      • Write Value in Batch
    • Appendix
      • Appendix One
      • Appendix Two
      • Appendix Three
      • 429 Status Code

    Get Historical Data

    • Description

      This interface allows users to retrieve historical data. (There is a frequency limit; each IP should not exceed 5 times per second. If exceeded, the IP may be blocked by the NG proxy.)

    • Request Address

      URL:[Host Server]/hs/v2/hdata/get

    • Address Parameter Description

      Field Type Description
      Host Server string See Explanation of terms
    • Method

      POST

    • Header

      Field Type Description
      Authorization string "Bearer " + Access_token obtained in login interface
    • Body

      Field Type Description
      type int 0: By row (time1: data for entry 1, data for entry 2, time2: data for entry 1, data for entry 2,...)
      format int 0: JSON, 1: CSV file
      ids Array List of channel IDs under historical entries
      names Array Historical entry names (only used for header in export function)
      g int 0: Raw data, 1: Segmented data, 2: Hourly data, 3: Daily data
      begin dateTime Start time (JavaScript timestamp, milliseconds since 1970-1-1)
      end dateTime End time (same as above)
      tr int Time condition boundary type (0: left open right open, 1: left open right closed, 2: left closed right open, 3: left closed right closed. Left indicates start time, right indicates end time)
      limit int Maximum number of data points to retrieve. Negative value indicates retrieving limit points from end time to start time. The result will display in ascending order . Maximum limit is 1000, recommended is 500
      tz string Linux time zone string (eg., Asia/Shanghai), specifying the time zone of imported CSV
    • Successful Response

      t
      Note
      t represents the Linux epoch time, c is the array of returned data, which corresponds to the channels 1, 2, 3, 4, 5, 6, 7... in order of the channels that user sent.

    • Response Codes

      Code Description
      200 Successful execution
      401 Access token expired
      400 Error message in the HTTP Header [X-FBox-Code],see Appendix Three for details
      404 Interface does not exist, please check the URL
      429 Access to the interface so frequently ,see 429 Statues code
    • Postman example is as follows:

    Login Interface

    • Please see the example in the following image.

    Login Interface

    Back to top Generated by DocFX