content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <!-- Generated by Workiva -->
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0002014124</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001467760</issuerCik>
        <issuerName>Apollo Commercial Real Estate Finance, Inc.</issuerName>
        <secFileNumber>001-34452</secFileNumber>
        <issuerAddress>
          <com:street1>9 West 57th Street, 42nd Floor</com:street1>
          <com:city>New York</com:city>
          <com:stateOrCountry>NY</com:stateOrCountry>
          <com:zipCode>10019</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>212-515-3200</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Scott Weiner</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Partner</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>J.P. Morgan Securities LLC</name>
          <address>
            <com:street1>390 Madison Avenue</com:street1>
            <com:street2>6th Floor</com:street2>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10017</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>363904</noOfUnitsSold>
        <aggregateMarketValue>3799158</aggregateMarketValue>
        <noOfUnitsOutstanding>138346757</noOfUnitsOutstanding>
        <approxSaleDate>08/26/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>01/27/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>164264</amountOfSecuritiesAcquired>
        <paymentDate>01/27/2022</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>01/27/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>195140</amountOfSecuritiesAcquired>
        <paymentDate>01/27/2023</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stcok</securitiesClassTitle>
        <acquiredDate>11/01/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Open Market Purchase</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Open Market Purchase</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4500</amountOfSecuritiesAcquired>
        <paymentDate>11/03/2022</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>08/26/2024</noticeDate>
        <signature>/s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for Scott Weiner</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3949}]
text: 144
  0002014124
  XXXXXXXX
  LIVE
  0001467760
  Apollo Commercial Real Estate Finance, Inc.
  001-34452
  9 West 57th Street, 42nd Floor
  New York
  NY
  10019
  212-515-3200
  Scott Weiner
  Partner
  Common Stock
  J.P. Morgan Securities LLC
  390 Madison Avenue
  6th Floor
  New York
  NY
  10017
  363904
  3799158
  138346757
  08/26/2024
  NYSE
  Common Stock
  01/27/2022
  Compensation
  Issuer
  N
  164264
  01/27/2022
  N/A
  Common Stock
  01/27/2023
  Compensation
  Issuer
  N
  195140
  01/27/2023
  N/A
  Common Stcok
  11/01/2022
  Open Market Purchase
  Open Market Purchase
  N
  4500
  11/03/2022
  Cash
  Y
  08/26/2024
  /s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for Scott Weiner