Extracts a page using a modified Extract API or a custom ruleset.
Request
| Authentication | |
|---|---|
token | Cache and insert token into example requests (15d expiry) |
| Path parameters | |
|---|---|
api | Name of your Custom API |
| Query parameters | |
|---|---|
url | Target URL to extract (url encoded) |
fields | Specify optional fields to be returned from any fully-extracted pages (e.g. One of: |
timeout | Sets a value in milliseconds to wait for the retrieval/fetch of content from the requested URL. The default timeout for the third-party response is 30 seconds (30000). |
callback | Use for jsonp requests. Needed for cross-domain ajax. |
proxy | Specify an IP address of a custom proxy that will be used to fetch the target page. (Ex: |
proxyAuth | Used to specify the authentication parameters that will be used with a custom proxy specified in the &proxy parameter. (Ex: |
useProxy | Set to |
Example request
curl --request GET \
--url 'https://api.diffbot.com/v3/<api>?url=%3Curl%3E&token=<DIFFBOT_TOKEN>' \
--header 'Accept: application/json'
Response
| 200Successful API Response | |
|---|---|
request | |
pageUrl | |
api | |
version | |
objects |
| 500Internal Server Error | |
|---|---|
errorCode | |
error |
{
"errorCode": 500,
"error": "Internal Server Error"
}