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

# Search Events

> Search LinkedIn events by keywords. Each page holds 50 events, sometimes a few more. LinkedIn lets a search be paged only so far: `pagination.totalElements` may count more events than the pages reach, and a page past the last event comes back empty.

Search LinkedIn events by keywords. Each page holds 50 events, sometimes a few more. LinkedIn lets a search be
paged only so far: `pagination.totalElements` may count more events than the pages reach, and a page past the last
event comes back empty. Use [Get event](https://docs.harvestapi.io/linkedin-api-reference/event/get.md) for an event's full details and exact time.

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  search: 'marketing',
  page: '1',
});
fetch(`https://api.harvestapi.io/linkedin/event-search?${params.toString()}`, {
  headers: { 'X-API-Key': '<api-key>' },
})
  .then((response) => response.json())
  .then((data) => console.log(data));
```

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.harvestapi.io/linkedin/event-search?search=marketing&page=1' \
  --header 'X-API-Key: <api-key>'
```

```python Python theme={null}
import requests

url = "https://api.harvestapi.io/linkedin/event-search?search=marketing&page=1"

headers = {"X-API-Key": "<api-key>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
```


## OpenAPI

````yaml GET /linkedin/event-search
openapi: 3.0.1
info:
  title: HarvestAPI LinkedIn API reference
  description: HarvestAPI LinkedIn API reference
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.harvestapi.io
security:
  - ApiKeyAuthHeader: []
paths:
  /linkedin/event-search:
    get:
      summary: Search LinkedIn events
      description: >-
        Search LinkedIn events by keywords. Each page holds 50 events, sometimes
        a few more. LinkedIn lets a search be paged only so far:
        `pagination.totalElements` may count more events than the pages reach,
        and a page past the last event comes back empty.
      parameters:
        - name: search
          in: query
          required: true
          description: Keywords to search events for
          schema:
            type: string
        - name: page
          in: query
          description: Page number for pagination, 50 events a page
          schema:
            type: integer
            default: 1
      responses:
        '200':
          description: A list of events matching the keywords
          content:
            application/json:
              schema:
                type: object
                properties:
                  elements:
                    type: array
                    items:
                      $ref: '#/components/schemas/EventShort'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                    type: object
                  status:
                    type: integer
                  error:
                    type: string
                  query:
                    type: object
                    properties:
                      search:
                        type: string
                      page:
                        type: string
              example:
                elements:
                  - id: '7513241096366268417'
                    linkedinUrl: https://www.linkedin.com/events/7513241096366268417/
                    name: Product Analytics Meetup
                    date: Wed, Oct 21, 6:00 PM CDT
                    location: Acme Office, 100 Main St, Houston, TX, US, 77002
                    organizer: Acme
                    attendees: 22 attendees
                    summary: >-
                      An evening of talks on product analytics, followed by
                      networking.
                    image: >-
                      https://media.licdn.com/dms/image/v2/D561EAQexample/event-background-image-crop_720_1280/0/1791296266133
                  - id: '7518793259947565056'
                    linkedinUrl: https://www.linkedin.com/events/7518793259947565056/
                    name: Marketing Career Panel
                    date: Tomorrow, 4:00 PM PDT
                    location: Online
                    organizer: Jane Smith
                    attendees: 1 attendee
                    summary: null
                    image: null
                pagination:
                  totalPages: 7
                  totalElements: 350
                  pageNumber: 1
                  previousElements: 0
                  pageSize: 50
                status: 200
                query:
                  search: marketing
                  page: '1'
        '400':
          description: >-
            `search` is missing, given more than once, or longer than 300
            characters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EventShort:
      type: object
      properties:
        id:
          type: string
          description: ID of the LinkedIn event
        linkedinUrl:
          type: string
          format: url
          nullable: true
          description: URL of the event
        name:
          type: string
          nullable: true
          description: Name of the event
        date:
          type: string
          nullable: true
          description: >-
            When the event starts, as LinkedIn displays it, e.g. `Wed, Oct 21,
            6:00 PM CDT` or `Tomorrow, 9:00 AM UTC`. The time zone shown is not
            necessarily the event's: [Get
            event](/linkedin-api-reference/event/get) returns the exact time
        location:
          type: string
          nullable: true
          description: '`Online`, or the venue''s name and address'
        organizer:
          type: string
          nullable: true
          description: Name of the organizer, a company or a member
        attendees:
          type: string
          nullable: true
          description: The attendee count as LinkedIn displays it, e.g. `22 attendees`
        summary:
          type: string
          nullable: true
          description: The event's description
        image:
          type: string
          format: url
          nullable: true
          description: URL of the event's cover image
      required:
        - id
    Pagination:
      type: object
      properties:
        totalPages:
          type: integer
          format: int32
        totalElements:
          type: integer
          format: int32
        pageNumber:
          type: integer
          format: int32
        previousElements:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        paginationToken:
          type: string
          format: nullable
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    ApiKeyAuthHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.