ASTM D287 for API gravity of crude petroleum and petroleum products
ASTM D287 standard test method for API gravity of crude petroleum and petroleum products(Hydrometer method)
4. Summary of Test Method
4.1 This test method is based on the principle that the gravity of a liquid varies directly with the depth of immersion of a body floating in it. The floating body, which is graduated by API gravity units in this method, is called an API hydrometer.

4.2 The API gravity is read by observing the freely floating API hydrometer and noting the graduation nearest to the apparent intersection of the horizontal plane surface of the liquid with the vertical scale of the hydrometer, after temperature equilibrium has been reached. The temperature of the sample is read from a separate accurate ASTM thermometer in the sample or from the thermometer which is an integral part of the hydrometer (thermohydrometer).

5. Significance and Use
5.1 Accurate determination of the gravity of petroleum and its products is necessary for the conversion of measured volumes to volumes at the standard temperature of 60°F (15.56°C).

5.2 Gravity is a factor governing the quality of crude oils. However, the gravity of a petroleum product is an uncertain indication of its quality. Correlated with other properties, gravity can be used to give approximate hydrocarbon composition and heat of combustion.