# /tuik/publications/search

`POST /api/tuik/publications/search`

Price: 20 credits

Search TÜİK news bulletins, tables, metadata, reports, databases and publications

## How to use it

Finds where TÜİK published something on a subject; follow url for the document, since text is only the excerpt around the match. Write query in the language set in lang — the wrong pairing still matches, but a fraction of it. years selects the period a statistic is about, not the day it came out, and the two are routinely years apart; published_at carries the release date. Omit query to browse the whole corpus through the filters alone.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `count` (integer, required) — Number of publications to return (min: 1)
- `query` (string, nullable) — Free text matched against titles and body text (examples: "ihracat", "unemployment", "nüfus"; minLength: 1)
- `types` (array, nullable) — Keep only these kinds of content (one of: "press_release", "tables_and_graphics", "metadata", "report", "database", "publication"; examples: ["press_release"])
- `categories` (array, nullable) — Keep only these statistical themes (one of: "justice_and_elections", "science_technology_and_information_society", "environment", "education", "energy", "price_statistics", "income_consumption_and_poverty", "employment_unemployment_and_wages", "short_term_economic_indicators", "culture_and_sports", "population_and_demography", "health_and_social_protection", "agriculture", "tourism", "transport_and_communication", "national_accounts", "international_trade", "structural_business_statistics_and_business_demography", "multi_domain_statistics"; examples: ["international_trade"])
- `sub_categories` (array, nullable) — Keep only these statistical sub-themes (one of: "justice_statistics", "election_statistics", "information_society_statistics", "science_technology_and_innovation_statistics", "waste_statistics", "water_and_wastewater_statistics", "environmental_accounts", "greenhouse_gas_emission_statistics", "sustainable_development", "human_indexes", "quality_of_life", "education_expenditure_statistics", "school_life_expectancy", "formal_education_statistics", "national_education_statistics", "adult_education_survey", "higher_education_brain_drain_statistics", "higher_education_employment_indicators", "energy_accounts", "energy_consumption_statistics", "services_producer_price_index", "purchasing_power_parity_ppp", "agricultural_products_producer_price_index_agriculture_ppi", "agricultural_input_price_index_aipi", "consumer_price_index_cpi", "non_domestic_producer_price_index_nd_ppi", "domestic_producer_price_index_d_ppi", "construction_cost_index", "income_distribution_statistics", "household_consumption_expenditure_statistics", "special_topics_on_income_and_living_conditions_statistics", "poverty_and_living_conditions_statistics", "labour_input_labour_cost_and_earnings_statistics", "labour_force_statistics", "turnover_indices_industry_construction_trade_services", "rates_of_return_on_financial_investment_instruments", "confidence_indices", "house_and_commercial_property_sales_statistics", "trade_sales_volume_index", "production_indices", "building_permit_statistics", "culture_statistics", "sports_statistics", "address_based_population_registration_system", "family_statistics", "gender_statistics", "child_statistics", "youth_statistics", "population_censuses", "migration_statistics", "life_tables", "vital_statistics", "population_projections", "elderly_statistics", "health_statistics", "social_protection_statistics", "crop_production_statistics", "animal_production_statistics", "fishery_statistics", "agricultural_equipment_and_machinery_statistics", "agricultural_product_producer_prices", "agricultural_holding_structure_statistics", "inbound_and_outbound_tourism_statistics", "household_domestic_tourism_statistics", "tourism_satellite_account", "communication_statistics", "transport_statistics", "supply_and_use_tables_input_output_tables", "regional_accounts", "government_accounts", "quarterly_gross_domestic_product", "institutional_sector_accounts", "annual_gross_domestic_product", "international_trade_in_services_statistics", "international_trade_in_goods_statistics", "entrepreneurship_and_business_demography", "small_and_medium_sized_enterprises_sme_statistics", "financial_intermediary_institution_statistics", "sector_balance_sheets", "annual_industrial_products_prodcom_statistics", "annual_industry_and_services_statistics", "archive", "business_registers", "archive_200", "producer_price_index_for_industry", "selected_topics_related_to_labour_market", "archive_274", "archive_281", "archive_285", "archive_286", "archive_295"; examples: ["international_trade_in_goods_statistics"])
- `years` (array, nullable) — Keep only content whose statistics cover these reference years, which is not the year it was released in (examples: [2026,2025])
- `provinces` (array, nullable) — Keep only content covering these provinces of Türkiye (one of: "adana", "adiyaman", "afyonkarahisar", "agri", "aksaray", "amasya", "ankara", "antalya", "ardahan", "artvin", "aydin", "balikesir", "bartin", "batman", "bayburt", "bilecik", "bingol", "bitlis", "bolu", "burdur", "bursa", "canakkale", "cankiri", "corum", "denizli", "diyarbakir", "duzce", "edirne", "elazig", "erzincan", "erzurum", "eskisehir", "gaziantep", "giresun", "gumushane", "hakkari", "hatay", "igdir", "isparta", "istanbul", "izmir", "kahramanmaras", "karabuk", "karaman", "kars", "kastamonu", "kayseri", "kirikkale", "kirklareli", "kirsehir", "kilis", "kocaeli", "konya", "kutahya", "malatya", "manisa", "mardin", "mersin", "mugla", "mus", "nevsehir", "nigde", "ordu", "osmaniye", "rize", "sakarya", "samsun", "siirt", "sinop", "sivas", "sanliurfa", "sirnak", "tekirdag", "tokat", "trabzon", "tunceli", "usak", "van", "yalova", "yozgat", "zonguldak"; examples: ["istanbul"])
- `include_archive` (boolean) — Widen the search to withdrawn and superseded content as well as current content (default: false)
- `lang` (string) — Language of the content searched and returned (default: "tr"; one of: "tr", "en")

## Response

### 200 — Successful Response

- `@type` (string) (default: "TuikPublication")
- `url` (string, required)
- `publication_title` (string, required)
- `type_id` (integer, required)
- `type_name` (string, nullable)
- `published_at` (string, nullable)
- `text` (string, nullable)
- `press_title` (string, nullable)
- `press_url` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

