Multiples Segment in the same API

I want to put 2 segments in an API. My problem is that I want the 2 segment names to be in the same URL, so that it gives me by exporting the report in tsv the number of visits and the number of page views, for each segment.
Thank you for helping me, because it’s been days I try but I can not find.


you need to make a “API Bulk request” and issue two requests at once. see the documentation here: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

Thank you Matthieu,
II think I misjudged my question. In fact, in the same report I want the wording and the associated value for each of the segments.
Thank you for answering me.