API Documentation
RESTful API documentation for developers
https://api.lots.directoryAPI Key (Bearer token or X-API-Key header)
29
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-autofilllistings
/api/v1/lotsdirectory/listings/ai-autofillAI auto-fill from URL
autofill_listingScrape a product URL and generate a listing draft.
/api/v1/lotsdirectory/listings/:id/verify-badgeCheck the LotsDirectory badge
verify_badgeCheck 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).
/api/v1/lotsdirectory/images/uploads/completeComplete product image upload
complete_listing_image_uploadVerify 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.
/api/v1/lotsdirectory/images/uploadsCreate product image upload
create_listing_image_uploadUpload 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.
/api/v1/lotsdirectory/images/deleteDelete unused product image
delete_listing_imageDelete an uploaded image you own. Remove it from the listing and save first. Frees an unattached upload slot.
/api/v1/lotsdirectory/listings/:idGet my product
get_my_listingGet 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).
/api/v1/lotsdirectory/listings/:id/analyticsGet product analytics
get_listing_analyticsRead views, clicks, and a view-to-click ratio for a product you own. There is no source attribution.
/api/v1/lotsdirectory/listings/import-phImport from Product Hunt
import_from_producthuntGenerate a listing draft from a Product Hunt post URL.
/api/v1/lotsdirectory/me/listingsList my products
list_my_listingsList listings owned by the authenticated user, with each listing's trust_state.
/api/v1/lotsdirectory/listings/:id/updatesPublish a product update
add_listing_updatePublish an update on a product you own. Questions and answers stay separate.
/api/v1/lotsdirectory/listingsSubmit a product
submit_listingCreate 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.
/api/v1/lotsdirectory/listings/:idUpdate a product
update_listingUpdate 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.
/api/v1/lotsdirectory/imagesUpload product image
upload_listing_imageUpload 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
/api/v1/lotsdirectory/questions/:idAnswer a question
answer_questionAnswer a question on a listing you own.
/api/v1/lotsdirectory/me/questionsList incoming questions
list_owner_questionsList questions asked on your products (to answer).
/api/v1/lotsdirectory/me/notificationsList notifications
list_notificationsList the authenticated user notifications.
/api/v1/lotsdirectory/me/notifications/readMark notification read
mark_notification_readMark one or all notifications read.
read
/api/v1/lotsdirectory/public/categories/:slugGet category
get_categoryGet a category with its published products.
/api/v1/lotsdirectory/public/collections/:slugGet collection
get_collectionGet a curated collection and its products by slug.
/api/v1/lotsdirectory/public/makers/:username/listingsGet maker products
get_maker_listingsList all published products by a maker username.
/api/v1/lotsdirectory/public/makers/:usernameGet maker profile
get_makerGet a maker profile by username.
/api/v1/lotsdirectory/public/listings/:slugGet product
get_listingGet 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.
/api/v1/lotsdirectory/public/categoriesList categories
list_categoriesList all directory categories.
/api/v1/lotsdirectory/public/collectionsList collections
list_collectionsList curated product collections (best-of, alternatives).
/api/v1/lotsdirectory/public/listingsList products
list_listingsList 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.
/api/v1/lotsdirectory/public/tagsList tags
list_tagsList all tags used across the directory.
/api/v1/lotsdirectory/public/searchSearch products
search_listingsTypeahead search across published products.
profile
/api/v1/lotsdirectory/me/profileGet my profile
get_my_profileGet 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.
/api/v1/lotsdirectory/me/profileUpdate maker profile
update_profileUpdate 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).
