- Previous: Search
- Up: API methods (version 1.2)
- Next: Add a batch of URLs
Add an URL
POST http://api.contextvoice.com/1.2/resources/
Parameters:
- url - the URL of the new resource (required)
- apikey - your API key (required - get one now)
By default, we follow the redirects for the URL specified. This means that we will store the final link, after all the redirects have been processed. To speed up things, if you are sure that there are no redirects for that specific URL, you can post it to /resources/?noredirect
Response
| Status | HTTP status code | Message |
| Resource has been created successfully | 201 Created | <info message=”Resource created” url=”<FINAL_URL_AFTER_ALL_REDIRECTS>” |
| Resource has already been submitted for crawling but has not been processed yet | 202 Accepted | <info message=”The resource is in our system but was not crawled yet” url=”<FINAL_URL_AFTER_ALL_REDIRECTS>” |
| Resource has already been processed | 302 Temporary redirect | The user will be redirected to the resource URL (http://api.contextvoice.com/1.2/resources/?url= <FINAL_URL_AFTER_ALL_REDIRECTS> |
Sample code (Python)
- Previous: Search
- Up: API methods (version 1.2)
- Next: Add a batch of URLs

Comments
Please sign in to post a comment.