Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Llmotions Com Planets API
version: 1.0.0
contact:
email: support@astro.live
name: Astro API Support
url: https://astro.live/docs/api
license:
name: MIT
url: https://opensource.org/licenses/MIT
description: 'Operations tagged Planets across 2 of this provider''s published API definitions: astro-openapi-accept.json, astro-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Production server
url: https://astro.live/api/v1
variables: {}
- description: Development server
url: http://localhost:4646/api/v1
variables: {}
security:
- api_key: []
tags:
- name: Planets
paths:
/planet/{name}:
get:
callbacks: {}
deprecated: false
description: Get current position of a specific planet
operationId: getPlanetPosition
parameters:
- description: Planet name (sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto)
in: path
name: name
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PlanetPosition'
description: Planet position
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Missing or invalid API key
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: API key is not authorized
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Rate or plan quota exceeded
summary: Get planet position
tags:
- Planets
servers:
- description: Production server
url: https://astro.live/api/v1
variables: {}
- description: Development server
url: http://localhost:4646/api/v1
variables: {}
components:
schemas:
Error:
properties:
error:
description: Error type
type: string
message:
description: Error message
type: string
request_id:
description: Request ID
type: string
type: object
PlanetPosition:
properties:
degree:
description: Degree in sign
type: number
house:
description: House number
type: integer
latitude:
description: Ecliptic latitude
type: number
longitude:
description: Absolute longitude
type: number
name:
description: Planet name
type: string
retrograde:
description: Is retrograde
type: boolean
sign:
description: Zodiac sign
type: string
type: object
securitySchemes:
api_key:
description: API key authentication
in: header
name: x-api-key
type: apiKey
x-refined-from:
- astro-openapi-accept.json
- astro-openapi.json