> ## 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.

# /mainichi/articles

> Get one Mainichi Shimbun article by id or URL, from either the English edition (The Mainichi) or the Japanese mainichi.jp edition: headline, teaser, body text, byline, publish and update time, photos with captions, section tags, related articles and, for the Japanese edition, whether the story is subscriber-only together with the full and withheld character counts.

**Price:** 1 credit

**⚠️ Common errors:** 412: Article not found — the id or URL does not resolve to a Mainichi article



## OpenAPI

````yaml /openapi/news-publishing.json post /api/mainichi/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/mainichi/articles:
    post:
      tags:
        - /mainichi
      summary: /mainichi/articles
      description: >-
        Get one Mainichi Shimbun article by id or URL, from either the English
        edition (The Mainichi) or the Japanese mainichi.jp edition: headline,
        teaser, body text, byline, publish and update time, photos with
        captions, section tags, related articles and, for the Japanese edition,
        whether the story is subscriber-only together with the full and withheld
        character counts.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Article not found — the id or URL does not
        resolve to a Mainichi article
      operationId: __api_mainichi_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MainichiArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MainichiArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MainichiArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    MainichiArticle:
      properties:
        '@type':
          type: string
          default: MainichiArticle
        id:
          type: string
        edition:
          $ref: '#/components/schemas/MainichiEdition'
        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'
        author_name:
          anyOf:
            - type: string
            - type: 'null'
        author_url:
          anyOf:
            - type: string
            - type: 'null'
        paper:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
        badges:
          items:
            type: string
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/MainichiArticleImage'
          type: array
          default: []
        categories:
          items:
            $ref: '#/components/schemas/MainichiArticleCategory'
          type: array
          default: []
        keywords:
          items:
            type: string
          type: array
          default: []
        related_articles:
          items:
            $ref: '#/components/schemas/MainichiRelatedArticle'
          type: array
          default: []
        is_premium:
          type: boolean
          default: false
        char_count_total:
          anyOf:
            - type: integer
            - type: 'null'
        char_count_hidden:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - edition
        - article_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MainichiEdition:
      type: string
      enum:
        - en
        - jp
    MainichiArticleImage:
      properties:
        '@type':
          type: string
          default: MainichiArticleImage
        image:
          type: string
        caption:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    MainichiArticleCategory:
      properties:
        '@type':
          type: string
          default: MainichiArticleCategory
        id:
          type: string
        name:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
    MainichiRelatedArticle:
      properties:
        '@type':
          type: string
          default: MainichiRelatedArticle
        id:
          type: string
        article_title:
          type: string
        web_url:
          anyOf:
            - type: string
            - 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

````