Skip to main content
POST
Get Star Information

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-stars
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-stars
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
constellation
string

The constellation that the star belongs to.

Examples:

"Orion"

"Lyra"

"Canis Major"

max_absolute_magnitude
number

Maximum absolute magnitude (intrinsic brightness of the star).

Examples:

0

5

max_apparent_magnitude
number

Maximum apparent magnitude (brightness as seen from Earth). Lower values indicate brighter stars.

Examples:

0

5

10

max_distance_light_year
number

Maximum distance from Earth in light years.

Examples:

50

500

1000

min_absolute_magnitude
number

Minimum absolute magnitude (intrinsic brightness of the star).

Examples:

-10

0

min_apparent_magnitude
number

Minimum apparent magnitude (brightness as seen from Earth). Lower values indicate brighter stars.

Examples:

-1.5

0

5

min_distance_light_year
number

Minimum distance from Earth in light years.

Examples:

0

10

100

name
string

The name of the star to search for. Note that many star names contain Greek characters.

Examples:

"Sirius"

"Vega"

"Betelgeuse"

offset
integer

Offset results for pagination. Returns at most 30 results per request.

Required range: x >= 0
Examples:

0

30

60

spectral_class
string

Case-insensitive spectral-class prefix filter applied to the returned provider page. Use name, constellation or numeric criteria to select the provider page; offset counts provider rows.

Examples:

"G2V"

"A0V"

"M1Ia"

Response

Tool result data

details
object[]
required