pyRevit

Code
Library
Get CropBox.Id
Simple
When you create a View in Revit it also creates CropBoxes as separate objects. And it means that CropBox Id relates to View Id and it always has the same difference.
So, here is the trick:
Get Id of a view and then increment it by 2 to get ElementId of a CropBox. That's it.
e.g.
view.Id = 13642
cropbox.Id = 13642 + 2
Here is a simple code snippet to test:
Advanced
Here is a more complicated alternative that also works.

⌨️ Happy Coding!
Erik Frits