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

# /elpais/articles

> Get one El Pais article by its URL: headline, standfirst, full body text, publication and update times, byline and authors with their biography, dateline, section breadcrumb, topic tags, keywords, lead image with caption and credit, in-body images, embedded video, audio and social posts, related links and the subscription tier El Pais assigns to the piece. Covers the Spanish site, the separate English edition and the paper archive back to 1976.

**Price:** 1 credit

**⚠️ Common errors:** 412: No El Pais article at this URL, 422: Not an El Pais article URL



## OpenAPI

````yaml /openapi/news-publishing.json post /api/elpais/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/elpais/articles:
    post:
      tags:
        - /elpais
      summary: /elpais/articles
      description: >-
        Get one El Pais article by its URL: headline, standfirst, full body
        text, publication and update times, byline and authors with their
        biography, dateline, section breadcrumb, topic tags, keywords, lead
        image with caption and credit, in-body images, embedded video, audio and
        social posts, related links and the subscription tier El Pais assigns to
        the piece. Covers the Spanish site, the separate English edition and the
        paper archive back to 1976.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No El Pais article at this URL, 422: Not an
        El Pais article URL
      operationId: __api_elpais_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElpaisArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ElpaisArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ElpaisArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    ElpaisArticle:
      properties:
        '@type':
          type: string
          default: ElpaisArticle
        id:
          type: string
        article_title:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          type: string
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        language:
          type: string
        publication:
          type: string
        section:
          type: string
        sections:
          items:
            $ref: '#/components/schemas/ElpaisTerm'
          type: array
          default: []
        kicker:
          anyOf:
            - type: string
            - type: 'null'
        kicker_url:
          anyOf:
            - type: string
            - type: 'null'
        tags:
          items:
            $ref: '#/components/schemas/ElpaisTerm'
          type: array
          default: []
        keywords:
          items:
            type: string
          type: array
          default: []
        byline:
          anyOf:
            - type: string
            - type: 'null'
        dateline:
          anyOf:
            - type: string
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/ElpaisAuthorRef'
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        image_caption:
          anyOf:
            - type: string
            - type: 'null'
        image_credit:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/ElpaisImage'
          type: array
          default: []
        videos:
          items:
            $ref: '#/components/schemas/ElpaisVideo'
          type: array
          default: []
        audio_url:
          anyOf:
            - type: string
            - type: 'null'
        embeds:
          items:
            $ref: '#/components/schemas/ElpaisEmbed'
          type: array
          default: []
        content_id:
          anyOf:
            - type: string
            - type: 'null'
        content_type:
          anyOf:
            - type: string
            - type: 'null'
        is_premium:
          type: boolean
          default: false
        is_metered:
          type: boolean
          default: false
        content_restriction:
          anyOf:
            - type: string
            - type: 'null'
        is_archive:
          type: boolean
          default: false
        related_articles:
          items:
            $ref: '#/components/schemas/ElpaisRelatedArticle'
          type: array
          default: []
      type: object
      required:
        - id
        - article_title
        - web_url
        - language
        - publication
        - section
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ElpaisTerm:
      properties:
        '@type':
          type: string
          default: ElpaisTerm
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    ElpaisAuthorRef:
      properties:
        '@type':
          type: string
          default: ElpaisAuthorRef
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
        bio:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    ElpaisImage:
      properties:
        '@type':
          type: string
          default: ElpaisImage
        image:
          type: string
        caption:
          anyOf:
            - type: string
            - type: 'null'
        credit:
          anyOf:
            - type: string
            - type: 'null'
        alt:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    ElpaisVideo:
      properties:
        '@type':
          type: string
          default: ElpaisVideo
        name:
          anyOf:
            - type: string
            - type: 'null'
        content_url:
          anyOf:
            - type: string
            - type: 'null'
        thumbnail:
          anyOf:
            - type: string
            - type: 'null'
        duration:
          anyOf:
            - type: string
            - type: 'null'
        caption:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ElpaisEmbed:
      properties:
        '@type':
          type: string
          default: ElpaisEmbed
        provider:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - provider
    ElpaisRelatedArticle:
      properties:
        '@type':
          type: string
          default: ElpaisRelatedArticle
        id:
          anyOf:
            - type: string
            - type: 'null'
        article_title:
          type: string
        web_url:
          type: string
        byline:
          anyOf:
            - type: string
            - type: 'null'
        placement:
          type: string
      type: object
      required:
        - article_title
        - web_url
        - placement
    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

````