API Documentation

RESTful API documentation for developers

Quick Info
Base URL
https://api.lots.directory
Authentication

API Key (Bearer token or X-API-Key header)

Total Endpoints

29

Getting Started

Authentication

All API requests require authentication using an API key. You can create an API key from your dashboard.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.lots.directory/api/v1/lotsdirectory/listings/ai-autofill

listings

POST
/api/v1/lotsdirectory/listings/ai-autofill

AI auto-fill from URL

autofill_listing

Scrape a product URL and generate a listing draft.

POST
/api/v1/lotsdirectory/listings/:id/verify-badge

Check the LotsDirectory badge

verify_badge

Check that the product's website shows the LotsDirectory badge (a link to lots.directory/products/<slug>; the snippet is in get_my_listing badge.snippet). Found: the listing becomes Verified and its link to the website is followed while the badge is live. The result says what was read and why the badge was not found (for example a page built only with JavaScript).

POST
/api/v1/lotsdirectory/images/uploads/complete

Complete product image upload

complete_listing_image_upload

Verify actual uploaded bytes and reserved size/type before attaching an image. Returns URL. A listing has up to 8 product images (cover, gallery and screenshots); the logo is not counted and is at most 500 KB.

POST
/api/v1/lotsdirectory/images/uploads

Create product image upload

create_listing_image_upload

Upload a local image: obtain a 15-minute signed PUT URL, upload bytes, then complete_listing_image_upload. Exact size; JPEG/PNG/WebP/GIF only. Set purpose to logo for the product's logo: at most 500 KB and not counted toward the image limit. Other images are at most 2 MB.

POST
/api/v1/lotsdirectory/images/delete

Delete unused product image

delete_listing_image

Delete an uploaded image you own. Remove it from the listing and save first. Frees an unattached upload slot.

GET
/api/v1/lotsdirectory/listings/:id

Get my product

get_my_listing

Get full details of a listing you own (for editing), including trust_state; badge: the copy-paste badge snippet and the last badge checks; launch: its launch week (status upcoming, live or ended), its place and votes on the weekly board, pickable weeks for a Verified listing (set_launch_week), and any Product of the Week wins with their badge snippet; and traffic: the last 30 days of page views, clicks to the product website, and reads by AI crawlers (GPTBot, ClaudeBot, PerplexityBot and others, from the user agent).

GET
/api/v1/lotsdirectory/listings/:id/analytics

Get product analytics

get_listing_analytics

Read views, clicks, and a view-to-click ratio for a product you own. There is no source attribution.

POST
/api/v1/lotsdirectory/listings/import-ph

Import from Product Hunt

import_from_producthunt

Generate a listing draft from a Product Hunt post URL.

GET
/api/v1/lotsdirectory/me/listings

List my products

list_my_listings

List listings owned by the authenticated user, with each listing's trust_state.

POST
/api/v1/lotsdirectory/listings/:id/updates

Publish a product update

add_listing_update

Publish an update on a product you own. Questions and answers stay separate.

POST
/api/v1/lotsdirectory/listings

Submit a product

submit_listing

Create a product listing you own. publication: publish (default) puts it live at once as Submitted by owner (nofollow, not on the launch board) after basic checks: a website that answers, and no other live listing for the same product (publication.blocked says why; the listing stays a draft). The result carries publication.badge: add that snippet to the product's website, then call verify_badge to get Verified (followed link, a launch week). draft keeps it private while preparing; schedule needs scheduled_publish_at. Every product includes 8 images: cover, gallery and thumbnails, once per URL, each at most 2 MB. The logo is not counted and is at most 500 KB.

PATCH
/api/v1/lotsdirectory/listings/:id

Update a product

update_listing

Update a product you own. A product can keep a grandfathered image set only when the URLs do not change. Any real image change must fit 8 images: cover, gallery and screenshots, once per URL. The logo is not counted; a new logo is at most 500 KB. Do not send an image limit; the server decides.

POST
/api/v1/lotsdirectory/images

Upload product image

upload_listing_image

Upload an image URL or base64 image to Directory storage. JPEG/PNG/WebP/GIF. Set purpose to logo for the product's logo: a logo is at most 500 KB and is not counted toward the image limit. Other images are at most 2 MB; every product can use 8 (cover, gallery and screenshots; the same URL counts once). Pass listing_id so the server enforces that product's limit. At most 2 images and 2 logos may remain unattached.

engagement

PATCH
/api/v1/lotsdirectory/questions/:id

Answer a question

answer_question

Answer a question on a listing you own.

GET
/api/v1/lotsdirectory/me/questions

List incoming questions

list_owner_questions

List questions asked on your products (to answer).

GET
/api/v1/lotsdirectory/me/notifications

List notifications

list_notifications

List the authenticated user notifications.

POST
/api/v1/lotsdirectory/me/notifications/read

Mark notification read

mark_notification_read

Mark one or all notifications read.

read

GET
/api/v1/lotsdirectory/public/categories/:slug

Get category

get_category

Get a category with its published products.

GET
/api/v1/lotsdirectory/public/collections/:slug

Get collection

get_collection

Get a curated collection and its products by slug.

GET
/api/v1/lotsdirectory/public/makers/:username/listings

Get maker products

get_maker_listings

List all published products by a maker username.

GET
/api/v1/lotsdirectory/public/makers/:username

Get maker profile

get_maker

Get a maker profile by username.

GET
/api/v1/lotsdirectory/public/listings/:slug

Get product

get_listing

Get a single published product by slug. trust_state is unclaimed (listed from the product's public website), submitted (submitted by its owner; ownership not verified), claimed (the owner proved an email at the product's domain), verified (the owner shows the LotsDirectory badge) or pro (an earlier listing, treated as verified); link_rel is the rel used for links to the product's website.

GET
/api/v1/lotsdirectory/public/categories

List categories

list_categories

List all directory categories.

GET
/api/v1/lotsdirectory/public/collections

List collections

list_collections

List curated product collections (best-of, alternatives).

GET
/api/v1/lotsdirectory/public/listings

List products

list_listings

List published directory products with filters and sorting. Each card has trust_state (unclaimed, submitted, claimed, verified, or pro: an earlier listing treated as verified) and link_rel.

GET
/api/v1/lotsdirectory/public/tags

List tags

list_tags

List all tags used across the directory.

GET
/api/v1/lotsdirectory/public/search

Search products

search_listings

Typeahead search across published products.

profile

GET
/api/v1/lotsdirectory/me/profile

Get my profile

get_my_profile

Get the authenticated maker profile, with email_preferences: dr_updates (new all-time high Domain Rating), launch_results (Product of the Week) and badge_alerts (badge missing on a Verified product). All are on by default; every email has a one-click unsubscribe link.

PATCH
/api/v1/lotsdirectory/me/profile

Update maker profile

update_profile

Update the authenticated maker profile. email_preferences turns owner emails on or off: dr_updates, launch_results, badge_alerts (true or false; omitted topics keep their setting).