cURL
curl --request POST \ --url https://api.pal.ai/v1/documents/from-url \ --header 'Content-Type: application/json' \ --data ' { "applicationId": "<string>", "urls": [ "\"techmeme.com/article1\"" ], "contentSelector": "<string>", "metadata": "<string>" } '
This endpoint lets you pass in one or more URLs that we will then fetch. Optionally you can specify a contentSelector that is a DOM Selector we ought to use to find the relevant text from the page.
Pass
OK