Discover/defacto.com API
live

defacto.com APIdefacto.com

Access DeFacto Turkey fashion products via API. Search items, browse categories, get variant details, filter results, and add to cart programmatically.

Endpoints
5
Updated
14d ago
Try it
Page number for pagination.
Search keyword (e.g. 'tshirt', 'dress').
api.parse.bot/scraper/4fb23c7d-8a75-43c8-a180-b732e963007a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/4fb23c7d-8a75-43c8-a180-b732e963007a/search_products?page=1&query=tshirt' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Search for products by keyword on DeFacto Turkey. Returns paginated results with product details including pricing, color, stock, and campaign information.

Input
ParamTypeDescription
pageintegerPage number for pagination.
queryrequiredstringSearch keyword (e.g. 'tshirt', 'dress').
Response
{
  "type": "object",
  "fields": {
    "page": "current page number",
    "count": "number of products returned on this page",
    "query": "the search query used",
    "products": "array of product objects with LongCode, Name, Price, DiscountedPrice, ColorName, Stock, Sizes, CampaignBadge, and more"
  },
  "sample": {
    "data": {
      "page": 1,
      "count": 24,
      "query": "tshirt",
      "products": [
        {
          "Name": "Standart Fıt Polo Yaka Tişört",
          "Price": 999.99,
          "Sizes": [
            {
              "Barcode": "8684582386275",
              "MatrixId": null,
              "SizeName": "XL"
            }
          ],
          "Stock": 30,
          "LongCode": "F7611AX26SPER14",
          "ColorName": "Ekru",
          "DiscountedPrice": 999.99,
          "CampaignDiscountedPrice": 500
        }
      ]
    },
    "status": "success"
  }
}

About the defacto.com API

The DeFacto API covers 5 endpoints for interacting with DeFacto Turkey's apparel catalog, from keyword search to cart management. search_products returns paginated results with fields like DiscountedPrice, ColorName, Stock, Sizes, and CampaignBadge, while get_product_detail exposes the ProductVariantMatrixId values you need to add specific size variants to a cart.

Search and Category Browsing

The search_products endpoint accepts a required query string (e.g. 'tshirt', 'dress') and an optional page integer for pagination. Each product in the response includes LongCode, Name, Price, DiscountedPrice, ColorName, Stock, Sizes, and CampaignBadge. The get_category_products endpoint works the same way but accepts a category slug (e.g. 'women-dresses', 'men-tshirts') instead of a search keyword. Both endpoints return the same product object shape along with page, count, and the originating query or category slug.

Product Detail and Variant Resolution

get_product_detail takes a product_code (the LongCode surfaced by search and category endpoints) and returns a Data array containing ProductName, a Sizes array where each entry includes a ProductVariantMatrixId, and ProductDetailProductColors for available color variants, plus pictures and full pricing. The ProductVariantMatrixId UUID from any size entry is the value required by add_to_cart.

Filtering and Cart Operations

get_search_filters retrieves filter groups for a given query or category slug. Each filter group has a filter_name and an options array with label, value, and optional count fields — covering dimensions like sort order, gender, category, size, color, and price range. The add_to_cart endpoint accepts a variant_id (the ProductVariantMatrixId) and an optional quantity, returning a Turkish-language confirmation string in Data, a Status integer (1 for success), and an ErrorCode integer (0 for no error).

Common use cases
  • Build a price-tracking tool that monitors DiscountedPrice and CampaignBadge changes across DeFacto's catalog.
  • Aggregate DeFacto category listings by slug to populate a comparison shopping feed for Turkish apparel.
  • Automate size availability checks by polling Stock and Sizes fields from search_products for specific items.
  • Construct a faceted search UI using filter groups and option counts returned by get_search_filters.
  • Resolve product color variants programmatically via ProductDetailProductColors from get_product_detail.
  • Automate cart population for order testing by chaining get_product_detail to obtain ProductVariantMatrixId and passing it to add_to_cart.
  • Index DeFacto's apparel catalog by category slug for trend analysis across product names and pricing.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does DeFacto have an official public developer API?+
DeFacto does not publish a public developer API or API documentation for third-party access to its catalog or cart functionality.
How do I go from a search result to adding a specific size to the cart?+
Call search_products or get_category_products to get a product's LongCode. Pass that value as product_code to get_product_detail, which returns a Sizes array where each entry contains a ProductVariantMatrixId. Use that UUID as variant_id in add_to_cart along with an optional quantity.
Does the API cover user account data such as order history or wishlists?+
Not currently. The API covers product search, category browsing, product detail, filter retrieval, and cart operations. Order history, wishlist management, and account profile data are not exposed. You can fork it on Parse and revise to add the missing endpoint.
Is the DeFacto API limited to Turkey, and are prices in Turkish Lira?+
The API targets the DeFacto Turkey storefront (defacto.com), so product listings, category slugs, and price fields reflect the Turkish market. The confirmation message returned by add_to_cart is also in Turkish. Coverage of other regional DeFacto storefronts is not currently included. You can fork it on Parse and revise to add endpoints targeting other regional domains.
What does `get_search_filters` return, and can I use filter values to narrow search results?+
get_search_filters returns an array of filter group objects, each with a filter_name and an options array containing label, value, and an optional count. It accepts either a query string or a category slug. The filter values document what dimensions exist (size, color, price range, gender, etc.), but the search_products and get_category_products endpoints do not currently accept those filter values as direct input parameters. You can fork it on Parse and revise to add filtered search support.
Page content last updated . Spec covers 5 endpoints from defacto.com.
Related APIs in EcommerceSee all →
lowes.com API
Search and browse products from Lowe's, including product listings by category, detailed product information, and pricing. Retrieve comprehensive details on specific items to compare options and make informed purchasing decisions.
bilbasen.dk API
Search Denmark's largest car marketplace to find vehicles by make and model, then access detailed pricing and technical specifications including emissions, weight, MSRP, battery size, and equipment details. Get comprehensive car listings and full specs to compare vehicles on Bilbasen.dk.
jula.fi API
Search and browse products from Jula.fi to find hardware items with detailed information including prices (with and without VAT), stock availability, brand details, and product SKUs. Explore products by category or search for specific items to compare pricing and check real-time stock status.
leroymerlin.fr API
Search and browse Leroy Merlin France's complete product catalog to find items by category, view pricing, product details, and compare offerings from Leroy Merlin and their online partners. Access real-time product information including names, IDs, URLs, and seller details to help you discover and evaluate home improvement and DIY products.
industrynet.com API
Find industrial suppliers and browse product categories across a comprehensive marketplace directory. Connect directly with suppliers by viewing detailed listings and submitting contact inquiries programmatically.
carsforsale.com API
Search vehicle listings and browse detailed car inventory by make, model, and trim to find the perfect vehicle on CarsForSale.com. Access comprehensive listing details including pricing, specifications, and availability all in one place.
vivino.com API
Search and discover wines across thousands of options while accessing detailed information like user reviews, pricing, winery profiles, and food pairing recommendations. Explore grape varieties, compare wines side-by-side, and find the perfect bottle based on ratings and availability.
x-kom.pl API
Access product data from x-kom.pl, a major Polish electronics retailer. Search products by keyword or category, retrieve detailed product pages, customer reviews, Q&A, promotions, flash deals, and physical store locations.