contact_finder_get_contacts

Contact finder: public business emails, phones, contact forms and messaging links of a domain, with role and source page

Preço
$0.009 USDC · por chamada
Serviço
Contact finder
Categoria
Empresas
Endpoint
POST /v1/contact-finder/get_contacts

Finds a website's public business contacts. Send a `domain` (stripe.com or a full URL) or just a `company_name`. The home page and the contact, support, legal, press, careers and about pages its own links point to (links in English, French, German, Spanish, Italian, Portuguese and Dutch) are read through a proxy, together with the security.txt file. Each contact is returned with its kind (email, phone, contact form, messaging link, security contact, social profile), its role (sales, support, press, jobs, billing, legal, privacy, security, general), the page it was found on, how it appears there (mailto link, structured data, plain text) and a confidence level. For every e-mail address the response says whether its domain has mail servers, and `domain_mail` reports the site's mail platform, SPF and DMARC policies. Only contacts literally published on the pages read are returned: no guessed address, and no named individual (personal-looking addresses are only counted in `omitted_non_role_addresses`). No language model is involved. A search that finds no contact at all, or a site that cannot be read, is not charged. Costs $0.009 per call. Results are stored and reused: the response says when the website was read (`retrieved_at`), how old the answer is (`age_seconds`) and whether it came from a stored result (`from_cache`); send `max_age_seconds` to choose the oldest answer you accept, or 0 to force a fresh read. A call usually takes 3 to 20 seconds (about a second when a stored result is reused). Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.009 USDC per call.

Parâmetros

domainstring · opcionalThe company's website: a domain such as `stripe.com` or a full URL (`https://stripe.com/`). Give this or `company_name`.
company_namestring · opcionalThe company's name, when you do not know its website (e.g. `Mistral AI`): the official site is looked up first. `domain` wins when both are given.
max_age_secondsinteger · opcionalThe oldest result you accept, in seconds. Omit it for the default (results up to 12 hours old); `0` forces a fresh read of the website. The response always says how old it is.

Exemplo de pedido

HTTPcURLNode.jsPython

O que o seu agente envia

{
  "domain": "example.org"
}
🎁 3 de 3 chamadas grátis restantes hoje

O curl simples para no desafio 402: adicione um cliente x402 (separadores Node.js ou Python) para pagar automaticamente.

Shell
# O curl simples para no desafio 402: adicione um cliente x402 (separadores Node.js ou Python) para pagar automaticamente.
curl -X POST 'https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts' \
  -H 'content-type: application/json' \
  -d '{"domain":"example.org"}'

O SDK x402 trata do 402, da assinatura e da repetição por si: uma chamada, um resultado.

TypeScript
// npm install @x402/fetch @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPayment("https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"domain":"example.org"}),
});
console.log(await res.json());

O SDK x402 trata do 402, da assinatura e da repetição por si: uma chamada, um resultado.

Python 3
# pip install "x402[httpx]" eth_account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client


async def main() -> None:
    client = x402Client()
    account = Account.from_key(os.environ["EVM_PRIVATE_KEY"])
    register_exact_evm_client(client, EthAccountSigner(account))
    async with x402HttpxClient(client) as http:
        response = await http.post("https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts", json={"domain":"example.org"})
        await response.aread()
        print(response.json())


asyncio.run(main())

O cliente Java de referência do repositório x402. Ainda não existe um SDK Java publicado: fornece a assinatura (por exemplo com web3j).

Java 11+
// Reference client from github.com/coinbase/x402 (java/): build it with `mvn clean install`, then
// <dependency><groupId>org.x402</groupId><artifactId>x402</artifactId><version>1.0.0-SNAPSHOT</version></dependency>
import org.x402.client.X402HttpClient;
import org.x402.crypto.CryptoSigner;
import java.math.BigInteger;
import java.net.URI;
import java.net.http.HttpResponse;
import java.util.Map;

public class Call {
  public static void main(String[] args) throws Exception {
    // You provide the EIP-3009 signature (for example with web3j) from your private key (env EVM_PRIVATE_KEY).
    CryptoSigner signer = new CryptoSigner() {
      @Override
      public String sign(Map<String, Object> payload) {
        return signWithWallet(System.getenv("EVM_PRIVATE_KEY"), payload);
      }
    };
    X402HttpClient client = new X402HttpClient(signer);

    BigInteger amount = BigInteger.valueOf(9000); // $0.009 in USDC (6 decimals)
    String usdcOnBase = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
    String payTo = "<the seller address from the 402 challenge>";
    HttpResponse<String> response = client.get(URI.create("https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts"), amount, usdcOnBase, payTo);
    System.out.println(response.body());
  }
}

O SDK x402 trata do 402, da assinatura e da repetição por si: uma chamada, um resultado.

Go
// go get github.com/x402-foundation/x402/go/v2
package main

import (
	"context"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
	"strings"

	x402 "github.com/x402-foundation/x402/go/v2"
	x402http "github.com/x402-foundation/x402/go/v2/http"
	evm "github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/client"
	evmsigners "github.com/x402-foundation/x402/go/v2/signers/evm"
)

func main() {
	signer, _ := evmsigners.NewClientSignerFromPrivateKey(os.Getenv("EVM_PRIVATE_KEY"))
	client := x402.Newx402Client().Register("eip155:*", evm.NewExactEvmScheme(signer))
	httpClient := x402http.WrapHTTPClientWithPayment(http.DefaultClient, x402http.Newx402HTTPClient(client))

	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
	defer cancel()
	req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts", strings.NewReader(`{"domain":"example.org"}`))
	req.Header.Set("content-type", "application/json")
	res, err := httpClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(body))
}

O SDK x402 trata do 402, da assinatura e da repetição por si: uma chamada, um resultado.

Rust
// Cargo.toml: x402-reqwest = "0.6", x402-chain-eip155, alloy-signer-local, reqwest, tokio (features = ["full"])
use alloy_signer_local::PrivateKeySigner;
use reqwest::Client;
use std::sync::Arc;
use x402_chain_eip155::V2Eip155ExactClient;
use x402_reqwest::{ReqwestWithPayments, ReqwestWithPaymentsBuild, X402Client};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let signer: Arc<PrivateKeySigner> = Arc::new(std::env::var("EVM_PRIVATE_KEY")?.parse()?);
    let x402 = X402Client::new().register(V2Eip155ExactClient::new(signer));
    let http = Client::new().with_payments(x402).build();

    let res = http
        .post("https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts")
        .header("content-type", "application/json")
        .body(r#"{"domain":"example.org"}"#)
        .send()
        .await?;
    println!("{} {}", res.status(), res.text().await?);
    Ok(())
}

O que o cliente x402 do seu agente faz nos bastidores (técnico, ilustrativo).

  1. 1

    Chamar o endpoint

    →
    POST https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts
    content-type: application/json
    
    {
      "domain": "example.org"
    }
    ←
    402 Payment Required
    HTTP/1.1 402 Payment Required
    PAYMENT-REQUIRED: <base64>
    
    {
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "9000",
          "asset": "USDC",
          "payTo": "0x…"
        }
      ]
    }
  2. 2

    Assinar o pagamento (local)

    A sua carteira assina localmente uma autorização USDC. Só a assinatura sai da sua máquina.

    →
    wallet.sign(transferWithAuthorization,
      to: payTo, value: 9000 ($0.009 USDC), network: base)
    ←
    signature
    PAYMENT-SIGNATURE: <signed authorisation>
  3. 3

    Repetir com a assinatura

    →
    POST https://api.17711.xyz/registry/contact-finder-service/v1/contact-finder/get_contacts
    PAYMENT-SIGNATURE: <signed authorisation>
    content-type: application/json
    
    {
      "domain": "example.org"
    }
    ←
    200 OK
    HTTP/1.1 200 OK
    PAYMENT-RESPONSE: <settlement receipt>
    
    { … the tool's JSON answer … }

O SDK x402 faz os passos 2 e 3 por si.

Definição OpenAPI

Definição OpenAPI · contact_finder_get_contacts
openapi.json
{
  "operationId": "contact_finder_get_contacts",
  "summary": "Contact finder: public business emails, phones, contact forms and messaging links of a domain, with role and source page ($0.009, x402)",
  "description": "Finds a website's public business contacts. Send a `domain` (stripe.com or a full URL) or just a `company_name`. The home page and the contact, support, legal, press, careers and about pages its own links point to (links in English, French, German, Spanish, Italian, Portuguese and Dutch) are read through a proxy, together with the security.txt file. Each contact is returned with its kind (email, phone, contact form, messaging link, security contact, social profile), its role (sales, support, press, jobs, billing, legal, privacy, security, general), the page it was found on, how it appears there (mailto link, structured data, plain text) and a confidence level. For every e-mail address the response says whether its domain has mail servers, and `domain_mail` reports the site's mail platform, SPF and DMARC policies. Only contacts literally published on the pages read are returned: no guessed address, and no named individual (personal-looking addresses are only counted in `omitted_non_role_addresses`). No language model is involved. A search that finds no contact at all, or a site that cannot be read, is not charged. Costs $0.009 per call. Results are stored and reused: the response says when the website was read (`retrieved_at`), how old the answer is (`age_seconds`) and whether it came from a stored result (`from_cache`); send `max_age_seconds` to choose the oldest answer you accept, or 0 to force a fresh read. A call usually takes 3 to 20 seconds (about a second when a stored result is reused). Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.009 USDC per call.",
  "x-price-usdc": "0.009",
  "x-payment-info": {
    "price": {
      "mode": "fixed",
      "currency": "USD",
      "amount": "0.009000"
    },
    "protocols": [
      {
        "x402": {}
      }
    ]
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "domain": {
              "description": "The company's website: a domain such as `stripe.com` or a full URL (`https://stripe.com/`). Give this or `company_name`.",
              "type": [
                "string",
                "null"
              ]
            },
            "company_name": {
              "description": "The company's name, when you do not know its website (e.g. `Mistral AI`): the official site is looked up first. `domain` wins when both are given.",
              "type": [
                "string",
                "null"
              ]
            },
            "max_age_seconds": {
              "description": "The oldest result you accept, in seconds. Omit it for the default (results up to 12 hours old); `0` forces a fresh read of the website. The response always says how old it is.",
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            }
          }
        },
        "example": {
          "domain": "string",
          "company_name": "string",
          "max_age_seconds": 0
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Successful response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "description": "The host that was searched, lowercased, without scheme or path."
              },
              "resolved_from_name": {
                "type": "boolean",
                "description": "`true` when the website was found from `company_name`."
              },
              "pages_read": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The pages that were actually read."
              },
              "source_language": {
                "type": "string",
                "description": "Language of the website (ISO 639-1 code)."
              },
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "description": "`email`, `phone`, `form` (a contact form), `page` (a contact, support or help-centre page), `messaging` (WhatsApp, Telegram, Signal, Messenger), `security` (a vulnerability-reporting contact) or `social` (a profile link)."
                    },
                    "value": {
                      "type": "string",
                      "description": "The address, number or link, exactly as published."
                    },
                    "role": {
                      "type": "string",
                      "description": "`sales`, `support`, `press`, `jobs`, `legal`, `privacy`, `security`, `billing` or `general`."
                    },
                    "label": {
                      "description": "The label published next to it (link text or heading), when there is one.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_url": {
                      "type": "string",
                      "description": "The page where it was found."
                    },
                    "found_in": {
                      "type": "string",
                      "description": "How it appears there: `mailto`, `text`, `jsonld`, `tel`, `form`, `link`, `probe` (a common address that exists), `security.txt`."
                    },
                    "confidence": {
                      "type": "string",
                      "description": "`high` (published as a link or in structured data), `medium` or `low`."
                    },
                    "mx_valid": {
                      "description": "For an e-mail address: whether its domain has mail servers (`false` = it cannot receive mail).",
                      "type": [
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "value",
                    "role",
                    "source_url",
                    "found_in",
                    "confidence"
                  ]
                },
                "description": "Public business contacts: role mailboxes, phones, contact forms, messaging links, security contact and social profiles -- only what is literally published on the pages read."
              },
              "domain_mail": {
                "type": "object",
                "properties": {
                  "mx": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Mail servers (MX) of the website's domain, highest priority first (at most 5)."
                  },
                  "provider": {
                    "description": "Mail platform deduced from the MX records (`google-workspace`, `microsoft-365`, ...).",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "spf": {
                    "description": "SPF policy: `strict` (-all), `soft` (~all), `neutral` (?all), `open` (+all) or `none`.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "dmarc": {
                    "description": "DMARC policy: `reject`, `quarantine`, `none` or `absent`.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "mx"
                ]
              },
              "has_contact_form": {
                "type": "boolean",
                "description": "Whether a contact form was found."
              },
              "security_contact": {
                "description": "The first security contact published (security.txt), when there is one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "omitted_non_role_addresses": {
                "type": "integer",
                "minimum": 0,
                "description": "E-mail addresses that look personal (a named individual) or have no recognizable role: they are not returned, only counted."
              },
              "retrieved_at": {
                "type": "string",
                "description": "When the website was read to build this list (UTC)."
              },
              "age_seconds": {
                "type": "integer",
                "minimum": 0,
                "description": "How old this answer is, in seconds (0 for a fresh read)."
              },
              "from_cache": {
                "type": "boolean",
                "description": "`true` when this answer was served from a stored result rather than a fresh read."
              },
              "pages_from_cache": {
                "type": "integer",
                "minimum": 0,
                "description": "How many of the pages used came from a stored copy (fresh enough for `max_age_seconds`)."
              },
              "stale_pages": {
                "type": "integer",
                "minimum": 0,
                "description": "How many pages could not be refreshed and were answered from an older stored copy."
              }
            },
            "required": [
              "domain",
              "resolved_from_name",
              "pages_read",
              "source_language",
              "contacts",
              "domain_mail",
              "has_contact_form",
              "omitted_non_role_addresses",
              "retrieved_at",
              "age_seconds",
              "from_cache",
              "pages_from_cache",
              "stale_pages"
            ]
          },
          "example": {
            "domain": "string",
            "resolved_from_name": false,
            "pages_read": [
              "string"
            ],
            "source_language": "string",
            "contacts": [
              {
                "kind": "string",
                "value": "string",
                "role": "string",
                "label": "string",
                "source_url": "string",
                "found_in": "string",
                "confidence": "string",
                "mx_valid": false
              }
            ],
            "domain_mail": {
              "mx": [
                "string"
              ],
              "provider": "string",
              "spf": "string",
              "dmarc": "string"
            },
            "has_contact_form": false,
            "security_contact": "string",
            "omitted_non_role_addresses": 0,
            "retrieved_at": "string",
            "age_seconds": 0,
            "from_cache": false,
            "pages_from_cache": 0,
            "stale_pages": 0
          }
        }
      }
    },
    "402": {
      "description": "Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "description": "x402 v2 PaymentRequired challenge",
            "properties": {
              "x402Version": {
                "type": "integer"
              },
              "error": {
                "type": "string"
              },
              "resource": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  }
                }
              },
              "accepts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "scheme": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "string",
                      "description": "Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."
                    },
                    "asset": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "maxTimeoutSeconds": {
                      "type": "integer"
                    },
                    "extra": {
                      "type": "object"
                    }
                  }
                }
              }
            },
            "required": [
              "x402Version",
              "accepts"
            ]
          }
        }
      }
    },
    "default": {
      "description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "description": "ErrorEnvelope"
          }
        }
      }
    }
  }
}