List Data Sources
GET /api/sources
Lists all data sources currently loaded in ScryLab.
Tip
Practical guide for using this in a workflow: Import Data from Python & MATLAB
Request
GET /api/sources HTTP/1.1Host: localhost:5678No parameters required.
Response
Status Code: 200 OK
Body:
{ "status": "ok", "result": [ { "source_id": "937896ff-f856-4b20-8888-e5127f0835b5", "name": "My Data", "file_path": "/home/user/data/my_data.mf4", "file_type": "mf4", "source_number": 1 } ]}Response Fields
| Field | Type | Description |
|---|---|---|
result | array | List of all data sources |
result[].source_id | string | Data source ID (used as target_source_id) |
result[].name | string | Name of the data source |
result[].file_path | string | File path of the source |
result[].file_type | string | File format (e.g. "mf4", "DataSource") |
result[].source_number | integer | Data source number |
Example
curl http://localhost:5678/api/sourcesErrors
This endpoint always returns 200 OK, even when no data sources are loaded (result: []).