XML Example

Endpoint Structure

With Mapping

  • <market_descriptions>

    • <market>

      • <outcomes>

        • <outcome>

      • <mappings>

        • <mapping>

Without Mapping

  • <market_descriptions>

    • <market>

      • <outcomes>

        • <outcome>

Example

i. With Mapping

Request URL

https://api.betradar.com/v1/descriptions/en/markets/241/variants/sr:exact_games:bestof:5?include_mappings=true

Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <market_descriptions response_code="OK">
    <market id="241" name="Exact games" variant="sr:exact_games:bestof:5">
      <outcomes>
        <outcome id="sr:exact_games:bestof:5:39" name="3"/>
        <outcome id="sr:exact_games:bestof:5:40" name="4"/>
        <outcome id="sr:exact_games:bestof:5:41" name="5"/>
      </outcomes>
      <mappings>
        <mapping product_id="3" product_ids="3" sport_id="sr:sport:20" market_id="232" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="99" product_outcome_name="3 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="100" product_outcome_name="4 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="101" product_outcome_name="5 sets"/>
        </mapping>
        ...
        <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:37" market_id="8:25" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="31" product_outcome_name="3"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="32" product_outcome_name="4"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="33" product_outcome_name="5"/>
        </mapping>
      </mappings>
    </market>
  </market_descriptions>

Last updated

Was this helpful?