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

# /guardian/articles

> Get a full Guardian article by URL or path: headline, standfirst, full body text, authors with their profile links and portraits, publish and last-modified timestamps, section and pillar, typed tags, series, images with caption and credit, podcast audio, video, word count and content flags. Works for news, opinion, interactive, video, gallery, cartoon, podcast and live blog pages.

**Price:** 1 credit

**⚠️ Common errors:** 412: Article not found, or the path points at a section/tag/profile page rather than an article



## OpenAPI

````yaml /openapi/news-publishing.json post /api/guardian/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/guardian/articles:
    post:
      tags:
        - /guardian
      summary: /guardian/articles
      description: >-
        Get a full Guardian article by URL or path: headline, standfirst, full
        body text, authors with their profile links and portraits, publish and
        last-modified timestamps, section and pillar, typed tags, series, images
        with caption and credit, podcast audio, video, word count and content
        flags. Works for news, opinion, interactive, video, gallery, cartoon,
        podcast and live blog pages.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Article not found, or the path points at a
        section/tag/profile page rather than an article
      operationId: __api_guardian_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GuardianArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GuardianArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GuardianArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    GuardianArticle:
      properties:
        '@type':
          type: string
          default: GuardianArticle
        id:
          type: string
        article_title:
          type: string
        standfirst:
          anyOf:
            - type: string
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          type: string
        short_url:
          anyOf:
            - type: string
            - type: 'null'
        short_url_id:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
        section_name:
          anyOf:
            - type: string
            - type: 'null'
        pillar:
          anyOf:
            - type: string
            - type: 'null'
        content_type:
          anyOf:
            - type: string
            - type: 'null'
        publication:
          anyOf:
            - type: string
            - type: 'null'
        production_office:
          anyOf:
            - type: string
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/GuardianArticleAuthor'
          type: array
          default: []
        tags:
          items:
            $ref: '#/components/schemas/GuardianArticleTag'
          type: array
          default: []
        tones:
          items:
            type: string
          type: array
          default: []
        series:
          anyOf:
            - type: string
            - type: 'null'
        series_id:
          anyOf:
            - type: string
            - type: 'null'
        blog:
          anyOf:
            - type: string
            - type: 'null'
        blog_id:
          anyOf:
            - type: string
            - type: 'null'
        commissioning_desks:
          items:
            type: string
          type: array
          default: []
        tracking_names:
          items:
            type: string
          type: array
          default: []
        atom_types:
          items:
            type: string
          type: array
          default: []
        references:
          items:
            $ref: '#/components/schemas/GuardianArticleReference'
          type: array
          default: []
        rich_link_url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/GuardianArticleImage'
          type: array
          default: []
        gallery_image_count:
          anyOf:
            - type: integer
            - type: 'null'
        audio_url:
          anyOf:
            - type: string
            - type: 'null'
        video_id:
          anyOf:
            - type: string
            - type: 'null'
        video_url:
          anyOf:
            - type: string
            - type: 'null'
        video_duration:
          anyOf:
            - type: integer
            - type: 'null'
        word_count:
          anyOf:
            - type: integer
            - type: 'null'
        internal_link_count:
          anyOf:
            - type: integer
            - type: 'null'
        external_link_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_live:
          type: boolean
          default: false
        is_live_blog:
          type: boolean
          default: false
        is_commentable:
          type: boolean
          default: false
        is_podcast:
          type: boolean
          default: false
        is_embeddable:
          type: boolean
          default: false
        is_paid_content:
          type: boolean
          default: false
        is_immersive:
          type: boolean
          default: false
        is_photo_essay:
          type: boolean
          default: false
        is_numbered_list:
          type: boolean
          default: false
        is_column:
          type: boolean
          default: false
        is_sensitive:
          type: boolean
          default: false
        is_hosted:
          type: boolean
          default: false
        is_accessible_for_free:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - id
        - article_title
        - web_url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GuardianArticleAuthor:
      properties:
        '@type':
          type: string
          default: GuardianArticleAuthor
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    GuardianArticleTag:
      properties:
        '@type':
          type: string
          default: GuardianArticleTag
        id:
          type: string
        name:
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
    GuardianArticleReference:
      properties:
        '@type':
          type: string
          default: GuardianArticleReference
        type:
          type: string
        value:
          type: string
      type: object
      required:
        - type
        - value
    GuardianArticleImage:
      properties:
        '@type':
          type: string
          default: GuardianArticleImage
        image:
          type: string
        caption:
          anyOf:
            - type: string
            - type: 'null'
        credit:
          anyOf:
            - type: string
            - type: 'null'
        role:
          anyOf:
            - type: string
            - type: 'null'
        ratio:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - image
    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

````