Single crystal lookup
Lookup a specific crystal by slug or name (case-insensitive). Examples: 'amethyst', 'blue-sapphire', 'rose-quartz', 'Tiger's Eye'.
Endpoint
GET /v1/crystals/{name}
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes |
Example request
- curl
- Python
- TypeScript
curl -X GET "https://api.asterwise.com/v1/crystals/amethyst" \
-H "Authorization: Bearer YOUR_API_KEY"
import asterwise
from asterwise.api.crystals_api import CrystalsApi
configuration = asterwise.Configuration(
host="https://api.asterwise.com",
access_token="YOUR_API_KEY",
)
with asterwise.ApiClient(configuration) as client:
api = CrystalsApi(client)
result = api.crystal(name="amethyst")
print(result)
import { createClient, createConfig, crystal } from 'asterwise';
const client = createClient(createConfig({
baseUrl: 'https://api.asterwise.com',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
}));
const result = await crystal({
client,
path: {
"name": "amethyst"
},
});
console.log(result.data);
Example response
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | True if the request succeeded |
| message | string | Human-readable status message |
| data | object | |
| data.slug | string | URL-safe identifier, e.g. 'amethyst', 'blue-sapphire'. |
| data.name | string | Display name of the crystal. |
| data.colors | array[string] | Primary colours of this crystal. |
| data.hardness_mohs | number | Hardness on the Mohs scale (1-10). |
| data.chakras | array[string] | Associated chakras. |
| data.element | string | Classical element: Earth, Water, Fire, Air, or All. |
| data.zodiac_signs | array[string] | Associated Western zodiac signs. |
| data.vedic_planet | string | null | Vedic planetary correspondence. Null if no classical Vedic text assigns this stone. |
| data.vedic_correspondence | string | 'navaratna' (primary classical gem), 'uparatna' (substitute gem), or 'none_classical' (no Vedic text assigns this stone). |
| data.western_planet | string | null | Western metaphysical planetary correspondence. |
| data.keywords | array[string] | Primary energy keywords. |
| data.healing_physical | string | Physical healing properties. |
| data.healing_emotional | string | Emotional healing properties. |
| data.healing_spiritual | string | Spiritual healing properties. |
| data.description | string | Overview description. |
| data.origins | array[string] | Primary geographic origins. |
| data.affirmation | string | Affirmation for working with this crystal. |
| data.caution | string | null | Important safety or usage cautions. Null if none. |
Errors
| Code | Description | Reference |
|---|---|---|
| authentication_failed | Missing or invalid API key. | authentication_failed |
| ephemeris_unavailable | Upstream ephemeris service error. | ephemeris_unavailable |
| insufficient_tier | API key tier does not include this endpoint. | insufficient_tier |
| internal_error | Unexpected server error. | internal_error |
| ip_rate_limit_exceeded | Too many requests in a short window. | ip_rate_limit_exceeded |
| payload_too_large | Request body exceeds the size limit. | payload_too_large |
| resource_not_found | Referenced resource was not found. | resource_not_found |
| validation_error | Request body failed schema validation. | validation_error |