AstroWay/api v2.74.2 · nl
alle systemen normaal

// sdk · officiële clients

SDK voor 11 talen.

Officiële clients met volledige typering, retry-logica en intelligent rate-limiting. Een verzoek in 4 regels code — zonder handmatig cURL- of headerswerk. 8 talen in productie, 3 in ontwikkeling, 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 {endpoints}-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 →
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 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 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',
  },
});

console.log(chart.angles.asc);

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.