# /prtimes/releases/search

`POST /api/prtimes/releases/search`

Price: 20 credits

Search PR TIMES press releases by keyword, or list them by business category and subcategory, topic section, release type, prefecture or kind of issuing organisation, newest first. Each release carries its title, issuing company, publication time, main image and full body text.

## How to use it

Set exactly one filter per call; a subcategory implies its category. A query returns at most 10,000 releases. Pass a release id to prtimes/releases for keywords, categories, locations and like count.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `count` (integer, required) — Max number of releases to return (min: 1; max: 10000)
- `keyword` (string, nullable) — Search words (examples: "AI", "東京大学 量子"; minLength: 1; maxLength: 200)
- `category` (string, nullable) — Business category of the release (one of: "computers", "internet_apps", "digital_devices", "enterprise_it", "retail", "entertainment", "publishing_arts", "games_toys", "sports_outdoors", "automotive", "interior_goods", "fashion", "food_beverage", "restaurants", "beauty_health", "medical_welfare", "living", "hotels_leisure", "housing_construction", "education_hr", "finance", "advertising_marketing", "business_consulting", "transport_logistics", "materials_energy", "nature_environment", "other")
- `subcategory` (string, nullable) — Business subcategory of the release (one of: "pcs_peripherals", "pc_software", "internet_providers", "internet_services", "smartphone_apps", "smartphone_games", "mobile_devices", "cameras", "audio_video", "kitchen_home_appliances", "health_beauty_appliances", "servers", "networking", "applications_security", "system_web_app_development", "electronic_components", "stores_supermarkets", "ecommerce", "wholesale", "celebrities", "film_theatre_dvd", "music", "tv_commercials", "magazines_books", "manga_anime", "art_culture", "console_games", "arcade_games", "toys", "sports", "outdoors_climbing", "cars_accessories", "motorcycles", "interior_furniture", "household_goods", "garden_diy", "womens_fashion", "mens_fashion", "shoes_bags", "jewelry_accessories", "kids_baby_maternity", "food_sweets", "drinks", "restaurants_bars", "takeout_delivery", "skincare_cosmetics", "diet_supplements", "fitness_healthcare", "medical_hospitals", "pharmaceuticals", "welfare_care", "pets", "gifts_flowers", "dating_weddings", "childbirth_parenting", "funerals", "hotels_inns", "travel_tourism", "theme_parks", "housing", "commercial_buildings", "architecture_design", "construction_civil", "jobs_staffing", "qualifications_languages", "schools_universities", "cram_schools", "childcare_early_education", "banks", "credit_loans", "securities_investment", "insurance", "advertising_pr", "marketing_research", "sales", "management_consulting", "think_tanks", "finance_accounting", "legal_ip", "transport_moving", "logistics_warehousing", "steel_metals", "chemicals", "utilities_energy", "nature_weather", "environment_recycling", "government", "foundations_associations", "volunteering", "international", "agriculture_fisheries", "other")
- `genre` (string, nullable) — PR TIMES topic section (one of: "technology", "mobile", "app", "entertainment", "beauty", "fashion", "lifestyle", "business", "gourmet", "sports")
- `release_type` (string, nullable) — Kind of release (one of: "product_service", "event", "campaign", "corporate", "survey_report", "people", "earnings", "other")
- `prefecture` (string, nullable) — Prefecture the release is tied to (one of: "hokkaido", "aomori", "iwate", "miyagi", "akita", "yamagata", "fukushima", "ibaraki", "tochigi", "gunma", "saitama", "chiba", "tokyo", "kanagawa", "niigata", "toyama", "ishikawa", "fukui", "yamanashi", "nagano", "gifu", "shizuoka", "aichi", "mie", "shiga", "kyoto", "osaka", "hyogo", "nara", "wakayama", "tottori", "shimane", "okayama", "hiroshima", "yamaguchi", "tokushima", "kagawa", "ehime", "kochi", "fukuoka", "saga", "nagasaki", "kumamoto", "oita", "miyazaki", "kagoshima", "okinawa")
- `company_category` (string, nullable) — Kind of issuing organisation (one of: "listed", "regional", "foreign_affiliated", "startup", "government_organization")

## Response

### 200 — Successful Response

- `@type` (string) (default: "PrtimesReleaseCard")
- `id` (string, required)
- `release_id` (string, required)
- `company_id` (string, required)
- `url` (string, required)
- `company_name` (string, nullable)
- `published_at` (integer, nullable)
- `image` (string, nullable)
- `text` (string, nullable)

## Errors

### 422 — Validation Error

No filter, more than one filter, or a subcategory outside the given category

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.

