> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /asahi/articles

> Get one Asahi Shimbun article by id or URL, from either the English Asia & Japan Watch edition or the Japanese asahi.com edition: headline, teaser, body text, byline, the full chain of sections the story is filed under, publish and update time, photos with captions, topic tags, related articles and, for the Japanese edition, the reporters who wrote it and whether the article is subscriber-only with how many characters stay behind the paywall.

**Price:** 1 credit

**⚠️ Common errors:** 412: Article not found — the id or URL does not resolve to an Asahi Shimbun article



## OpenAPI

````yaml /openapi/news-publishing.json post /api/asahi/articles
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/asahi/articles:
    post:
      tags:
        - /asahi
      summary: /asahi/articles
      description: >-
        Get one Asahi Shimbun article by id or URL, from either the English Asia
        & Japan Watch edition or the Japanese asahi.com edition: headline,
        teaser, body text, byline, the full chain of sections the story is filed
        under, publish and update time, photos with captions, topic tags,
        related articles and, for the Japanese edition, the reporters who wrote
        it and whether the article is subscriber-only with how many characters
        stay behind the paywall.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Article not found — the id or URL does not
        resolve to an Asahi Shimbun article
      operationId: __api_asahi_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AsahiArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AsahiArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AsahiArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    AsahiArticle:
      properties:
        '@type':
          type: string
          default: AsahiArticle
        id:
          type: string
        edition:
          $ref: '#/components/schemas/AsahiEdition'
        article_title:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/AsahiArticleAuthor'
          type: array
          default: []
        section:
          anyOf:
            - type: string
            - type: 'null'
        section_url:
          anyOf:
            - type: string
            - type: 'null'
        sections:
          items:
            $ref: '#/components/schemas/AsahiArticleSection'
          type: array
          default: []
        label:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/AsahiArticleImage'
          type: array
          default: []
        keywords:
          items:
            type: string
          type: array
          default: []
        is_premium:
          type: boolean
          default: false
        remaining_char_count:
          anyOf:
            - type: integer
            - type: 'null'
        topics:
          items:
            $ref: '#/components/schemas/AsahiArticleTopic'
          type: array
          default: []
        related_articles:
          items:
            $ref: '#/components/schemas/AsahiRelatedArticle'
          type: array
          default: []
      type: object
      required:
        - id
        - edition
        - article_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    AsahiEdition:
      type: string
      enum:
        - ajw
        - jp
    AsahiArticleAuthor:
      properties:
        '@type':
          type: string
          default: AsahiArticleAuthor
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        department:
          anyOf:
            - type: string
            - type: 'null'
        role:
          anyOf:
            - type: string
            - type: 'null'
        specialty:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        can_send_fan_letter:
          type: boolean
          default: false
      type: object
      required:
        - name
    AsahiArticleSection:
      properties:
        '@type':
          type: string
          default: AsahiArticleSection
        name:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    AsahiArticleImage:
      properties:
        '@type':
          type: string
          default: AsahiArticleImage
        image:
          type: string
        caption:
          anyOf:
            - type: string
            - type: 'null'
        photo_id:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    AsahiArticleTopic:
      properties:
        '@type':
          type: string
          default: AsahiArticleTopic
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    AsahiRelatedArticle:
      properties:
        '@type':
          type: string
          default: AsahiRelatedArticle
        id:
          type: string
        article_title:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - article_title
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````