AstroWay/api v2.254.12 · nl
alle systemen normaal

// sdk · officiële clients

SDK voor TypeScript, Python, PHP, Go, C# / .NET.

Officiële clients met volledige typering, retry-logica en intelligent rate-limiting. Een verzoek in 4 regels code - zonder handmatig cURL- of headerswerk. In ontwikkeling: Ruby, Rust. Alle gegenereerd vanuit OpenAPI 3.1.

Released

// onderhouden door AstroWay · dagelijkse OpenAPI-sync
mcp-hosted uitgebracht

Hosted MCP - zero-install voor Claude Web / Desktop / Cursor

Hosted Streamable HTTP-eindpunt op mcp.astroway.info/mcp - dezelfde 700+ toolcatalogus als het npm-pakket, geen lokale installatie nodig. Één URL, één Bearer-header, en je AI-client ziet het volledige AstroWay-ecosysteem. Multi-tenant: credits worden afgeschreven van het account dat je Bearer-sleutel bezit.

https://mcp.astroway.info/mcp lees SDK-gids →
mcp uitgebracht

MCP-server (stdio) voor Claude / Cursor / GPT

Officiële @astroway/mcp: stelt elke van de 700+ AstroWay API-eindpunten beschikbaar als tools voor AI-agenten. Werkt met Claude Desktop, Cursor, GPT MCP-clients. Stdio-modus - je sleutel blijft op je apparaat, geen netwerkhops. Gebruik voor zero-install-scenario's in plaats daarvan het gehoste eindpunt.

npx -y @astroway/mcp lees SDK-gids →
typescript uitgebracht

TypeScript SDK voor de AstroWay API

Officiële @astroway/sdk - dunne wrapper over openapi-fetch (~6 KB runtime). Pad-autocomplete + request-/response-types in uw IDE voor alle 771-endpoints. Stainless-stijl foutenhierarchie, ingebouwd retry bij 408/409/429/5xx, OIDC + SLSA L3 provenance.

npm install @astroway/sdk lees SDK-gids →
python uitgebracht

Python SDK voor de AstroWay API

Officiële astroway op PyPI - Astroway (sync) + AsyncAstroway (async) bovenop httpx. Identieke surface - dezelfde API op beide clients. Stainless-stijl foutenhiërarchie, retry bij 408/409/429/5xx, PEP 561 getypeerde package. Python 3.9+, Vertrouwde Uitgever OIDC.

pip install astroway lees SDK-gids →
php uitgebracht

PHP SDK voor de AstroWay API

Officiële astroway/sdk op Packagist - gebouwd op Guzzle 7 + PSR-18. PHP 8.1+ (alleen-lezen eigenschappen, constructor promotie). Stainless-stijl foutenhierarchie, ingebouwd retry-middleware op 408/409/429/5xx, twee auth-schemes (X-Api-Key standaard of Bearer).

composer require astroway/sdk lees SDK-gids →
react uitgebracht

React-companion voor @astroway/sdk

Officiële @astroway/react op npm - een dunne Stripe-achtige wrapper over @astroway/sdk. AstrowayProvider brengt de client in React-context; useAstroway, useAstrowayQuery, useNatalChart hooks retourneren een SWR-achtig { data, error, loading }-triple met zero externe deps. Werkt met React 18+, Next.js App Router (via "use client"), Vite, CRA.

npm install @astroway/react @astroway/sdk react lees SDK-gids →
ui uitgebracht

AstroWay web components (alpha)

Natale wiel, maanfase, compatibiliteit, tarot en horoscoop als gewone HTML-elementen voor elke site: één <script>-tag vanaf een CDN, of npm install. Charts worden getekend door dezelfde code als de API, dus een wiel op je pagina komt overeen met wat /v1/render teruggeeft. Alpha: attribuutnamen kunnen nog veranderen vóór 1.0.

npm install @astroway/ui@alpha lees SDK-gids →
symfony uitgebracht

Symfony Bundle voor de AstroWay API

Officiële astroway/sdk-symfony op Packagist - een Bundle bovenop astroway/sdk. Auto-registreert via Symfony Flex, geconfigureerd via het standaard config/packages/astroway.yaml, biedt een autowireable Astroway\Astroway service voor injectie in elke controller of service. Compatibel met Symfony 6.4 LTS en 7.x, PHP 8.1+.

composer require astroway/sdk-symfony:^0.1.0-alpha lees SDK-gids →
laravel uitgebracht

Laravel ServiceProvider voor de AstroWay API

Officiële astroway/sdk-laravel op Packagist - een ServiceProvider + facade bovenop astroway/sdk. Automatisch ontdekt via composer.json extra.laravel.providers, Astroway\Astroway geregistreerd als een container singleton, config gepubliceerd via php artisan vendor:publish. Injecteer in controllers of gebruik de facade Astroway::post("/chart", ...). Werkt met Laravel 10/11/12, PHP 8.1+.

composer require astroway/sdk-laravel:^0.1.0-alpha lees SDK-gids →
go uitgebracht

Go SDK voor de AstroWay API

De officiële AstroWay Go-module: elke API-endpoint als een methode, zoals aw.Chart.Compute, met een context bij elke oproep. Herpogingen op 408/409/429/5xx respecteren Retry-After, en een POST houdt één Idempotency-Key, zodat een herhaalde oproep niet dubbel wordt gefactureerd. Fouten test je met errors.Is, en het antwoord decodeer je naar je eigen type. Alleen standaardbibliotheek, Go 1.22+.

go get github.com/astroway/astroway-go lees SDK-gids →
csharp uitgebracht

C# SDK voor de AstroWay API

Pakket Astroway.Sdk: elke API-endpoint als een async-methode, zoals aw.Chart.ComputeAsync, annuleerbaar met een CancellationToken. Herpogingen bij 408/409/429/5xx respecteren Retry-After, elk type fout heeft zijn eigen exceptie, en de respons wordt gedeserializeerd naar jouw eigen records. .NET Standard 2.0 en .NET 8: .NET Framework 4.7.2+, .NET 6/8/9, Unity.

dotnet add package Astroway.Sdk lees SDK-gids →

4 regels tot je eerste verzoek

// TypeScript · hetzelfde patroon in Python, PHP, Laravel, Symfony, React
npm install @astroway/sdk volledig voorbeeld →
import { Astroway } from '@astroway/sdk';

const aw = new Astroway({ apiKey: process.env.ASTROWAY_API_KEY! });

const { data: chart } = await aw.client.POST('/chart', {
  body: {
    date: '1990-07-14',
    time: '14:30:00',
    timezoneOffset: 3,
    latitude: 50.4501,
    longitude: 30.5234,
    houseSystem: 'P',
  },
});

// aw.client.POST is the raw typed fetch, so `chart` is the { ok, data } envelope
console.log(chart.data.houses.ascendant);  // 212.0952574979425

Binnenkort

// roadmap · we laten het weten als het uitkomt

Eigen wrapper

// OpenAPI 3.1 · jouw taal, jouw conventies

Zie je je taal niet in onze lijst staan? Alle endpoints staan beschreven in de gestandaardiseerde OpenAPI 3.1-specificatie - genereer je eigen client via openapi-generator of stainless.