Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nano-gpt.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

NanoGPT exposes data extraction APIs for web, maps, social, and email/domain intelligence workflows. These endpoints require API key authentication. Each request estimates a maximum charge before running. Some endpoints require maxTotalChargeUsd when the result count is unbounded.

Authentication

Use either header:
  • Authorization: Bearer YOUR_API_KEY
  • x-api-key: YOUR_API_KEY

Shared Billing and Runtime Behavior

  • Responses include returned data plus NanoGPT billing metadata.
  • Partial results may still be billed if the extraction job produced usable data before failing.
  • Result limits exist, commonly up to 5,000 returned items for social and data scrapers.
  • Long-running calls can take up to several minutes.
  • For unbounded searches, set maxTotalChargeUsd to cap spend.
  • Use resultLimit, resultsLimit, or endpoint-specific max-count fields to keep runs bounded.
Typical responses include a data payload and billing metadata:
{
  "data": [],
  "meta": {
    "nanogpt": {
      "costUsd": 0.05,
      "itemsReturned": 25
    }
  }
}

Endpoints

EndpointMethodPurpose
/api/v1/firecrawlPOSTWeb page scraping, site maps, and crawls.
/api/v1/googlemapsPOSTGoogle Maps place search and detail extraction.
/api/v1/googlemaps/reviewsPOSTGoogle Maps review extraction.
/api/v1/facebook/adsPOSTFacebook/Meta ad library extraction.
/api/v1/instagram/profilePOSTInstagram profile extraction.
/api/v1/instagram/postsPOSTInstagram post extraction.
/api/v1/redditPOSTReddit post, comment, community, and user extraction.
/api/v1/tiktokPOSTTikTok hashtag, profile, search, and post extraction.
/api/v1/hunterGET, POSTEmail/domain intelligence pass-through.
/api/v1/hunter/{path}GET, POSTEmail/domain intelligence pass-through with path selection.

Web Crawling

POST https://nano-gpt.com/api/v1/firecrawl

Body

{
  "operation": "scrape",
  "url": "https://example.com",
  "formats": ["markdown"],
  "waitForFinishSecs": 120
}

Operations

  • scrape
  • map
  • crawl

Important Parameters

ParameterDescription
urlRequired target URL.
operationOperation to run. Must be one of scrape, map, or crawl when provided.
limitPage or item limit for map and crawl.
searchOptional search string for map.
maxReturnedPagesMaximum pages returned for crawl.
waitForFinishSecsWait time, capped at 240 seconds.
PDF parsing has max page controls when PDF parsing is enabled.

Google Maps

POST https://nano-gpt.com/api/v1/googlemaps

Required Input

Provide at least one of:
  • searchStringsArray
  • startUrls
  • placeIds
  • scrape-all-places option, when supported

Important Parameters

  • maxTotalChargeUsd
  • resultLimit
  • maxCrawledPlacesPerSearch
  • scrapePlaceDetailPage
  • scrapeContacts
  • scrapeSocialMediaProfiles
  • maxReviews
  • maxImages
  • filters such as category, rating, website availability, and closed-place handling when supported

Google Maps Reviews

POST https://nano-gpt.com/api/v1/googlemaps/reviews

Required Input

Provide at least one of:
  • startUrls
  • placeIds

Important Parameters

  • maxReviews
  • reviewsSort
  • reviewsStartDate
  • maxTotalChargeUsd
  • resultLimit
If you use reviewsStartDate, sort reviews by newest first.

Facebook Ads

POST https://nano-gpt.com/api/v1/facebook/ads

Required Input

  • startUrls: at least one Facebook Page URL or Meta Ad Library URL.

Important Parameters

  • resultsLimit
  • activeStatus: active or inactive
  • maxTotalChargeUsd
  • resultLimit

Instagram Profile

POST https://nano-gpt.com/api/v1/instagram/profile

Required Input

  • username or usernames: Instagram username, profile URL, or profile ID.

Important Parameters

  • includeAboutSection
  • maxTotalChargeUsd
  • resultLimit

Instagram Posts

POST https://nano-gpt.com/api/v1/instagram/posts

Required Input

  • username: one or more Instagram usernames, profile URLs, or post URLs.

Important Parameters

  • resultsLimit
  • dataDetailLevel: basicData or detailedData
  • skipPinnedPosts
  • maxTotalChargeUsd
  • resultLimit

Reddit

POST https://nano-gpt.com/api/v1/reddit

Required Input

Provide at least one of:
  • startUrls: Reddit URLs from reddit.com or redd.it
  • searches: search terms

Important Parameters

  • maxItems
  • maxPostCount
  • maxComments
  • maxCommunities
  • maxUsers
  • searchPosts
  • searchComments
  • searchCommunities
  • searchUsers
  • maxTotalChargeUsd
  • resultLimit

TikTok

POST https://nano-gpt.com/api/v1/tiktok

Required Input

Provide at least one of:
  • hashtags
  • profiles
  • searchQueries
  • postURLs

Important Parameters

  • resultsPerPage
  • maxProfilesPerQuery
  • searchSection
  • transcription options, if exposed
  • maxTotalChargeUsd
  • resultLimit

Hunter

Hunter endpoints provide pass-through style email/domain intelligence with NanoGPT billing. Users authenticate with NanoGPT; do not pass a separate Hunter API key. Supported examples include:
  • domain-search
  • email-finder
  • email-verifier
  • discover

Endpoints

GET  https://nano-gpt.com/api/v1/hunter/{path}
POST https://nano-gpt.com/api/v1/hunter/{path}
GET  https://nano-gpt.com/api/v1/hunter?endpoint=domain-search
POST https://nano-gpt.com/api/v1/hunter
For GET, query params are forwarded except:
  • api_key
  • apiKey
  • endpoint
  • path
For POST, JSON body params are forwarded. Use endpoint or path to select the target path. A nested params object is also supported.

Response Shape

{
  "data": {},
  "meta": {
    "nanogpt": {
      "endpoint": "domain-search",
      "hunterSearchesBilled": 1,
      "hunterVerificationsBilled": 0,
      "hunterEnrichmentsBilled": 0,
      "costUsd": 0.01
    }
  }
}

Example

curl -X POST https://nano-gpt.com/api/v1/googlemaps \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "searchStringsArray": ["coffee shops in Amsterdam"],
    "resultLimit": 25,
    "maxTotalChargeUsd": 1.00,
    "scrapePlaceDetailPage": true
  }'