# NinjaPear Overview NinjaPear is a B2B Company Intelligence platform focused on data ownership and ethical sourcing. As a first-party provider, we maintain a sustainable ecosystem of proprietary and legally vetted data. Our mission is to provide a reliable data infrastructure, enabling businesses to develop and scale value-added applications and workflows with confidence. ## For AI Agents Building with an AI coding agent? Use the plain Markdown version of these docs — optimized for LLMs and AI tools like Claude, Cursor, and ChatGPT: - **[LLM-friendly docs (Markdown)](https://nubela.co/llms-full.txt)** — full API reference as plain text, ready to paste or drag-and-drop into any AI chat - **[llms.txt](https://nubela.co/llms.txt)** — lightweight index for AI agent discovery - **[OpenAPI 3.0 Spec](https://nubela.co/api/openapi3.yaml)** — machine-readable API schema ## AI Skill The NinjaPear AI Skill gives coding agents the procedural knowledge to write correct NinjaPear integration code in your applications. Install it with a single command and your agent will know how to authenticate, choose the right endpoint, generate SDK code, and handle edge cases — all with cost awareness built in. - [GitHub repository](https://github.com/NinjaPear/ninjapear-skill) **Prerequisites** — A NinjaPear API key from [nubela.co/dashboard](https://nubela.co/dashboard) and Node.js 18+. Install the skill using the `npx skills` CLI. Choose the command for your agent: ### Claude Code `npx skills add NinjaPear/ninjapear-skill -a claude-code` ### Codex `npx skills add NinjaPear/ninjapear-skill -a codex` ### Opencode `npx skills add NinjaPear/ninjapear-skill -a opencode` ### What the Skill Provides Once installed, the skill gives your coding agent procedural knowledge to work with NinjaPear correctly: | Capability | Description | | -------------------------- | ------------------------------------------------------------------- | | Authentication setup | Configure API keys via environment variables and SDK initialization | | Endpoint selection | Choose the right NinjaPear API endpoint with cost awareness | | Python SDK integration | Generate correct code using the `ninjapear` Python package | | JavaScript SDK integration | Generate correct code using the `ninjapear` npm package | | Pagination handling | Implement cursor-based pagination for list endpoints | | Rate limit handling | Respect rate limits with proper retry and backoff logic | | Error handling | Handle all NinjaPear error codes (401, 403, 404, 429, 500, 503) | | Timeout configuration | Set appropriate timeouts for long-running endpoints | ## Explain it to me like I'm 5 - Get a list of customers, investors, and partners of any company with the [Customer Listing Endpoint](#customer-listing-endpoint). - Find competitors of any company and why they compete with the [Competitor Listing Endpoint](#competitor-listing-endpoint). - Get the logo of any company for free with the [Company Logo Endpoint](#company-logo-endpoint). - Get full company details like industry, description, executives, and office locations with the [Company Details Endpoint](#company-details-endpoint). - Get the employee count of any company with the [Employee Count Endpoint](#employee-count-endpoint). - Get recent blog posts and social media updates of any company with the [Company Updates Endpoint](#company-updates-endpoint). - Get the full funding history and investors of any company with the [Company Funding Endpoint](#company-funding-endpoint). - Resolve a company name to its canonical website URL with the [Website Lookup Endpoint](#website-lookup-endpoint). - Find the work email of a person given their name and company domain with the [Work Email Endpoint](#work-email-endpoint). - Look up a person's profile, job history, and education from their work email with the [Person Profile Endpoint](#person-profile-endpoint). - Find people similar to a target person — same role at competing companies — with the [Similar People Endpoint](#similar-people-endpoint). - Check if an email address is disposable or from a free email provider with the [Disposable Email Checker Endpoint](#disposable-email-checker-endpoint). - Monitor companies for new blog posts, tweets, and website changes via RSS with the [Monitor API](#monitor-api). - Check your remaining API credits with the [View Credit Balance Endpoint](#view-credit-balance-endpoint). ## Authentication ```shell curl "https://nubela.co/api/v1/customer/listing" \ -H "Authorization: Bearer YOUR_API_KEY" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CustomerAPIApi(api_client) response = api.get_customer_listing(website="https://example.com") ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; var bearerAuth = defaultClient.authentications["bearerAuth"]; bearerAuth.accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CustomerAPIApi(); api.getCustomerListing("https://example.com").then(function (data) { console.log(data); }); ``` NinjaPear's API uses bearer tokens to authenticate users. Each user is assigned a randomly generated secret key under the [API section in the dashboard](https://nubela.co/dashboard). The bearer token is injected in the `Authorization` header. ## Client Libraries We provide official client libraries for JavaScript and Python to make integrating with the NinjaPear API easier. ### JavaScript (Node.js) ```shell npm install ninjapear ``` ```python # JavaScript library - see JavaScript tab ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; var bearerAuth = defaultClient.authentications["bearerAuth"]; bearerAuth.accessToken = "YOUR_API_KEY"; // Now you can use any API class var companyApi = new NinjaPear.CompanyAPIApi(); var customerApi = new NinjaPear.CustomerAPIApi(); var contactApi = new NinjaPear.ContactAPIApi(); var metaApi = new NinjaPear.MetaAPIApi(); ``` - [npm package](https://www.npmjs.com/package/ninjapear) - [GitHub repository](https://github.com/NinjaPear/ninjapear-js) ### Python ```shell uv add ninjapear # or: pip install ninjapear ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) # Use the client with a context manager with ninjapear.ApiClient(configuration) as api_client: company_api = ninjapear.CompanyAPIApi(api_client) customer_api = ninjapear.CustomerAPIApi(api_client) contact_api = ninjapear.ContactAPIApi(api_client) meta_api = ninjapear.MetaAPIApi(api_client) ``` ```javascript // Python library - see Python tab ``` - [PyPI package](https://pypi.org/project/ninjapear/) - [GitHub repository](https://github.com/NinjaPear/ninjapear-py) ## Rate limit Rate limits are enforced per product account and shared by all API keys under that product. Paid API endpoints are limited to `50` requests per minute. For rate limiting, Monitor feed and target management endpoints count as paid API traffic even when the endpoint's credit cost is `0`. At periods of high load, our system might tighten rate limits for all accounts to ensure that our services remain accessible for all users. We return HTTP `429` when you are rate limited. You can also receive HTTP `429` if capacity on our end limits us. You should handle 429 errors and apply exponential backoff. Rate-limited responses include: | Header | Description | | ------------------------- | ------------------------------------------------ | | `Retry-After` | Seconds to wait before retrying | | `X-RateLimit-Limit` | Maximum requests allowed in the current minute | | `X-RateLimit-Remaining` | Requests remaining in the current minute | | `X-RateLimit-Reset` | Unix timestamp when the current minute resets | ### Rate limit for Free APIs To sustainably provide free APIs, rate limit for free APIs depends on your subscription plan: - Free, trial, or PAYG plan: 2 requests/min - $49/mo plan: 20 requests/min - $299/mo plan: 50 requests/min - $899/mo plan: 100 requests/min - $1899/mo plan: 300 requests/min The free API rate limit applies to Company Logo, Disposable Email Checker, View Credit Balance, and RSS feed consumption. ## Credits Each valid request requires at least `0.1` credit to be processed, unless it is a free API endpoint. A credit is consumed if and only if the request is parsed successfully. A successful request is a request that returns with a `200` HTTP status code. ## Cache Billing For endpoints with a `use_cache` parameter, a product is not charged again when the same normalized request is served from the same cached record version that the product previously paid for. The response includes `X-NinjaPear-Credit-Cost: 0` for these repeat cache hits. `use_cache=never` always performs a fresh pull and charges normally. `use_cache=if-recent` only qualifies for a free repeat while the cached record is within that endpoint's freshness window. For paginated endpoints, free repeat access is limited to pages already paid for with the same query, filters, cursor chain, and `page_size`. Paid paginated pages are replayed exactly on repeat cache hits, including the `next_page` value. Later pages that have not been paid for yet still charge normally. ## Timeouts and API response time NinjaPear API endpoints take `30-60` seconds to complete. You are encouraged to make concurrent requests to our API service to maximize throughput. See [this post](https://nubela.co/blog/how-to-maximize-throughput-on-proxycurl/) on how you can maximise throughput. We recommend a timeout of `100` seconds. ## Errors These are the common errors that could be returned by our API: | HTTP Code | Charge? | Description | | --------- | ------- | ------------------------------------------------------------------------------------------ | | 400 | No | Invalid parameters provided. Refer to the documentation and message body for more info | | 401 | No | Invalid API Key | | 403 | No | You have run out of credits | | 404 | Yes | The requested resource (e.g., user profile, company) could not be found | | 410 | No | This API is deprecated | | 429 | No | Rate limited. Please retry | | 500 | No | There is an error with our API. Please [Contact us](mailto:hello@nubela.co) for assistance | | 503 | No | Enrichment failed, please retry. | You will never be charged for **failed requests**. ## Backward Compatibility Guarantee We are committed to ensuring that our API remains backward compatible, allowing you to integrate with confidence. Our backward compatibility guarantee means that we will not introduce changes that break existing functionality or remove endpoints without a deprecation period. To be specific, we will not introduce breaking changes in the following ways: 1. We will not remove documented parameters and response attributes. 2. We will not change the data type as documented in our API responses. However, the following are not considered breaking changes: - Adding attributes/parameters to API endpoints without prior notice. - Adding additional response or requests headers to our API endpoints without prior notice. We highly recommend integrating our API in a way that would not break should new response attributes or headers be introduced. If we make changes to our API, we will provide clear documentation and sufficient notice (30 days) to ensure a seamless transition. Notices will be shared via newsletter emails, Twitter/X posts and updates to our blog. # Customer API ## Customer Listing Endpoint `GET /api/v1/customer/listing` Cost: `1` credit / request + `2` credit / company returned. Credits are charged even when the request returns an empty result. Get a list of highly-probable customers, investors, and partners/platforms of a target company, categorized by relationship type. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/customer/listing" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CustomerAPIApi(api_client) response = api.get_customer_listing(website="https://www.stripe.com") print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CustomerAPIApi(); api.getCustomerListing("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response: ```json { "customers": [ { "name": "Apple", "description": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide.", "tagline": "Think different.", "website": "https://www.apple.com", "company_logo_url": "https://nubela.co/api/v1/company/logo?website=https%3A%2F%2Fwww.apple.com", "id": "abc123", "industry": 45202030, "specialties": ["Technology", "Consumer Electronics"], "x_profile": "https://x.com/Apple" } ], "investors": [ { "name": "Sequoia Capital", "description": "Sequoia Capital is a venture capital firm focused on technology companies.", "tagline": null, "website": "https://www.sequoiacap.com", "company_logo_url": "https://nubela.co/api/v1/company/logo?website=https%3A%2F%2Fwww.sequoiacap.com", "id": "def456", "industry": 40203010, "specialties": ["Venture Capital", "Growth Equity"], "x_profile": "https://x.com/sequoia" } ], "partner_platforms": [ { "name": "Amazon Web Services", "description": "Amazon Web Services provides cloud computing platforms and APIs.", "tagline": null, "website": "https://aws.amazon.com", "company_logo_url": "https://nubela.co/api/v1/company/logo?website=https%3A%2F%2Faws.amazon.com", "id": "ghi789", "industry": 45101010, "specialties": ["Cloud Computing", "Infrastructure"], "x_profile": "https://x.com/awscloud" } ], "next_page": "https://nubela.co/api/v1/customer/listing?website=https://www.stripe.com&cursor=abc123" } ``` ### URL Parameters | Parameter | Required | Description | Example | | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `cursor` | No | Pagination cursor from `next_page` in a previous response | `abc123` | | `page_size` | No | Number of results per page (1-200, default 200) | `50` | | `quality_filter` | No | Filter out low-quality results (junk TLDs like `.top`, `.xyz` and unreachable websites). Set to `false` to include all results. (default: `true`) | `false` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (default; return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-present` | ### Response | Key | Description | Example | | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | | `customers` | A list of companies that are probable customers of the target company. Entities that pay for the target's product/service. | List of CustomerCompany objects | | `investors` | A list of companies that are investors (VC firms, PE funds, angel networks) of the target company. | List of CustomerCompany objects | | `partner_platforms` | A list of companies that are partners, platforms, or service providers the target company uses or integrates with (tech stack, media, agencies). | List of CustomerCompany objects | | `next_page` | The API URI that serves as the cursor for pagination. Following this URL with your API key will lead to the next page of results. This will be null for the final page. | `https://nubela.co/api/v1/customer/list?...` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | ------------------------------------------------------------- | | 400 | No | Unable to extract enough information about the target company | | 404 | No | No cached data found when `use_cache=if-present-only` | ### CustomerCompany | Key | Description | Example | | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `name` | Company name | `"Apple"` | | `description` | A brief description of the company | `"Apple Inc. designs, manufactures, and markets smartphones..."` | | `tagline` | Company tagline or slogan | `"Think different."` | | `website` | Company website URL | `"https://www.apple.com"` | | `company_logo_url` | URL to the Company Logo API for this company. Powered by [Company Logo Endpoint](#company-logo-endpoint). Authenticate with your bearer token. `null` if no website. | `"https://nubela.co/api/v1/company/logo?website=https%3A%2F%2Fwww.apple.com"` | | `id` | Unique identifier | `"abc123"` | | `industry` | GICS 8-digit industry code | `45202030` | | `specialties` | List of company specialties | `["Technology"]` | | `x_profile` | X (Twitter) profile URL | `"https://x.com/Apple"` | > **Note on `company_logo_url`:** This URL is powered by the [Company Logo Endpoint](#company-logo-endpoint). Authenticate with your Bearer token (same as the main API). These are temporal links — the recommended approach is to download the image via the URL as soon as the response is returned and host the image on your end. ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `10` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | # Competitor API ## Competitor Listing Endpoint `GET /api/v1/competitor/listing` Cost: `2` credits / competitor returned. Minimum `5` credits per request, charged even when no results are found. Get a list of competitor companies for a target company, with the reason for competition. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/competitor/listing" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompetitorAPIApi(api_client) response = api.get_competitor_listing(website="https://www.stripe.com") print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompetitorAPIApi(); api.getCompetitorListing("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response: ```json { "competitors": [ { "company_details_url": "https://nubela.co/api/v1/company/details?website=https://www.adyen.com", "website": "https://www.adyen.com", "competition_reason": "product_overlap" }, { "company_details_url": "https://nubela.co/api/v1/company/details?website=https://squareup.com", "website": "https://squareup.com", "competition_reason": "product_overlap" }, { "company_details_url": "https://nubela.co/api/v1/company/details?website=https://www.checkout.com", "website": "https://www.checkout.com", "competition_reason": "organic_keyword_overlap" } ] } ``` ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | ------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (default; return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-present` | ### Response | Key | Description | Example | | ------------- | ------------------------------------------------------ | ------------------------------------------------------- | | `competitors` | A list of competitor companies for the target company. | List of [CompetitorCompany](#competitorcompany) objects | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | ------------------------------------------------------------- | | 400 | No | Unable to extract enough information about the target company | | 404 | No | No cached data found when `use_cache=if-present-only` | ### CompetitorCompany | Key | Description | Example | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | | `company_details_url` | URL to the Company Details endpoint for this competitor. Authenticate with your bearer token to retrieve full company details. | `"https://nubela.co/api/v1/company/details?website=https://www.adyen.com"` | | `website` | Company website URL | `"https://www.adyen.com"` | | `competition_reason` | Why this company is considered a competitor. One of the values from the [Competition Reason](#competition-reason-enum) enum. | `"product_overlap"` | ### Competition Reason Enum | Value | Description | | ------------------------- | ------------------------------------------------------- | | `organic_keyword_overlap` | Both companies rank for similar organic search keywords | | `product_overlap` | Both companies offer similar products or services | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `4` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | # Company API ## Company Logo Endpoint `GET /api/v1/company/logo` Cost: `0` credit / successful request. (FREE) Retrieve the logo of a company given its website URL. Returns the logo as a PNG image (128x128). ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/company/logo" \ --output logo.png ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) logo_data = api.get_company_logo(website="https://www.stripe.com") # Save the logo image with open("logo.png", "wb") as f: f.write(logo_data) ``` ```javascript var NinjaPear = require("ninjapear"); var fs = require("fs"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompanyAPIApi(); api.getCompanyLogo("https://www.stripe.com").then(function (data) { // Save the logo image fs.writeFileSync("logo.png", Buffer.from(data)); }); ``` > Example response: >  A raw PNG image binary (Content-Type: `image/png`). ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | ------------------------------------- | ------------------------ | | `website` | Yes | The website URL of the target company | `https://www.stripe.com` | ### Response A `200` response returns the logo as a raw PNG image with `Content-Type: image/png`. ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | ---------------------------------- | | 404 | No | No logo found for the given domain | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `0` | ## Company Details Endpoint `GET /api/v1/company/details` Cost: `3` credits / request (base). Add `2` credits when `include_employee_count=true`. Add `1` credit when `follower_count=include`. Maximum total: `6` credits. Credits are charged even if no data found. Retrieve the details of a company given its website URL. Returns company metadata including description, industry, social media URLs, the current leadership team, and more. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/company/details" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) details = api.get_company_details(website="https://www.stripe.com") print(details) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompanyAPIApi(); api.getCompanyDetails("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response (private company): ```json { "websites": ["https://stripe.com", "https://stripe.dev"], "description": "Stripe is a technology company that builds economic infrastructure for the internet.", "industry": 45102010, "company_type": "PRIVATELY_HELD", "founded_year": 2010, "specialties": ["Payments", "Financial Services", "APIs"], "name": "Stripe", "tagline": "Financial infrastructure for the internet", "logo_url": "https://nubela.co/api/v1/company/logo?website=https://stripe.com", "cover_pic_url": "https://example.com/stripe-cover.png", "facebook_url": "https://facebook.com/stripe", "twitter_url": "https://twitter.com/stripe", "instagram_url": null, "employee_count": 8000, "addresses": [ { "address_type": "HEADQUARTERS", "line1": "354 Oyster Point Blvd", "line2": null, "city": "South San Francisco", "state": "CA", "postal_code": "94080", "country_code": "US", "country": "United States", "is_primary": true } ], "executives": [ { "name": "Patrick Collison", "title": "Chief Executive Officer", "role": "CEO", "person_profile_url": "https://nubela.co/api/v1/employee/profile?employer_website=https%3A%2F%2Fstripe.com&first_name=Patrick&last_name=Collison" } ], "similar_companies": "https://nubela.co/api/v1/competitor/listing?website=https%3A%2F%2Fstripe.com", "updates": "https://nubela.co/api/v1/company/updates?website=https%3A%2F%2Fstripe.com", "funding": "https://nubela.co/api/v1/company/funding?website=https%3A%2F%2Fstripe.com", "public_listing": null, "follower_count": 272190, "following_count": 555 } ``` > Example response (public company): ```json { "websites": ["https://apple.com"], "description": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide.", "industry": 45202030, "company_type": "PUBLIC_COMPANY", "founded_year": 1976, "specialties": ["Consumer Electronics", "Software", "Services"], "name": "Apple", "tagline": "Think different", "logo_url": "https://nubela.co/api/v1/company/logo?website=https://apple.com", "cover_pic_url": "https://example.com/apple-cover.png", "facebook_url": "https://facebook.com/apple", "twitter_url": "https://twitter.com/apple", "instagram_url": "https://instagram.com/apple", "employee_count": 164000, "addresses": [ { "address_type": "HEADQUARTERS", "line1": "One Apple Park Way", "line2": null, "city": "Cupertino", "state": "CA", "postal_code": "95014", "country_code": "US", "country": "United States", "is_primary": true } ], "executives": [ { "name": "Tim Cook", "title": "Chief Executive Officer", "role": "CEO", "person_profile_url": "https://nubela.co/api/v1/employee/profile?employer_website=https%3A%2F%2Fapple.com&first_name=Tim&last_name=Cook" } ], "similar_companies": "https://nubela.co/api/v1/competitor/listing?website=https%3A%2F%2Fapple.com", "updates": "https://nubela.co/api/v1/company/updates?website=https%3A%2F%2Fapple.com", "funding": "https://nubela.co/api/v1/company/funding?website=https%3A%2F%2Fapple.com", "follower_count": 9500000, "following_count": 1, "public_listing": { "stock_symbol": "AAPL", "ipo_date": "1980-12-12", "isin": "US0378331005", "figi": "BBG000B9XRY4", "cusip": "037833100", "lei": "HWUPKR0MPOU8FGXBT394", "cik": "0000320193", "sic_code": "3571", "revenue_usd": 383285000000, "revenue_captured_at": "2024-09-28", "ebitda_usd": 134000000000, "ebitda_captured_at": "2024-09-28" } } ``` ### URL Parameters | Parameter | Required | Description | Example | | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `include_employee_count` | No | Fetch fresh employee count data via web search. Adds `2` credits to the request cost. Valid values: `true`, `false` (default). | `true` | | `follower_count` | No | Include Twitter/X follower and following counts. Adds `1` credit to the request cost. Valid values: `include`. Omit or pass any other value to exclude. | `include` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Response | Key | Description | Example | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- | | `websites` | List of all company website URLs | `["https://stripe.com", "https://stripe.dev"]` | | `description` | A brief description of the company | `"Stripe is a technology company..."` | | `industry` | GICS 8-digit industry code | `45102010` | | `company_type` | Type of company (PUBLIC_COMPANY, PRIVATELY_HELD, GOVERNMENT_AGENCY, NON_PROFIT, EDUCATIONAL, PARTNERSHIP, SELF_EMPLOYED, SELF_OWNED) | `"PRIVATELY_HELD"` | | `founded_year` | Year the company was founded | `2010` | | `specialties` | List of company specialties | `["Payments", "Financial Services"]` | | `name` | Company name | `"Stripe"` | | `tagline` | Company tagline or slogan | `"Financial infrastructure for the internet"` | | `logo_url` | URL to the [Company Logo endpoint](#company-logo-endpoint). Authenticate with your API key bearer token. | `"https://nubela.co/api/v1/company/logo?website=https://stripe.com"` | | `cover_pic_url` | URL to the company's cover/banner image | `"https://example.com/cover.png"` | | `facebook_url` | Facebook profile URL | `"https://facebook.com/stripe"` | | `twitter_url` | Twitter/X profile URL | `"https://twitter.com/stripe"` | | `instagram_url` | Instagram profile URL | `null` | | `employee_count` | Estimated number of employees | `8000` | | `employee_count_range_min` | Lower bound of employee count range. Only present when `include_employee_count=true`. | `7500` | | `employee_count_range_max` | Upper bound of employee count range. Only present when `include_employee_count=true`. | `8500` | | `follower_count` | Number of Twitter/X followers. Only present when `follower_count=include`. | `272190` | | `following_count` | Number of Twitter/X accounts followed. Only present when `follower_count=include`. | `555` | | `addresses` | List of company addresses | \[[Address Object](#address-object)\] | | `executives` | List of company executives and board members | \[[Executive Object](#executive-object)\] | | `similar_companies` | URL to the [Competitor Listing endpoint](#competitor-listing-endpoint). Authenticate with your bearer token to retrieve competitors. | `"https://nubela.co/api/v1/competitor/listing?website=https%3A%2F%2Fstripe.com"` | | `updates` | URL to the [Company Updates endpoint](#company-updates-endpoint). Authenticate with your bearer token to retrieve updates. | `"https://nubela.co/api/v1/company/updates?website=https%3A%2F%2Fstripe.com"` | | `funding` | URL to the [Company Funding endpoint](#company-funding-endpoint). Authenticate with your bearer token to retrieve funding history. | `"https://nubela.co/api/v1/company/funding?website=https%3A%2F%2Fstripe.com"` | | `public_listing` | Public company data including stock info and financials. `null` for private companies. | [PublicListing Object](#publiclisting-object) | ### Address Object | Key | Description | Example | | -------------- | ------------------------------------------------------------------ | ------------------------- | | `address_type` | Type of address (HEADQUARTERS, REGISTERED, BRANCH, MAILING, OTHER) | `"HEADQUARTERS"` | | `line1` | Street address line 1 | `"354 Oyster Point Blvd"` | | `line2` | Street address line 2 | `null` | | `city` | City name | `"South San Francisco"` | | `state` | State, province, or region | `"CA"` | | `postal_code` | Postal/ZIP code | `"94080"` | | `country_code` | ISO 3166-1 alpha-2 country code | `"US"` | | `country` | Full country name | `"United States"` | | `is_primary` | Whether this is the primary address | `true` | ### Executive Object | Key | Description | Example | | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | Full name of the executive | `"Patrick Collison"` | | `title` | Job title | `"Chief Executive Officer"` | | `role` | Normalized role type (CEO, CFO, COO, CTO, CMO, PRESIDENT, VICE_PRESIDENT, DIRECTOR, BOARD_MEMBER, CHAIRMAN, FOUNDER, OTHER) | `"CEO"` | | `person_profile_url` | Pre-filled URL to the [Person Profile endpoint](#person-profile-endpoint). Authenticate with your bearer token to fetch the executive's full profile. `null` when first name or company website is missing. | `"https://nubela.co/api/v1/employee/profile?employer_website=https%3A%2F%2Fstripe.com&first_name=Patrick&last_name=Collison"` | ### PublicListing Object This object is only present (non-null) for public companies. For private companies, `public_listing` will be `null`. | Key | Description | Example | | --------------------- | ------------------------------------------------ | ------------------------ | | `stock_symbol` | Stock ticker symbol | `"AAPL"` | | `ipo_date` | IPO date in ISO format | `"1980-12-12"` | | `isin` | International Securities Identification Number | `"US0378331005"` | | `figi` | Financial Instrument Global Identifier | `"BBG000B9XRY4"` | | `cusip` | CUSIP identifier | `"037833100"` | | `lei` | Legal Entity Identifier | `"HWUPKR0MPOU8FGXBT394"` | | `cik` | SEC Central Index Key | `"0000320193"` | | `sic_code` | SEC Standard Industrial Classification code | `"3571"` | | `revenue_usd` | Annual revenue in USD | `383285000000` | | `revenue_captured_at` | Date when revenue data was captured (ISO format) | `"2024-09-28"` | | `ebitda_usd` | EBITDA in USD | `134000000000` | | `ebitda_captured_at` | Date when EBITDA data was captured (ISO format) | `"2024-09-28"` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `2` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | --------------------------------------------------- | | 400 | No | Website is unreachable | | 404 | No | No cached data found when `use_cache=if-present-only` | | 404 | Yes | No company data could be extracted from the website | ## Employee Count Endpoint `GET /api/v1/company/employee-count` Cost: `2` credits / successful request. Retrieve the employee count range for a company given its website URL. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/company/employee-count" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) response = api.get_employee_count(website="https://www.stripe.com") print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompanyAPIApi(); api.getEmployeeCount("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response: ```json { "employee_count": 3500 } ``` ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | ------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Response | Key | Description | Example | | ---------------- | ------------------------ | ------- | | `employee_count` | Estimated employee count | `3500` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `2` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | -------------------------------------------------- | | 404 | No | No employee count data found for the given website | | 404 | No | No cached data found when `use_cache=if-present-only` | ## Company Updates Endpoint `GET /api/v1/company/updates` Cost: `2` credits / request. Retrieve the latest blog posts and X/Twitter updates for a company. Returns a mixed timeline of recent blog and X posts sorted by timestamp. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/company/updates" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) response = api.get_company_updates(website="https://www.stripe.com") print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompanyAPIApi(); api.getCompanyUpdates("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response ```json { "blogs": ["https://stripe.com/blog/feed.rss"], "x_profile": "https://x.com/stripe", "updates": [ { "url": "https://stripe.com/blog/annual-letter-2024", "title": "Stripe's annual letter", "description": "A look back at what we built in 2024 and what's ahead.", "image_url": null, "timestamp": "2025-03-01T12:00:00+00:00", "source": "blog" }, { "url": "https://x.com/stripe/status/1234567890", "title": "We just launched a new feature...", "description": "We just launched a new feature that makes payments even easier. Check it out!", "image_url": "https://pbs.twimg.com/media/example.jpg", "timestamp": "2025-02-28T18:30:00+00:00", "source": "x" } ], "timestamp": "2025-03-16T10:00:00+00:00" } ``` ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | ------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 1 day, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Response | Key | Description | Example | | ----------- | ------------------------------------------------------------------------------------- | -------------------------------------- | | `blogs` | List of blog RSS feed URLs (if RSS was discovered) or blog page URLs | `["https://stripe.com/blog/feed.rss"]` | | `x_profile` | X/Twitter profile URL, or `null` if not found | `"https://x.com/stripe"` | | `updates` | List of update objects (blog posts and tweets mixed), sorted by timestamp descending. | See [Update Object](#update-object) | | `timestamp` | UTC timestamp of when this data was pulled | `"2025-03-16T10:00:00+00:00"` | ### Update Object | Key | Description | Example | | ------------- | ---------------------------------------------------------- | ------------------------------------------- | | `url` | URL of the blog post or tweet | `"https://stripe.com/blog/example"` | | `title` | Title of the post (first 80 chars for tweets) | `"Stripe's annual letter"` | | `description` | Post description or tweet text (up to 500 chars for blogs) | `"A look back at..."` | | `image_url` | Image URL (tweet media), or `null` | `"https://pbs.twimg.com/media/example.jpg"` | | `timestamp` | ISO 8601 publication timestamp, or `null` if unknown | `"2025-03-01T12:00:00+00:00"` | | `source` | Source type of the update | `"blog"` or `"x"` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `2` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `1` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | ------------------------------------ | | 400 | No | Missing or invalid website parameter | | 403 | No | Insufficient credits | | 404 | No | No cached data found when `use_cache=if-present-only` | ## Company Funding Endpoint `GET /api/v1/company/funding` Cost: `2` credits / request (base) + `1` credit per unique investor returned. The base charge still applies when no funding data is found (see `error_code: "no_funding_data"` below). Retrieve funding history for a company given its website URL. Returns total funds raised, individual funding rounds with dates and amounts, and participating investors with their websites. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --max-time 300 \ --data-urlencode "website=https://www.stripe.com" \ "https://nubela.co/api/v1/company/funding" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) # Set a generous read timeout — calls can take up to 5 minutes. response = api.get_company_funding(website="https://www.stripe.com", _request_timeout=300) print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; defaultClient.timeout = 300000; // 5 minutes var api = new NinjaPear.CompanyAPIApi(); api.getCompanyFunding("https://www.stripe.com").then(function (data) { console.log(data); }); ``` > Example response ```json { "website": "stripe.com", "total_funds_raised_usd": 9810000000, "credit_cost": 7, "funding_rounds": [ { "round_type": "SECONDARY_SALE", "date": "2026-02-01", "amount_usd": null, "investors": [ { "name": "Thrive Capital", "website": "thrivecap.com", "type": "company", "amount_usd": null }, { "name": "Coatue", "website": "coatue.com", "type": "company", "amount_usd": null }, { "name": "Andreessen Horowitz", "website": "a16z.com", "type": "company", "amount_usd": null } ] }, { "round_type": "SERIES_I", "date": "2024-04-01", "amount_usd": 694200000, "investors": [ { "name": "Sequoia Capital", "website": "sequoiacap.com", "type": "company", "amount_usd": null }, { "name": "Brookfield", "website": "brookfield.com", "type": "company", "amount_usd": null }, { "name": "Paradigm", "website": "paradigm.co", "type": "company", "amount_usd": null } ] }, { "round_type": "SERIES_I", "date": "2023-03-01", "amount_usd": 6500000000, "investors": [ { "name": "GIC", "website": "gic.com.sg", "type": "company", "amount_usd": null }, { "name": "Goldman Sachs", "website": "goldmansachs.com", "type": "company", "amount_usd": null }, { "name": "Temasek", "website": "temasek.com.sg", "type": "company", "amount_usd": null }, { "name": "Thrive Capital", "website": "thrivecap.com", "type": "company", "amount_usd": null } ] }, { "round_type": "SERIES_H", "date": "2021-03-01", "amount_usd": 600000000, "investors": [ { "name": "Allianz X", "website": "allianzx.com", "type": "company", "amount_usd": null }, { "name": "Fidelity", "website": "fidelity.com", "type": "company", "amount_usd": null }, { "name": "Baillie Gifford", "website": "bailliegifford.com", "type": "company", "amount_usd": null } ] }, { "round_type": "SEED", "date": "2011-03-01", "amount_usd": 2000000, "investors": [ { "name": "Peter Thiel", "website": null, "type": "angel", "amount_usd": null }, { "name": "Sequoia Capital", "website": "sequoiacap.com", "type": "company", "amount_usd": null }, { "name": "Elon Musk", "website": null, "type": "angel", "amount_usd": null } ] } ] } ``` ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | ------------------------------------- | ------------------------ | | `website` | Yes | The website URL or company name of the target company. A website URL (e.g. `https://www.stripe.com`) is strongly recommended for precision. | `https://www.stripe.com` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Response | Key | Description | Example | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | | `website` | The company domain the response describes, echoed from the request | `"stripe.com"` | | `total_funds_raised_usd` | Total funding raised in USD, or `null` if undisclosed | `9810000000` | | `funding_rounds` | Array of FundingRound objects, sorted by date descending | See below | | `credit_cost` | Total credits charged for this call (`2` base + `1` per unique investor). Streaming responses deliver the credit cost in the response body rather than the `X-NinjaPear-Credit-Cost` header. | `7` | ### FundingRound Object | Key | Description | Example | | ------------ | -------------------------------------------------------------- | -------------- | | `round_type` | Type of funding round (see round type values below) | `"SERIES_A"` | | `date` | Date of the round in `YYYY-MM-DD` format, or `null` if unknown | `"2023-03-01"` | | `amount_usd` | Amount raised in this round in USD, or `null` if undisclosed | `600000000` | | `investors` | Array of Investor objects that participated in this round | See below | ### Investor Object | Key | Description | Example | | ------------ | ----------------------------------------------------------------------- | ------------------- | | `name` | Name of the investor (firm or individual) | `"Sequoia Capital"` | | `website` | Website domain of the investor, or `null` if unknown | `"sequoiacap.com"` | | `type` | Either `"company"` (VC firm, fund, corporate) or `"angel"` (individual) | `"company"` | | `amount_usd` | Amount this investor contributed in USD, or `null` if undisclosed | `null` | ### Round Type Values `PRE_SEED`, `SEED`, `SERIES_A`, `SERIES_B`, `SERIES_C`, `SERIES_D`, `SERIES_E`, `SERIES_F`, `SERIES_G`, `SERIES_H`, `SERIES_I` through `SERIES_Z`, `BRIDGE`, `VENTURE_DEBT`, `CONVERTIBLE_NOTE`, `GRANT`, `SECONDARY_SALE`, `PRIVATE_EQUITY`, `GROWTH_EQUITY`, `IPO`, `POST_IPO_EQUITY`, `POST_IPO_DEBT`, `DEBT_FINANCING`, `CROWDFUNDING`, `CORPORATE_ROUND`, `UNKNOWN` ### Response Headers This endpoint streams its response; HTTP trailers are not supported, so the credit cost is delivered in the response body (the `credit_cost` field) rather than the `X-NinjaPear-Credit-Cost` header. When the response is served from cache, the `X-NinjaPear-Credit-Cost` header is returned as normal. The `X-NinjaPear-Cache-Age-Days` header is returned on successful responses for all `use_cache` modes; fresh live enrichment returns `0`. | Header Key | Description | Example | | ------------------------- | ------------------------------------------------------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call (2 base + 1 per investor). **Cache hits only.** | `7` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | ### Error Codes Client-side errors (HTTP 400 / 403) are returned before the streaming body begins. On cache misses, server-side errors are delivered as **HTTP 200 with `error` and `error_code` fields in the response body** — because the streaming connection has already been established, the status code cannot be changed. Clients that previously branched on `response.status_code == 404` should branch on the `error_code` field instead. | Status Code | Charged? | `error_code` (body) | Description | | ---------------------------------- | --------------- | ------------------- | ----------------------------------------------------------------------------------------------------- | | 400 | No | — | Missing or invalid website parameter | | 403 | No | — | Insufficient credits | | 404 | No | — | No cached data found when `use_cache=if-present-only` | | 200 (body carries error) | Yes (2 credits) | `no_funding_data` | No funding data could be found for the given website. `funding_rounds` is `[]`. | | 200 (body carries error) | No | `service_temp_unavailable` | Service temporarily unavailable. Retry later. `funding_rounds` is `[]`. | ## Website Lookup Endpoint `GET /api/v1/company/website` Cost: `1` credit / request (charged whether or not a match is found). Resolve a company's name to its canonical website URL. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "company_name=Apex" \ --data-urlencode "country_code=us" \ --data-urlencode "hint=cybersecurity firm" \ "https://nubela.co/api/v1/company/website" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.CompanyAPIApi(api_client) response = api.get_website_lookup( company_name="Apex", country_code="us", hint="cybersecurity firm", ) print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.CompanyAPIApi(); api.getWebsiteLookup("Apex", { countryCode: "us", hint: "cybersecurity firm", }).then(function (data) { console.log(data); }); ``` > Example response: ```json { "website": "https://www.apexsecurity.com" } ``` ### URL Parameters | Parameter | Required | Description | Example | | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------| | `company_name` | Yes | The name of the company to look up. | `Apex` | | `country_code` | No | Optional ISO 3166-1 alpha-2 2-letter country code used to bias the search geographically (e.g. `us`, `gb`, `de`, `sg`). See the [full list of ISO 3166-1 alpha-2 codes](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv). Defaults to `us` when omitted. | `us` | | `hint` | No | Provide a hint to differentiate similarly named companies in the same country. | `cybersecurity firm` | ### Response | Key | Description | Example | | --------- | --------------------------------------------- | ------------------------- | | `website` | The resolved canonical website URL. | `https://www.stripe.com` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `1` | ### Error Codes | Status Code | Charged? | Description | | ----------- | ----------- | ------------------------------------------------------------ | | 400 | No | Missing or invalid `company_name` parameter. | | 400 | No | Invalid `country_code` (not a recognised 2-letter code). | | 404 | Yes (1) | No website match could be found for the given company name. | # Employee API ## Work Email Endpoint `GET /api/v1/employee/work-email` Cost: `2` credits on a successful lookup (work email found). When no email is found (`work_email` is `null`), a token charge of `0.5` credits is applied — this discourages abuse while keeping speculative lookups inexpensive. Makes a best-effort attempt to return a public work email of a person given their first name (optional last name) and a company domain. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "first_name=Patrick" \ --data-urlencode "last_name=Collison" \ --data-urlencode "domain=stripe.com" \ "https://nubela.co/api/v1/employee/work-email" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.EmployeeAPIApi(api_client) result = api.find_work_email( first_name="Patrick", last_name="Collison", domain="stripe.com", ) print(result) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.EmployeeAPIApi(); api .findWorkEmail({ firstName: "Patrick", lastName: "Collison", domain: "stripe.com", }) .then(function (data) { console.log(data); }); ``` > Example response (email found) ```json { "work_email": "patrick@stripe.com" } ``` > Example response (no evidence) ```json { "work_email": null } ``` ### URL Parameters | Parameter | Required | Description | Example | | ------------ | -------- | ---------------------------------------------------------------- | ------------ | | `first_name` | Yes | Person's first name. | `Patrick` | | `last_name` | No | Person's last name. Improves accuracy when the pattern needs it. | `Collison` | | `domain` | Yes | Company domain. Protocol and path are stripped if present. | `stripe.com` | ### Response | Key | Description | Example | | ------------ | ----------------------------------------------------------------------------------------------------- | -------------------------------- | | `work_email` | Best-effort work email address. `null` if no public email was found AND no pattern could be inferred. | `"patrick@stripe.com"` \| `null` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------------------------------------------------------------- | ------------ | | `X-NinjaPear-Credit-Cost` | Total credits charged for this call. `2` on a hit; `0.5` on a miss (token anti-abuse charge). | `2` or `0.5` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | --------------------------------------------- | | 400 | No | Missing or invalid `first_name` / `domain`. | | 403 | No | Insufficient credits. | | 503 | No | Service temporarily unavailable. Retry later. | ## Person Profile Endpoint `GET /api/v1/employee/profile` Cost: `3` credits / request. Credits are charged even if no data is found. Enrich an employee's professional profile given a work email address, or a name and employer combination. Returns structured profile data including work history, education, location, and social media presence. You must provide at least one of these input combinations: - **Work email only** — e.g. `work_email=john@stripe.com` - **First name + employer website** — e.g. `first_name=John&employer_website=https://stripe.com` - **Employer website + role** — e.g. `employer_website=https://stripe.com&role=CTO` You can always add more parameters to improve accuracy. For example, providing `work_email` together with `first_name`, `last_name`, and `role` will yield better results than `work_email` alone. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "work_email=john@stripe.com" \ "https://nubela.co/api/v1/employee/profile" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.EmployeeAPIApi(api_client) profile = api.get_person_profile(work_email="john@stripe.com") print(profile) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.EmployeeAPIApi(); api.getPersonProfile({ workEmail: "john@stripe.com" }).then(function (data) { console.log(data); }); ``` > Example response ```json { "profile_pic_url": "https://pbs.twimg.com/profile_images/1234567890/photo_400x400.jpg", "first_name": "Elon", "middle_name": "Reeve", "last_name": "Musk", "full_name": "Elon Reeve Musk", "bio": "Mars & Cars, Chips & Dips", "follower_count": 195000000, "following_count": 782, "country": "US", "city": "USAUS", "state": "US-TX", "x_handle": "elonmusk", "x_profile_url": "https://x.com/elonmusk", "personal_website": "https://elonmusk.com", "work_experience": [ { "role": "CEO", "company_name": "Tesla", "company_website": "tesla.com", "description": "Leading Tesla's mission to accelerate the world's transition to sustainable energy.", "start_date": "2008-10", "end_date": null }, { "role": "CEO and CTO", "company_name": "SpaceX", "company_website": "spacex.com", "description": "Founded SpaceX with the goal of reducing space transportation costs and enabling the colonization of Mars.", "start_date": "2002-05", "end_date": null }, { "role": "Co-founder", "company_name": "PayPal", "company_website": "paypal.com", "description": null, "start_date": "1999-01", "end_date": "2002-10" } ], "education": [ { "major": "B.S. Economics", "school": "Wharton School, University of Pennsylvania", "start_date": "1992-01", "end_date": "1997-01" }, { "major": "B.S. Physics", "school": "University of Pennsylvania", "start_date": "1992-01", "end_date": "1997-01" } ], "work_email_lookup": "https://nubela.co/api/v1/employee/work-email?first_name=Elon&last_name=Musk&domain=tesla.com", "similar_people": "https://nubela.co/api/v1/employee/similar?id=abc123de-f456-7890-abcd-ef1234567890" } ``` ### URL Parameters | Parameter | Required | Description | Example | | ------------------ | ----------- | -------------------------------------------------------------------------------------------------- | -------------------- | | `work_email` | Conditional | Work email address of the person. Required if `employer_website` is not provided. | `john@stripe.com` | | `first_name` | Conditional | Person's first name. Required when using name + `employer_website` combination. | `John` | | `middle_name` | No | Person's middle name. Improves accuracy when combined with other parameters. | `Michael` | | `last_name` | No | Person's last name. Improves accuracy when combined with other parameters. | `Smith` | | `employer_website` | Conditional | Website URL or company name of the person's employer. A website URL is strongly recommended for precision. Required if `work_email` is not provided. | `https://stripe.com` | | `role` | No | Current job title or role. Improves accuracy. Required when using `employer_website` without name. | `CTO` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Valid Input Combinations | Combination | Example | | --------------------------------- | ------------------------------------------------------ | | `work_email` alone | `?work_email=john@stripe.com` | | `first_name` + `employer_website` | `?first_name=John&employer_website=https://stripe.com` | | `employer_website` + `role` | `?employer_website=https://stripe.com&role=CTO` | Additional parameters can always be included to improve result accuracy. ### Response | Key | Description | Example | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | `profile_pic_url` | URL to the person's profile picture (from X/Twitter). May be `null`. | `"https://pbs.twimg.com/.../photo_400x400.jpg"` | | `first_name` | First name | `"Elon"` | | `middle_name` | Middle name. May be `null`. | `"Reeve"` | | `last_name` | Last name | `"Musk"` | | `full_name` | Full name | `"Elon Reeve Musk"` | | `bio` | Bio/description from X/Twitter profile. May be `null`. | `"Mars & Cars, Chips & Dips"` | | `follower_count` | Number of X/Twitter followers. May be `null`. | `195000000` | | `following_count` | Number of X/Twitter accounts followed. May be `null`. | `782` | | `country` | Country of residence. ISO 3166-1 alpha-2 code. | `"US"` | | `city` | City of residence. UN/LOCODE. | `"USAUS"` | | `state` | State or region of residence. ISO 3166-2 subdivision code. | `"US-TX"` | | `x_handle` | X/Twitter handle (without @). May be `null`. | `"elonmusk"` | | `x_profile_url` | URL to X/Twitter profile. May be `null`. | `"https://x.com/elonmusk"` | | `personal_website` | Personal website URL. May be `null`. | `"https://elonmusk.com"` | | `work_experience` | List of work history entries, most recent first | \[[WorkExperience Object](#workexperience-object)\] | | `education` | List of education entries, most recent first | \[[Education Object](#education-object)\] | | `work_email_lookup` | Pre-built URL to the [Work Email Endpoint](#work-email-endpoint) for this person, with `first_name`, `last_name`, and `domain` (the website of the most recent work experience) already populated. Call it directly with your bearer token to resolve the person's work email — no need to re-pass params. Costs `2` credits per call. May be `null` when the current employer's website is unknown. | `"https://nubela.co/api/v1/employee/work-email?first_name=Elon&last_name=Musk&domain=tesla.com"` | | `similar_people` | Pre-built URL to the [Similar People Endpoint](#similar-people-endpoint) for this person, keyed by their `id`. Call it directly to fetch people with the same role at competing companies — no need to re-pass search params. | `"https://nubela.co/api/v1/employee/similar?id=abc123de-..."` | ### WorkExperience Object | Key | Description | Example | | ----------------- | ---------------------------------------------------------------- | ------------------------------ | | `role` | Job title or role | `"CEO"` | | `company_name` | Name of the company | `"Tesla"` | | `company_website` | Company website domain. May be `null`. | `"tesla.com"` | | `description` | Description of what the person did in this role. May be `null`. | `"Leading Tesla's mission..."` | | `start_date` | Start date in YYYY-MM format. May be `null`. | `"2008-10"` | | `end_date` | End date in YYYY-MM format. `null` means currently in this role. | `null` | ### Education Object | Key | Description | Example | | ------------ | -------------------------------------------- | ---------------------------------------------- | | `major` | Degree and field of study | `"B.S. Economics"` | | `school` | School or university name | `"Wharton School, University of Pennsylvania"` | | `start_date` | Start date in YYYY-MM format. May be `null`. | `"1992-01"` | | `end_date` | End date in YYYY-MM format. May be `null`. | `"1997-01"` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `3` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | ### Error Codes | Status Code | Charged? | Description | | ----------- | --------------- | --------------------------------------------------------------------------------------------------------------- | | 400 | No | Invalid input. Must provide `work_email`, or `first_name` + `employer_website`, or `employer_website` + `role`. | | 403 | No | Insufficient credits | | 404 | No | No cached data found when `use_cache=if-present-only` | | 404 | Yes (3 credits) | No profile data could be found for the given input | | 503 | No | Service temporarily unavailable. Retry later. | ## Similar People Endpoint `GET /api/v1/employee/similar` Cost: `10` credits base + `5` credits per (company, role) tuple attempted. The base cost is charged regardless of whether any similar people are found, because the endpoint expends real-time enrichment resources to fulfil every request. Cached results are free (see below). Find people who are _similar_ to a target person — defined as people holding the **same role at competing companies**. Given a target (e.g. the CEO of `nubela.co`), the endpoint identifies the target's current employer, looks up that employer's competitors, and attempts to enrich the same-role person at each competitor in real time. The response returns the target's profile, the list of (company, role) tuples we attempted to search, and the similar people we successfully enriched. Inputs are identical to the [Person Profile Endpoint](#person-profile-endpoint). You must provide at least one of these input combinations: - **Work email only** — e.g. `work_email=tim@apple.com` - **First name + employer website** — e.g. `first_name=Tim&employer_website=https://apple.com` - **Employer website + role** — e.g. `employer_website=https://apple.com&role=CEO` ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --max-time 300 \ --data-urlencode "work_email=tim@apple.com" \ "https://nubela.co/api/v1/employee/similar" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.EmployeeAPIApi(api_client) # Set a generous read timeout — calls can take up to 5 minutes. result = api.get_similar_people(work_email="tim@apple.com", _request_timeout=300) print(result) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; defaultClient.timeout = 300000; // 5 minutes var api = new NinjaPear.EmployeeAPIApi(); api.getSimilarPeople({ workEmail: "tim@apple.com" }).then(function (data) { console.log(data); }); ``` > Example response ```json { "target": { "first_name": "Tim", "last_name": "Cook", "full_name": "Tim Cook", "work_experience": [ { "role": "CEO", "company_name": "Apple", "company_website": "apple.com", "start_date": "2011-08", "end_date": null } ] }, "attempted_searches": [ { "employer_website": "samsung.com", "role": "CEO" }, { "employer_website": "google.com", "role": "CEO" }, { "employer_website": "microsoft.com", "role": "CEO" }, { "employer_website": "huawei.com", "role": "CEO" } ], "similar_people": [ { "first_name": "Sundar", "last_name": "Pichai", "full_name": "Sundar Pichai", "work_experience": [ { "role": "CEO", "company_name": "Google", "company_website": "google.com", "start_date": "2015-08", "end_date": null } ] }, { "first_name": "Satya", "last_name": "Nadella", "full_name": "Satya Nadella", "work_experience": [ { "role": "CEO", "company_name": "Microsoft", "company_website": "microsoft.com", "start_date": "2014-02", "end_date": null } ] } ], "credit_cost": 30 } ``` For brevity the example above shows only a subset of `PersonProfile` fields. Each entry under `target` and `similar_people` is a full `PersonProfile` object — see the [Person Profile Endpoint Response](#response-3) for the complete schema, including `profile_pic_url`, `bio`, `country`, `x_handle`, `education`, etc. ### URL Parameters Identical to the [Person Profile Endpoint URL Parameters](#url-parameters-7). | Parameter | Required | Description | Example | | ------------------ | ----------- | ---------------------------------------------------------------------------------------- | ------------------- | | `work_email` | Conditional | Work email address of the target person. Required if `employer_website` is not provided. | `tim@apple.com` | | `first_name` | Conditional | Target's first name. Required when using name + `employer_website` combination. | `Tim` | | `middle_name` | No | Target's middle name. Improves accuracy when combined with other parameters. | `Donald` | | `last_name` | No | Target's last name. Improves accuracy when combined with other parameters. | `Cook` | | `employer_website` | Conditional | Website URL or company name of the target's employer. A website URL is strongly recommended for precision. Required if `work_email` is not provided. | `https://apple.com` | | `role` | No | Current job title or role. Required when using `employer_website` without name. | `CEO` | ### Valid Input Combinations | Combination | Example | | --------------------------------- | ---------------------------------------------------- | | `work_email` alone | `?work_email=tim@apple.com` | | `first_name` + `employer_website` | `?first_name=Tim&employer_website=https://apple.com` | | `employer_website` + `role` | `?employer_website=https://apple.com&role=CEO` | ### Response | Key | Description | Example | | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | | `target` | The resolved target person's full profile. Same schema as the [Person Profile Endpoint](#person-profile-endpoint). | `{ "first_name": "Tim", ... }` | | `attempted_searches` | List of (company, role) tuples we attempted to enrich. One entry per competitor of the target's current employer. Drives the per-tuple billing (5 credits each). | \[[AttemptedSearch Object](#attemptedsearch-object)\] | | `similar_people` | List of successfully enriched profiles for people matching the same role at competing companies. May be a subset of `attempted_searches` (some attempts return no data). Each entry uses the same schema as the [Person Profile Endpoint](#person-profile-endpoint). | \[PersonProfile, ...\] | | `credit_cost` | Total credits charged for this call. Equal to `10 + 5 * len(attempted_searches)`, or `0` for cached results served to the same product that previously paid. | `30` | ### AttemptedSearch Object | Key | Description | Example | | ------------------ | --------------------------------------------------------- | -------------- | | `employer_website` | Competitor company website domain that we attempted. | `"google.com"` | | `role` | Role we searched for at that competitor (mirrors target). | `"CEO"` | ### Response Headers This endpoint streams its response, so the credit cost cannot be returned in a header — HTTP trailers aren't supported by the streaming layer. Read the `credit_cost` field on the response body instead of the usual `X-NinjaPear-Credit-Cost` header. ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | --------------------------------------------------------------------------------------------------------------- | | 400 | No | Invalid input. Must provide `work_email`, or `first_name` + `employer_website`, or `employer_website` + `role`. | | 403 | No | Insufficient credits. You need at least 10 credits to start a similar-people search. | | 404 | No | Target person could not be resolved. | | 503 | No | Resource temporarily unavailable. Please try again. | ## Employee Search Endpoint `GET /api/v1/employee/search` Cost: base `2` credits per call (charged even when no employees are returned), plus `1` credit per employee in the `employees` array. A query that returns 10 employees costs `2 + 10 = 12` credits. Find current employees of a company filtered by role, optionally narrowed by geography. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "company_website=stripe.com" \ --data-urlencode "role=VP of Engineering" \ "https://nubela.co/api/v1/employee/search" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.EmployeeAPIApi(api_client) result = api.search_employees( company_website="stripe.com", role="VP of Engineering", ) print(result) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.EmployeeAPIApi(); api.searchEmployees({ companyWebsite: "stripe.com", role: "VP of Engineering", }).then(function (data) { console.log(data); }); ``` > Example response ```json { "employees": [ { "first_name": "Jane", "last_name": "Doe", "role": "VP of Engineering", "company_website": "stripe.com", "company_details": "https://nubela.co/api/v1/company/details?website=stripe.com", "person_profile": "https://nubela.co/api/v1/employee/profile?first_name=Jane&last_name=Doe&employer_website=https%3A%2F%2Fstripe.com", "work_email": "https://nubela.co/api/v1/employee/work-email?first_name=Jane&last_name=Doe&domain=stripe.com" }, { "first_name": "John", "last_name": "Smith", "role": "Director of Engineering", "company_website": "stripe.com", "company_details": "https://nubela.co/api/v1/company/details?website=stripe.com", "person_profile": "https://nubela.co/api/v1/employee/profile?first_name=John&last_name=Smith&employer_website=https%3A%2F%2Fstripe.com", "work_email": "https://nubela.co/api/v1/employee/work-email?first_name=John&last_name=Smith&domain=stripe.com" } ] } ``` ### URL Parameters | Parameter | Required | Description | Example | | ----------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | | `company_website` | Yes | The target company. Preferred form is a website (bare domain like `stripe.com` or full URL like `https://stripe.com`). A company name (e.g. `Stripe`) is also accepted. | `stripe.com` | | `role` | Yes | Job role to narrow the search. Matches related role variants (e.g. `VP of Engineering` also matches `Vice President, Engineering`). | `VP of Engineering` | | `country` | No | ISO 3166-1 alpha-2 country code to constrain by. | `US` | | `state` | No | State or region to constrain by (freeform). | `California` | | `city` | No | City to constrain by (freeform). | `San Francisco` | | `use_cache` | No | Controls cache usage. Case-insensitive. Values: `if-recent` (default; use cached data when the last scrape is within 29 days, otherwise enrich live), `if-present` (return cache first, enrich live if absent), `if-present-only` (return cache only; return 404 if absent), `never` (always enrich live). Invalid values fall back to the endpoint default. | `if-recent` | ### Response | Key | Description | Example | | ----------- | --------------------------------------------------------------------------------- | ---------------------------------------- | | `employees` | List of matching employees at the target company. Empty array if none are found. | \[[Employee Object](#employee-object)\] | ### Employee Object | Key | Description | Example | | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `first_name` | The employee's first name. | `"Jane"` | | `last_name` | The employee's last name. May be `null` if unavailable. | `"Doe"` | | `role` | The employee's current job title at the target company. | `"VP of Engineering"` | | `company_website` | Website of the target employer the employee works at. Mirrors the resolved `company_website` input parameter on every record. | `"stripe.com"` | | `company_details` | Prefilled URL to the [Company Details Endpoint](#company-details-endpoint), populated with `website`. Authenticate with your bearer token to retrieve company details. | `"https://nubela.co/api/v1/company/details?website=stripe.com"` | | `person_profile` | Prefilled URL to the [Person Profile Endpoint](#person-profile-endpoint), populated with `first_name`, `last_name`, and `employer_website`. Call directly with your bearer token to enrich the person — no need to re-pass parameters. Costs `3` credits per call. | `"https://nubela.co/api/v1/employee/profile?first_name=Jane&last_name=Doe&employer_website=https%3A%2F%2Fstripe.com"` | | `work_email` | Prefilled URL to the [Work Email Endpoint](#work-email-endpoint), populated with `first_name`, `last_name`, and `domain`. Call directly with your bearer token to resolve the work email. Costs `2` credits on a hit, `0.5` credits when no email is found. | `"https://nubela.co/api/v1/employee/work-email?first_name=Jane&last_name=Doe&domain=stripe.com"` | ### Response Headers | Header Key | Description | Example | | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------- | | `X-NinjaPear-Credit-Cost` | Total credits charged for this call. Equals `2 + N` where `N` is the number of employees returned (`2` when the array is empty). | `12` | | `X-NinjaPear-Cache-Age-Days` | Age of the returned data in whole days. `0` when fresh data is returned from live enrichment. | `12` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | --------------------------------------------------------------------------------- | | 400 | No | Missing or invalid `company_website` or `role` parameter. | | 403 | No | Insufficient credits. You need at least `2` credits to start a search. | | 404 | No | No cached data found when `use_cache=if-present-only` | | 404 | No | The provided `company_website` could not be resolved to a known company. | | 503 | No | Resource temporarily unavailable. Please try again. | # Meta API ## View Credit Balance Endpoint `GET /api/v1/meta/credit-balance` Cost: `0` credit / successful request. Get your current credit balance. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ "https://nubela.co/api/v1/meta/credit-balance" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.MetaAPIApi(api_client) response = api.get_credit_balance() print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.MetaAPIApi(); api.getCreditBalance().then(function (data) { console.log(data); }); ``` > Example response: ```json { "credit_balance": 100000 } ``` ### Response | Key | Description | Example | | ---------------- | --------------------------- | -------- | | `credit_balance` | Your current credit balance | `100000` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `0` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | --------------- | | 401 | No | Invalid API key | # Contact API ## Disposable Email Checker Endpoint `GET /api/v1/contact/disposable-email` Cost: `0` credit / successful request. (FREE) Check if an email address is a disposable (temporary/throwaway) email or a free email provider. ```shell curl -G \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "email=test@mailinator.com" \ "https://nubela.co/api/v1/contact/disposable-email" ``` ```python import ninjapear configuration = ninjapear.Configuration( host="https://nubela.co", access_token="YOUR_API_KEY" ) with ninjapear.ApiClient(configuration) as api_client: api = ninjapear.ContactAPIApi(api_client) response = api.check_disposable_email(email="test@mailinator.com") print(response) ``` ```javascript var NinjaPear = require("ninjapear"); var defaultClient = NinjaPear.ApiClient.instance; defaultClient.authentications["bearerAuth"].accessToken = "YOUR_API_KEY"; var api = new NinjaPear.ContactAPIApi(); api.checkDisposableEmail("test@mailinator.com").then(function (data) { console.log(data); }); ``` > Example response: ```json { "email": "test@mailinator.com", "is_disposable_email": true, "is_free_email": false } ``` ### URL Parameters | Parameter | Required | Description | Example | | --------- | -------- | -------------------------- | --------------------- | | `email` | Yes | The email address to check | `test@mailinator.com` | ### Response | Key | Description | Example | | --------------------- | ------------------------------------------------------------------------------ | ----------------------- | | `email` | The email address that was checked | `"test@mailinator.com"` | | `is_disposable_email` | Whether the email domain is a known disposable/temporary email provider | `true` | | `is_free_email` | Whether the email domain is a free email provider (e.g., gmail.com, yahoo.com) | `false` | ### Response Headers | Header Key | Description | Example | | ------------------------- | --------------------------------------- | ------- | | `X-NinjaPear-Credit-Cost` | Total cost of credits for this API call | `0` | ### Error Codes | Status Code | Charged? | Description | | ----------- | -------- | -------------------- | | 400 | No | Invalid email format | # Monitor API The Monitor API allows you to monitor updates of companies. Every new update is compiled into a single RSS feed. The system monitors company blogs, X (Twitter) profiles, and website changes. ## Core Concepts - **Feed:** The parent container. A feed can be public or private. Private feeds require a bearer token passed via the URL query string to ensure compatibility with standard RSS readers. - **Target:** A specific company/website being monitored within a feed. - **Settings:** Granular preferences per target dictating what to monitor (Blog, X, Website) and how often. ## How To Use Suppose you want to monitor a group of competitor websites for blog posts, X activity, and website changes — all delivered as a single RSS feed you can plug into Feedly, Slack, Zapier, or any RSS reader. **1. Create a feed with targets** — group the companies you want to monitor into a feed. Each company is a **target** identified by its website URL.