POST /v4/media/stream
(Last updated: 03/10/2024)
This endpoint works the same as POST /v4/media/query except there is no pagination.
All results are returned immediately.
Request
Method
POST
URL
https://api.medipim.fr/v4/media/stream
Headers
Body
filter
: see POST /v4/media/querysorting
: see POST /v4/media/query
Response
Body
Each line of the response contains a single result. The response should be read line by line, and each line JSON decoded separately. Each line ends with a newline character (\n
).
Each succesful result is formatted like this:
{"meta": {"total": 2, "index": 0}, "result": {"id": 1, ...}}
{"meta": {"total": 2, "index": 1}, "result": {"id": 2, ...}}
-
meta
:total
: Total number of results. (integer)index
: Index of this result in the entire resultset. (integer)
-
result
:id
, ...: media information (same as media query results)
If no results are found matching the filter, the response will have status 204 (= no content).