-
Notifications
You must be signed in to change notification settings - Fork 2
Event API (beta)
Isaac edited this page Apr 3, 2022
·
2 revisions
https://docs.diffbot.com/docs/en/api-event
let evt = await diffbot.event({
url: 'https://www.eventbrite.ca/e/relit-2020-bring-your-brave-tickets-109259768910',
proxy: '168.212.226.204',
body: 'optional-html-post-body',
});
console.log(evt.objects[0].venue);
console.log(evt.objects[0].description);
Param | Type | Required | Description |
---|---|---|---|
url | string | Yes | Web page URL of the event to process |
fields | string[] | No | Used to specify optional fields to be returned by the Event API. See fields: https://docs.diffbot.com/docs/en/api-event |
timeout | number | No | 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 | string | No | Use for jsonp requests. Needed for cross-domain ajax. |
proxy | string | No | Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204 ) |
proxyAuth | string | No | Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password ) |
body | string | No | Optional HTML markup to pass as POST body |
customJS | string | No | This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-event#custom-javascript |
customHeaders | object | No | This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-event#custom-headers |
- API Documentation