You can now use @raydium-io/raydium-sdk-v2 and easily access it like so
const data = await raydium.api.fetchPoolByMints({ mint1: 'So11111111111111111111111111111111111111112', mint2: '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R' // optional, // extra params: https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/api/type.ts#L249 })