Sending your message. Please wait...

Thanks for sending your message! We'll get back to you shortly.

There was a problem sending your message. Please try again.

Please complete all the fields in the form before sending.

PromptCloud | PromptCloud's Data API
Documentation on PromptCloud REST API. PromptCloud's Ruby Gem and how to fetch data automatically from its API once data crawls are complete.
API, API Documentation
15454
page,page-id-15454,page-child,parent-pageid-14942,page-template,page-template-full_width-php,ajax_fade,page_not_loaded,,,wpb-js-composer js-comp-ver-4.1.2,vc_responsive
 

API and API Documentation

  • It is an easy to use REST-based API that uses HTTP basic AUTH for authentication
  • All data gets uploaded to your specific project location on the API. A typical link would look like- http://api.promptcloud.com/data/info?id=<PROJECT_ID>
  • Project ID is supplied at the beginning of any project
  • It has provision to only give you files after a particular timestamp, when you have already downloaded data up to a certain point
  • For more details, visit API FAQs.

We also have a Ruby gem for programmable access to our

API- https://rubygems.org/gems/promptcloud_data_api

ruby-logo

Illustration

  • Say, your project id is- “demo”. So your API location is http://api.promptcloud.com/data/info?id=demo.
  • Data uploads have begun and we intimate you regarding the same. You would like to fetch the results, so you use this command-
    • GET http://api.promptcloud.com/data/info?id=demo- this by default lists files uploaded in the last 2 days.
    • GET http://api.promptcloud.com/data/info?id=demo&ts=0 – this gets all files uploaded since the beginning. Providing a different timestamp value will only fetch files after that timestamp. Timestamp formats are numeric eg. 1347866558160978794.
    • You could use the following parameters too with the API link to return filtered files instead of using “ts”-
    • from_date (YYYYMMDD)
    • to_date (YYYYMMDD)
    • cat (prefix of the site name)

xml image about api

  • The above commands give back list of XML data files in the result. To access each of those files you need to pass user name and password which has been separately supplied.
  • One of the following methods can be used to provide authentication and download files in a single step
    • wget –user –passowrd URL
    • Or using curl –user name:password URL
    • if you use ruby then following is a very popular library that you can use: https://github.com/typhoeus/typhoeus

Ready to discuss your requirements?

REQUEST QUOTE