{
  "openapi": "3.1.0",
  "info": {
    "title": "NoJunk Company Lookup",
    "version": "1.0.0",
    "description": "Company enrichment from a domain, URL or work email: company name, description, logo, founded, headquarters, industry, employees, stock ticker (with SEC CIK), LinkedIn/X/Facebook/Instagram/YouTube/GitHub links, public contact email and phone, domain age. Sources: the company's own site (JSON-LD, Open Graph), Wikidata, RDAP, SEC EDGAR. No data, no charge.",
    "x-guidance": "POST /lookup {\"domain\":\"stripe.com\"} or GET /lookup?domain=stripe.com. Also accepts a full URL or a work email (jane@stripe.com). Free email providers are rejected. $0.01 USDC on Base via x402; invalid input, unknown domains and outages are not charged."
  },
  "servers": [
    {
      "url": "https://nojunk-company-lookup.mick8511.workers.dev"
    }
  ],
  "paths": {
    "/sample": {
      "get": {
        "operationId": "sampleCompanyLookup",
        "summary": "Free example request and answer (static)",
        "responses": {
          "200": {
            "description": "Example"
          }
        }
      }
    },
    "/lookup": {
      "post": {
        "operationId": "companyLookup",
        "summary": "Who is the company behind this domain?",
        "tags": [
          "Enrichment",
          "Company"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "stripe.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Company profile",
            "content": {
              "application/json": {
                "example": {
                  "domain": "stripe.com",
                  "found": true,
                  "name": "Stripe",
                  "description": "Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.",
                  "logo": "https://images.stripeassets.com/fzn2n1nzq965/1hgcBNd12BfT9VLgbId7By/01d91920114b124fb4cf6d448f9f06eb/favicon.svg",
                  "founded": "2010",
                  "headquarters": "San Francisco",
                  "country": "United States",
                  "industry": [
                    "financial services",
                    "mobile payment industry"
                  ],
                  "employees": 8000,
                  "public_company": null,
                  "socials": {
                    "linkedin": "https://www.linkedin.com/company/stripe",
                    "x": "https://twitter.com/stripe",
                    "facebook": "https://www.facebook.com/StripeHQ",
                    "instagram": "https://www.instagram.com/stripehq",
                    "youtube": "https://youtube.com/@stripe",
                    "github": "https://github.com/stripe",
                    "crunchbase": "https://www.crunchbase.com/organization/stripe"
                  },
                  "contact": {
                    "email": null,
                    "phone": null
                  },
                  "website": {
                    "final_url": "https://stripe.com/",
                    "reachable": true,
                    "title": "Stripe | Financial Infrastructure to Grow Your Revenue"
                  },
                  "domain_registration": {
                    "registered": "1995-09-12",
                    "age_years": 31,
                    "registrar": "SafeNames Ltd."
                  },
                  "wikidata_id": "Q7624104",
                  "completeness": "6/7",
                  "sources": [
                    "website",
                    "wikidata",
                    "rdap"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 challenge in the PAYMENT-REQUIRED header)"
          },
          "404": {
            "description": "No company data found (not charged)"
          }
        }
      },
      "get": {
        "operationId": "companyLookupGet",
        "summary": "Who is the company behind this domain?",
        "tags": [
          "Enrichment",
          "Company"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Company profile",
            "content": {
              "application/json": {
                "example": {
                  "domain": "stripe.com",
                  "found": true,
                  "name": "Stripe",
                  "description": "Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.",
                  "logo": "https://images.stripeassets.com/fzn2n1nzq965/1hgcBNd12BfT9VLgbId7By/01d91920114b124fb4cf6d448f9f06eb/favicon.svg",
                  "founded": "2010",
                  "headquarters": "San Francisco",
                  "country": "United States",
                  "industry": [
                    "financial services",
                    "mobile payment industry"
                  ],
                  "employees": 8000,
                  "public_company": null,
                  "socials": {
                    "linkedin": "https://www.linkedin.com/company/stripe",
                    "x": "https://twitter.com/stripe",
                    "facebook": "https://www.facebook.com/StripeHQ",
                    "instagram": "https://www.instagram.com/stripehq",
                    "youtube": "https://youtube.com/@stripe",
                    "github": "https://github.com/stripe",
                    "crunchbase": "https://www.crunchbase.com/organization/stripe"
                  },
                  "contact": {
                    "email": null,
                    "phone": null
                  },
                  "website": {
                    "final_url": "https://stripe.com/",
                    "reachable": true,
                    "title": "Stripe | Financial Infrastructure to Grow Your Revenue"
                  },
                  "domain_registration": {
                    "registered": "1995-09-12",
                    "age_years": 31,
                    "registrar": "SafeNames Ltd."
                  },
                  "wikidata_id": "Q7624104",
                  "completeness": "6/7",
                  "sources": [
                    "website",
                    "wikidata",
                    "rdap"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 challenge in the PAYMENT-REQUIRED header)"
          },
          "404": {
            "description": "No company data found (not charged)"
          }
        }
      }
    }
  }
}