Discover/DeFacto API
live

DeFacto APIdefacto.com.tr

Access DeFacto's Turkish fashion catalog via API. Search products, browse categories, apply filters, and retrieve full product details including prices and sizes.

Endpoint health
verified 4d ago
get_product_details
browse_category
search_products
get_search_filters
4/4 passing latest checkself-healing
Endpoints
4
Updated
26d ago

What is the DeFacto API?

The DeFacto API exposes 4 endpoints for searching and browsing defacto.com.tr's clothing catalog. Use search_products to query items by keyword and get back titles, prices in TL, discount prices, color names, size arrays, and stock status. Category browsing, filter discovery, and full product detail retrieval — including color variants and garment properties — are also covered.

Try it
Page number for pagination.
Search keyword in Turkish (e.g., 'tişört', 'elbise', 'ayakkabı')
api.parse.bot/scraper/22c0353d-b227-4fb8-b925-2d02c14bab0e/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/22c0353d-b227-4fb8-b925-2d02c14bab0e/search_products?page=1&query=ti%C5%9F%C3%B6rt' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace defacto-com-tr-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""DeFacto Product API — search, browse, filter, and inspect Turkish fashion products."""
from parse_apis.defacto_product_api import DeFacto, ProductNotFound

client = DeFacto()

# Search for t-shirts and inspect the first few results
for product in client.productsummaries.search(query="tişört", limit=3):
    print(product.title, product.price, product.colorName)

# Browse a category with a color filter
item = client.productsummaries.browse(category_slug="erkek-t-shirt", filters="renk:beyaz", limit=1).first()
if item:
    # Drill into full product details from a summary
    detail = item.details()
    print(detail.title, detail.categoryPath, detail.brand)
    for size in detail.availableSizes:
        print(size.name, size.stock)

# Fetch product details directly by URL
try:
    product = client.products.get(product_url="/pamuklu-buyuk-beden-boxy-fit-t-shirt-3433353")
    print(product.title, product.price, product.discountedPrice)
    for variant in product.colorVariants:
        print(variant.colorName, variant.productVariantIndex)
except ProductNotFound as exc:
    print(f"Product not found: {exc}")

# Discover available filters for a search term
for group in client.filtergroups.list(query="elbise", limit=5):
    print(group.group, [opt.name for opt in group.options[:3]])

print("exercised: productsummaries.search / productsummaries.browse / details / products.get / filtergroups.list")
All endpoints · 4 totalmissing one? ·

Full-text search over DeFacto's product catalog by keyword. Returns paginated product summaries including title, price, color, sizes, and stock. Pagination via integer page parameter. Results are in Turkish.

Input
ParamTypeDescription
pageintegerPage number for pagination.
queryrequiredstringSearch keyword in Turkish (e.g., 'tişört', 'elbise', 'ayakkabı')
Response
{
  "type": "object",
  "fields": {
    "page": "integer, current page number",
    "count": "integer, number of products returned on this page",
    "query": "string, the search keyword used",
    "products": "array of ProductSummary objects"
  },
  "sample": {
    "data": {
      "page": 1,
      "count": 24,
      "query": "tişört",
      "products": [
        {
          "price": 499.99,
          "sizes": [
            {
              "name": "3XL",
              "barcode": "8684585266918"
            }
          ],
          "stock": 1350,
          "title": "Pamuklu Büyük Beden Boxy Fıt T-shırt",
          "seoName": "pamuklu-buyuk-beden-boxy-fit-t-shirt",
          "isOutlet": false,
          "longCode": "H0997AX26SPBK81",
          "colorName": "Siyah",
          "productUrl": "https://www.defacto.com.tr/pamuklu-buyuk-beden-boxy-fit-t-shirt-3433353",
          "categoryName": "Tişört",
          "discountedPrice": 499.99,
          "productVariantIndex": 3433353
        }
      ]
    },
    "status": "success"
  }
}

About the DeFacto API

Search and Category Browsing

The search_products endpoint accepts a query string (e.g., tişört, elbise, ayakkabı) and an optional page integer for pagination. Each product in the response includes title, longCode, price, discountedPrice, colorName, sizes, stock, productUrl, and imageUrl. The browse_category endpoint works similarly but takes a category_slug (e.g., erkek-t-shirt, kadin-elbise) and an optional filters string in key:value;key:value format — for example, renk:mavi to narrow to blue items.

Product Details and Filter Discovery

get_product_details accepts either a full URL or a path segment (e.g., /oversize-tisort-3374606) and returns the complete product record: images array, colorVariants (each with colorName, imageUrl, and url), structured properties such as Kalıp (fit), Yaka (collar), and Kol Boyu (sleeve length), categoryPath breadcrumb, and description when available. The get_search_filters endpoint takes a query and returns filter groups — Cinsiyet, Kategori, Beden, Renk, Fiyat, Yaka, Kol Boyu, Kalıp, and more — each with name and count fields so you can build dynamic filter UIs or pre-qualify filter values before calling browse_category.

Response Shape Notes

All filter names and values are in Turkish, matching the DeFacto site's locale. Prices are expressed in Turkish Lira (TL). The longCode field acts as a stable product identifier across search and detail responses, making it practical to cross-reference results. Both search and category endpoints return a count field indicating how many products are on the current page alongside the page number.

Reliability & maintenanceVerified

The DeFacto API is a managed, monitored endpoint for defacto.com.tr — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when defacto.com.tr changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official defacto.com.tr API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a price-tracking tool that monitors price and discountedPrice changes for specific longCode products over time.
  • Aggregate size and stock availability across categories using sizes and stock fields from browse_category.
  • Construct a color-filtered catalog view by passing renk:value filters to browse_category after discovering valid color options via get_search_filters.
  • Generate product comparison pages by fetching colorVariants and properties from get_product_details for multiple items.
  • Index DeFacto's category structure by iterating category slugs in browse_category and collecting categoryPath values from detail pages.
  • Power a fashion recommendation feed that surfaces discountedPrice items filtered by gender (Cinsiyet) and size (Beden) from filter discovery results.
  • Sync product image galleries using the images array from get_product_details for use in external merchandising tools.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 offer an official developer API?+
DeFacto does not publish an official public developer API or documented REST/GraphQL interface for third-party use. This Parse API provides structured access to the product catalog data available on defacto.com.tr.
What does get_product_details return beyond what search results include?+
get_product_details returns the full images array, structured properties (Kalıp, Yaka, Kol Boyu), all colorVariants with their individual URLs and images, the categoryPath breadcrumb, and a description field. The search and browse endpoints return only summary fields: title, price, discountedPrice, colorName, sizes, stock, productUrl, and imageUrl.
How do filters work with browse_category, and how do I know valid filter values?+
Call get_search_filters with a relevant query to retrieve filter groups and their available values with item counts. Then pass those values as a semicolon-delimited string to the filters parameter of browse_category — for example, renk:mavi;beden:M. All filter keys and values are in Turkish.
Does the API expose customer reviews or ratings for products?+
Not currently. The API covers product details, pricing, size/stock data, color variants, and garment properties. Review and rating data is not included in any endpoint response. You can fork this API on Parse and revise it to add an endpoint targeting product review data.
Is pagination supported across all listing endpoints?+
search_products and browse_category both accept a page integer parameter and return page and count in their responses, allowing you to iterate through result pages. get_product_details and get_search_filters return single-page results by nature and do not use pagination.
Page content last updated . Spec covers 4 endpoints from defacto.com.tr.
Related APIs in EcommerceSee all →
defacto.com API
Search and browse fashion products on DeFacto, view detailed item information including specs, pricing, and available variants, and manage shopping cart operations programmatically. Filter products by category, color, size, price range, and other criteria to find items across their apparel catalog.
adidas.de API
Search and browse Adidas products on adidas.de to find detailed information about items, availability, pricing, and specific categories. Get comprehensive product details including size availability and stock levels across the German Adidas store.
depop.com API
Browse and discover products on Depop by searching inventory, viewing detailed product information, seller profiles, and reviews, while exploring trending items and the complete category structure. Filter listings by various criteria, access seller information including their likes and past sales, and find similar products to items you're interested in.
hepsiburada.com API
Search and browse products on Hepsiburada with access to detailed product information, pricing, customer reviews, categories, and active campaigns. Retrieve comprehensive product data to power shopping, research, or price-comparison applications.
yoox.com API
Search and browse YOOX's fashion catalog to discover products by category, designer, new arrivals, and sale items. Get detailed product information to find exactly what you're looking for across the YOOX marketplace.
migros.com.tr API
Search and browse Migros supermarket products by category, view detailed product information including pricing, and discover current discounts and promotional campaigns. Easily find specific items and explore what's on sale at Migros.com.tr.
vinted.de API
Search and browse secondhand items on Vinted.de with customizable filters to find exactly what you're looking for. Get detailed product information including descriptions, categories, colors, and pricing to make informed purchasing decisions.
folksy.com API
Search and browse handmade products on Folksy by category, subcategory, or shop, and access detailed product information including pricing and availability. Discover sales and special offers while exploring artisan shops and their complete listings.