The aa-56 code, which can be downloaded here , includes solar ephemeris that are likely to meet your needs. For precision work, you need something more accurate, like the JPL DE421, but there are some uncomfortably large conversion tables, and this is probably a bust if you are happy with 1 degree accuracy.
Earth's rotation at a given time is given by stellar time in Greenwich.
Jean Mius "Astronomical Algorithms" (a good reference to these kinds of calculations!) Gives a formula for theta0(cumulative rotation angle in degrees) in terms of Julian date JD:
T = (JD - 2451545.0 ) / 36525
theta0 = 280.46061837 + 360.98564736629*(JD-2451545.0) +
0.000387933*T*T - T*T*T/38710000.0
theta0 = 0 degrees mod 360 represents the moment when the Greenwich meridian is aligned with a right ascension of 0:00 in celestial coordinates.