MaxMind's GeoIP2 API is documented at Read the Docs.