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

# Get user publications

> Get LinkedIn user publications

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</p>
  </div>

  <div className="mt-4">
    <button
      type="button"
      className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50"
      onClick={() => navigator.clipboard.writeText(`I want to make an API call to https://api.keyapi.ai/v1/linkedin/get_user_publications.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/linkedin/get_user_publications

Description: Get LinkedIn user publications

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- urn (Required): User URN, obtainable from the get_user_profile API. Example: ACoAAB8rG_UB7cstjC__gk5318uYsZOIVkyysi4
- page (Optional): Page number, default is 1. Example: 1

Example Response:
{
"code": 0,
"message": "success",
"data": {
"page": 1,
"total": 5,
"has_more": false,
"data": [
  {
    "title": "The Infinite Game",
    "publication": "Portfolio",
    "description": "We can’t choose the game. We can’t choose the rules. We can only choose how we play. In finite games, like football or chess, the players are known, the rules are fixed, and the endpoint is clear. The winners and losers are easily identified. In infinite games, like business or politics or life itself, the players come and go, the rules are changeable, and there is no defined endpoint. There are no winners or losers in an infinite game; there is only ahead and behind.",
    "date": "Oct 15, 2019",
    "publication_url": "https://simonsinek.com/books/the-infinite-game/"
  },
  {
    "title": "Find Your Why: A Practical Guide to Discovering Purpose for You and Your Team",
    "publication": "Portfolio",
    "description": "With Start with Why, Simon started a movement to inspire people to do the things that inspire them. Millions of people now understand the concept of the Golden Circle. Find Your Why is designed to help those inspired by the message find their WHY and bring it to life in both their careers and organizations.",
    "date": "Sep 5, 2017",
    "publication_url": "https://simonsinek.com/books/find-your-why/"
  },
  {
    "title": "Together Is Better: A Little Book of Inspiration",
    "public
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/linkedin.openapi.json GET /v1/linkedin/get_user_publications
openapi: 3.0.1
info:
  title: LinkedIn API english documentation
  description: >-
    The english reference documentation of the LinkedIn API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/linkedin/get_user_publications:
    get:
      tags: []
      summary: Get user publications
      description: Get LinkedIn user publications
      parameters:
        - name: urn
          in: query
          description: User URN, obtainable from the get_user_profile API
          required: true
          example: ACoAAB8rG_UB7cstjC__gk5318uYsZOIVkyysi4
          schema:
            type: string
        - name: page
          in: query
          description: Page number, default is 1
          required: false
          example: 1
          schema:
            type: integer
            default: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  page: 1
                  total: 5
                  has_more: false
                  data:
                    - title: The Infinite Game
                      publication: Portfolio
                      description: >-
                        We can’t choose the game. We can’t choose the rules. We
                        can only choose how we play. In finite games, like
                        football or chess, the players are known, the rules are
                        fixed, and the endpoint is clear. The winners and losers
                        are easily identified. In infinite games, like business
                        or politics or life itself, the players come and go, the
                        rules are changeable, and there is no defined endpoint.
                        There are no winners or losers in an infinite game;
                        there is only ahead and behind.
                      date: Oct 15, 2019
                      publication_url: https://simonsinek.com/books/the-infinite-game/
                    - title: >-
                        Find Your Why: A Practical Guide to Discovering Purpose
                        for You and Your Team
                      publication: Portfolio
                      description: >-
                        With Start with Why, Simon started a movement to inspire
                        people to do the things that inspire them. Millions of
                        people now understand the concept of the Golden Circle.
                        Find Your Why is designed to help those inspired by the
                        message find their WHY and bring it to life in both
                        their careers and organizations.
                      date: Sep 5, 2017
                      publication_url: https://simonsinek.com/books/find-your-why/
                    - title: 'Together Is Better: A Little Book of Inspiration'
                      publication: Portfolio
                      description: >-
                        We are more likely to overcome our struggles and
                        difficulties when we are willing to take others with us
                        on the journey. In a unique combination of inspiring
                        quotes, storytelling, and commentary, this beautifully
                        illustrated book inspires readers to seek out a brighter
                        future — and build it together.
                      date: Sep 13, 2016
                      publication_url: https://simonsinek.com/books/together-is-better/
                    - title: >-
                        Leaders Eat Last: Why Some Teams Pull Together And
                        Others Don't
                      publication: Portfolio
                      description: >-
                        Why do only a few people get to say “I love my job”? It
                        seems unfair that finding fulfillment at work is like
                        winning a lottery; that only a few lucky ones get to
                        feel valued by their organizations, to feel like they
                        belong.


                        Imagine a world where almost everyone wakes up inspired
                        to go to work, feels trusted and valued during the day,
                        then returns home feeling fulfilled.


                        This is not a crazy, idealized notion. Today, in many
                        successful organizations, great leaders are creating
                        environments in which people naturally work together to
                        do remarkable things. 


                        In his travels around the world since the publication of
                        his bestseller Start with Why, Simon Sinek noticed that
                        some teams were able to trust each other so deeply that
                        they would literally put their lives on the line for
                        each other. Other teams, no matter what incentives were
                        offered, were doomed to infighting, fragmentation and
                        failure. 


                        As he did in "Start with Why," Sinek illustrates his
                        ideas grounded in biology with fascinating true stories
                        from a wide range of examples, from the military to
                        manufacturing, from government to investment banking.
                      date: Jan 7, 2014
                      publication_url: https://simonsinek.com/books/leaders-eat-last/
                    - title: >-
                        Start With Why: How Great Leaders Inspire Everyone to
                        Take Action
                      publication: Portfolio
                      description: >-
                        In 2009, Simon Sinek started a movement to help people
                        become more inspired at work, and in turn inspire their
                        colleagues and customers. Since then, millions have been
                        touched by the power of his ideas, including more than
                        28 million who’ve watched his TED Talk based on START
                        WITH WHY -- the third most popular TED video of all
                        time.
                         
                        Sinek starts with a fundamental question: Why are some
                        people and organizations more innovative, more
                        influential, and more profitable than others? Why do
                        some command greater loyalty from customers and
                        employees alike? Even among the successful, why are so
                        few able to repeat their success over and over? 
                         
                        People like Martin Luther King Jr., Steve Jobs, and the
                        Wright Brothers had little in common, but they all
                        started with WHY. They realized that people won't truly
                        buy into a product, service, movement, or idea until
                        they understand the WHY behind it. 
                         
                        START WITH WHY shows that the leaders who've had the
                        greatest influence in the world all think, act, and
                        communicate the same way -- and it's the opposite of
                        what everyone else does. Sinek calls this powerful idea
                        The Golden Circle, and it provides a framework upon
                        which organizations can be built, movements can be led,
                        and people can be inspired. And it all starts with WHY.
                      date: Oct 29, 2009
                      publication_url: https://simonsinek.com/books/start-with-why/
                requestId: a7fb1a7f-cc7c-473e-83d3-27291aaef91d
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/linkedin/get_user_publications?urn=ACoAAB8rG_UB7cstjC__gk5318uYsZOIVkyysi4&page=1' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/linkedin/get_user_publications',
                params={"urn": "ACoAAB8rG_UB7cstjC__gk5318uYsZOIVkyysi4", "page": 1},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"urn":
            "ACoAAB8rG_UB7cstjC__gk5318uYsZOIVkyysi4", "page": 1});


            const response = await
            fetch(`https://api.keyapi.ai/v1/linkedin/get_user_publications?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````