# Orthogonal

[Orthogonal](https://orthogonal.com) ist ein API-Gateway für KI-Agenten. Es führt Tomba als verifizierte API und leitet Anfragen mit eigenen Tomba-Zugangsdaten an 20 Tomba-Endpunkte weiter. Orthogonal entwickelt, bepreist und betreut diese Integration: Sie authentifizieren sich mit einem Orthogonal-API-Schlüssel und bezahlen Orthogonal, und die Anfragen verbrauchen nicht Ihre Tomba-Credits. Die Katalogseite von Orthogonal ist [orthogonal.com/discover/tomba](https://orthogonal.com/discover/tomba).

## Voraussetzungen

- Ein Orthogonal-API-Schlüssel, um Tomba über das SDK oder die API von Orthogonal aufzurufen.
- Oder, um stattdessen pro Aufruf zu bezahlen: eine Wallet mit USDC auf Base, genutzt über x402.

Fragen zu Einrichtung, Abrechnung und Support richten Sie an Orthogonal.

## Tomba mit einem API-Schlüssel aufrufen

Pfade und Parameter sind die von Tomba, daher gilt die [API-Referenz](/api). Mit dem Node.js-SDK von Orthogonal (`npm install @orth/sdk`):

```javascript
import Orthogonal from "@orth/sdk";

const orthogonal = new Orthogonal({
    apiKey: process.env.ORTHOGONAL_API_KEY,
});

const result = await orthogonal.run({
    api: "tomba",
    path: "/v1/domain-search",
    query: { domain: "stripe.com" },
});
console.log(result);
```

## Endpunkte

| Methode | Pfad                     | Referenz                                                            |
| ------ | ------------------------ | -------------------------------------------------------------------- |
| `GET`  | `/v1/domain-search`      | [Domain Search](/api/finder#domain-search)                           |
| `GET`  | `/v1/email-finder`       | [Email Finder](/api/finder#email-finder)                             |
| `GET`  | `/v1/email-verifier`     | [Email Verifier](/api/verifier#email-verifier)                       |
| `GET`  | `/v1/author-finder`      | [Author Finder](/api/finder#author-finder)                           |
| `GET`  | `/v1/linkedin`           | [LinkedIn Finder](/api/finder#linkedin-finder)                       |
| `GET`  | `/v1/phone-finder`       | [Phone Finder](/api/phone#phone-finder)                              |
| `GET`  | `/v1/phone-validator`    | [Phone Validator](/api/phone#phone-validator)                        |
| `GET`  | `/v1/email-count`        | [Email Count](/api/finder#email-count)                               |
| `GET`  | `/v1/email-sources`      | [Email Sources](/api/email#email-sources)                            |
| `GET`  | `/v1/email-format`       | [Email Format](/api/finder#email-format)                             |
| `GET`  | `/v1/enrich`             | [Email Enrichment](/api/finder#email-enrichment)                     |
| `GET`  | `/v1/people/find`        | [Person Enrichment](/api/enrichment#person-api)                      |
| `GET`  | `/v1/companies/find`     | [Company Enrichment](/api/enrichment#company-api)                    |
| `GET`  | `/v1/combined/find`      | [Combined Enrichment](/api/enrichment#combined-api)                  |
| `GET`  | `/v1/technology`         | [Technology](/api/domain#technology)                                 |
| `GET`  | `/v1/location`           | [Location](/api/finder#location)                                     |
| `GET`  | `/v1/similar`            | [Similar Domains](/api/domain#similar)                               |
| `GET`  | `/v1/domain-suggestions` | [Domain-Vorschläge](/api/domain-suggestions#get-domain-suggestions) |
| `GET`  | `/v1/domain-status`      | [Domain Status](/api/domain#domain-status)                           |
| `POST` | `/v1/reveal/search`      | [Unternehmenssuche](/api/reveal#search-companies)                       |

## Pro Aufruf mit x402 bezahlen

Orthogonal akzeptiert auch Zahlungen pro Aufruf in USDC auf Base über x402, ohne Orthogonal-API-Schlüssel. Senden Sie die Anfrage an `https://x402.orthogonal.com/tomba`, gefolgt vom Tomba-Pfad, mit einem x402-Client wie `x402-fetch` (`npm install x402-fetch viem`):

```javascript
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);

const response = await fetchWithPayment(
    "https://x402.orthogonal.com/tomba/v1/domain-search?domain=stripe.com",
);
console.log(await response.json());
```

<Callout type="danger">
    `PRIVATE_KEY` ist der Schlüssel einer Wallet mit USDC auf Base. Wer ihn besitzt, kann das Guthaben der Wallet ausgeben; laden Sie ihn daher aus einem Secrets-Manager oder einer Umgebungsvariablen, nie aus dem Quellcode.
</Callout>

Um Tomba direkt pro Anfrage zu bezahlen, ohne Tomba-Konto oder Gateway, siehe [Agentenzahlungen (MPP)](/mpp/introduction).
