POST /api/kyodo/articles
Price: 1 credit
Get one Kyodo News article by id or url: headline, meta description, body text, publish and last-modified timestamps, writer byline, the wire or partner that supplied it, the categories it is filed under, every header photo with its caption, embedded podcast and video players, and the related-coverage links. Available in the English, simplified Chinese and traditional Chinese editions, each of which numbers its articles separately. Kyodo's own copy carries the full body only for the first days after publication — body_access and is_body_truncated say which part of the text the response holds.
Fetch a single Kyodo News story. article takes the numeric id ('81610') or the article url; a url also decides the edition, otherwise set edition (en, zh-cn, zh-tw — the three editions publish different stories and reuse the same id numbers, so an id from one edition means a different story or nothing at all in another). body_access tells you how much text you got: 'open' is the complete story, 'membership' is the lead plus one teaser paragraph, 'archived' means the piece is older than about three months and only the opening line is served. Headline, timestamps, photos, categories and related links are complete in all three states. Feed categories[].id into kyodo/categories/articles, and related[].id back into this endpoint.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)article string required — Kyodo article id or its full url (examples: "81610", "https://english.kyodonews.net/articles/-/81610"; minLength: 1)edition string — Language edition to read the article from; ignored when article is a full url (default: "en"; one of: "en", "zh-cn", "zh-tw")@type string (default: "KyodoArticle")id string requirededition string requiredarticle_title string requireddescription string nullabletext string nullableweb_url string requiredlanguage string nullablepublished_at integer nullableupdated_at integer nullableauthor string nullablesource string nullablesource_id string nullablesource_url string nullablesource_image string nullablecategories array (default: [])@type string (default: "KyodoArticleCategory")id string requiredname string requiredweb_url string requiredimage string nullableimage_width integer nullableimage_height integer nullableimages array (default: [])@type string (default: "KyodoArticleImage")image string requiredcaption string nullableembed_urls array (default: [])related array (default: [])@type string (default: "KyodoRelatedArticle")id string requiredarticle_title string requiredweb_url string requiredbody_access string requiredis_body_truncated boolean requiredis_accessible_for_free boolean nullableparagraph_count integer required422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit 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 — No article with this id in the requested edition 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 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 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 Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-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.