API Documentation
RESTful API documentation for developers
https://api.lots.directoryAPI Key (Bearer token or X-API-Key header)
35
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/images/uploads/completeComplete product image upload
complete_listing_image_uploadVerify actual uploaded bytes and reserved size/type before attaching an image. Returns URL; at most 8 distinct images per listing including logo and cover.
/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, at most 2 MB. JPEG/PNG/WebP/GIF only.
/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).
/api/v1/lotsdirectory/listings/:id/analyticsGet product analytics
get_listing_analyticsRead views, clicks, and a view-to-click ratio for a Directory Pro product you own. There is no source attribution. Free products receive PRO_REQUIRED.
/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.
/api/v1/lotsdirectory/listings/:id/updatesPublish a product update
add_listing_updatePublish an update on a Directory Pro product you own. Free products cannot post updates. Questions stay free.
/api/v1/lotsdirectory/listingsSubmit a product
submit_listingCreate a product listing you own. publication: publish (default), draft to keep it private while preparing, or schedule with scheduled_publish_at. Free includes 2 distinct images, Directory Pro 8; logo, cover, gallery and thumbnails count once per URL; each image at most 2 MB.
/api/v1/lotsdirectory/listings/:idUpdate a product
update_listingUpdate a product you own. A free product can keep a grandfathered image set only when the URLs do not change. Any real image change must fit 2 images, or 8 after Directory Pro. Do not send is_pro or an image limit; the server decides.
/api/v1/lotsdirectory/imagesUpload product image
upload_listing_imageUpload an image URL or base64 image to Directory storage. Maximum 2 MB, JPEG/PNG/WebP/GIF. Free products can use 2 distinct images and Directory Pro products can use 8, including logo and cover. The same URL counts once. Pass listing_id so the server enforces that product limit. At most 2 uploads may remain unattached.
/api/v1/lotsdirectory/listings/:id/verify-badgeVerify backlink badge
verify_badgeCrawl a listing website and confirm the lots.directory badge backlink exists.
pro
/api/v1/lotsdirectory/listings/:id/ai-reviewAI content review
run_content_reviewScore a product listing against the quality checklist. Requires the Pro pack.
/api/v1/lotsdirectory/listings/:id/ai-rewriteAI rewrite listing
ai_rewrite_listingGenerate improved tagline/description/about for a product. Returns proposed copy to apply. Requires the Pro pack.
/api/v1/lotsdirectory/listings/:id/backlinksGet earned backlinks
get_listing_backlinksList published backlinks earned for a product and progress counts. Requires the Pro pack.
/api/v1/lotsdirectory/listings/:id/landing-auditLanding page audit
run_landing_auditAudit a product landing page for conversion/quality. Requires the Pro pack.
/api/v1/lotsdirectory/listings/:id/ai-reviewsList content reviews
list_content_reviewsList past AI content reviews for a product you own.
/api/v1/lotsdirectory/listings/:id/landing-auditsList landing audits
list_landing_auditsList past landing page audits for a product you own.
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.
/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.
/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.
/api/v1/lotsdirectory/me/profileUpdate maker profile
update_profileUpdate the authenticated user maker profile.