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

# Get Post Details

> - Scrape details of a single post based on its URN.

- 1 credit per call.

```bash cURL theme={null}
curl --request GET \
	--url 'https://live-fetch.p.rapidapi.com/get-post-details?urn=7315779816467656705' \
	--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
	--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
```

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

url = "https://live-fetch.p.rapidapi.com/get-post-details"

querystring = {
    "urn": "7315779816467656705"
}

headers = {
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
    "x-rapidapi-host": "live-fetch.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
	urn: "7315779816467656705"
});

const url = `https://live-fetch.p.rapidapi.com/get-post-details?${params}`;
const options = {
	method: 'GET',
	headers: {
		'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
		'x-rapidapi-host': 'live-fetch.p.rapidapi.com'
	}
};

try {
	const response = await fetch(url, options);
	const result = await response.json();
	console.log(result);
} catch (error) {
	console.error(error);
}
```

```php PHP theme={null}
<?php

$query = http_build_query([
	'urn' => "7315779816467656705"
]);

$curl = curl_init();

curl_setopt_array($curl, [
	CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-post-details" . "?" . $query,
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_CUSTOMREQUEST => "GET",
	CURLOPT_HTTPHEADER => [
		"x-rapidapi-host: live-fetch.p.rapidapi.com",
		"x-rapidapi-key: YOUR_RAPIDAPI_KEY"
	],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
	echo "cURL Error #:" . $err;
} else {
	echo $response;
}
```

```go Go theme={null}
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	params := url.Values{}
	params.Add("urn", "7315779816467656705")

	req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-post-details?"+params.Encode(), nil)

	req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
	req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))
}
```

```java Java theme={null}
HttpRequest request = HttpRequest.newBuilder()
		.uri(URI.create("https://live-fetch.p.rapidapi.com/get-post-details?urn=7315779816467656705"))
		.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
		.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
		.method("GET", HttpRequest.BodyPublishers.noBody())
		.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```


## OpenAPI

````yaml GET /get-post-details
openapi: 3.0.1
info:
  title: OpenAPI Plant Store
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://live-fetch.p.rapidapi.com
security:
  - ApiKeyAuth: []
paths:
  /get-post-details:
    get:
      description: |-
        - Scrape details of a single post based on its URN.

        - 1 credit per call.
      parameters:
        - name: urn
          in: query
          required: true
          description: ''
          schema:
            type: string
            example: '7315779816467656705'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      attributes:
                        type: array
                        items:
                          type: string
                      images:
                        type: array
                        items:
                          type: object
                          properties:
                            alt_text:
                              type: string
                              example: ''
                            url:
                              type: string
                              example: >-
                                https://media.licdn.com/dms/image/v2/D4D22AQEBac457nKYlQ/feedshare-shrink_1280/B4DZYbe.M6G4Ak-/0/1744217827657?e=1795651200&v=beta&t=QW_bv10xGH3aLSCdSHCE-Ft3pIpY0N99SKnWq0CXQmE
                      num_appreciations:
                        type: integer
                        example: 108
                      num_comments:
                        type: integer
                        example: 672
                      num_empathy:
                        type: integer
                        example: 899
                      num_entertainments:
                        type: integer
                        example: 11
                      num_interests:
                        type: integer
                        example: 51
                      num_likes:
                        type: integer
                        example: 17345
                      num_praises:
                        type: integer
                        example: 702
                      num_reactions:
                        type: integer
                        example: 19116
                      num_reposts:
                        type: integer
                        example: 224
                      post_url:
                        type: string
                        example: >-
                          https://www.linkedin.com/feed/update/urn:li:activity:7315779816467656705/
                      posted:
                        type: string
                        example: '2025-04-09 16:57:08'
                      poster:
                        type: object
                        properties:
                          first:
                            type: string
                            example: Bill
                          headline:
                            type: string
                            example: >-
                              Chair, Gates Foundation and Founder, Breakthrough
                              Energy
                          image_url:
                            type: string
                            example: >-
                              https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_800_800/B56ZRi8g.aGsAc-/0/1736826818808?e=1795651200&v=beta&t=mD0uLOs1cjCSID5jb-exghLe2V4aVjHH0k8FRoFITLM
                          last:
                            type: string
                            example: Gates
                          linkedin_url:
                            type: string
                            example: https://www.linkedin.com/in/williamhgates
                          public_id:
                            type: string
                            example: williamhgates
                          type:
                            type: string
                            example: person
                          urn:
                            type: string
                            example: ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc
                      reshared:
                        type: boolean
                        example: false
                      share_url:
                        type: string
                        example: >-
                          https://www.linkedin.com/posts/williamhgates_i-cant-celebrate-our-50th-anniversary-without-activity-7315779816467656705-FVNt?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAAGqkXU4B1R2yihDCVXxq2wS2pBKiXydwkns
                      share_urn:
                        type: string
                        example: '7315779815297421316'
                      text:
                        type: string
                        example: >-
                          I can’t celebrate our 50th anniversary without
                          mentioning Kay Nishi, whose partnership and friendship
                          were critical to Microsoft’s expansion
                          internationally—in Japan and beyond. Not only is he an
                          amazing thinker (and one of the most under-appreciated
                          leaders in the company’s history), he’s also more like
                          me than anybody I’ve ever met.
                      time:
                        type: string
                        example: 1 year ago • Visible to anyone on or off LinkedIn
                      urn:
                        type: string
                        example: '7315779816467656705'
                  message:
                    type: string
                    example: ok
        '400':
          description: 'Bad request: Invalid urn.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: string
                    nullable: true
                    example: null
                  message:
                    type: string
                    example: 'Bad request: Invalid urn.'
        '404':
          description: Post not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: string
                    nullable: true
                    example: null
                  message:
                    type: string
                    example: Post not found
        '503':
          description: System error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SystemError:
      type: object
      properties:
        data:
          type: object
          nullable: true
          example: null
        message:
          type: string
          example: >-
            System error. You will not be charged for this request. We will fix
            it soon!
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-rapidapi-key

````

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