Skip to main content
It will only take you a few minutes. This guide walks you through: ✅ Set up authentication (API key)
✅ Create two sample files to upload
✅ Upload private files via the Content API
✅ Query bigdata.com with the Search API
Private & Secure: No LLM training on your data
Ready to get started? Run the examples below in your terminal (or open the notebook in Colab). All requests use the REST API with your API key in the X-API-KEY header. Open in Colab

Set up authentication

Send your API key in the X-API-KEY header on every request. See Authentication for details. Replace YOUR_API_KEY in the examples with your key.

Create two sample files to upload

Create the following two sample files in your local directory. File name data_science_research-2020-06.txt:
File name soup_recipes-2020-06.txt:

Upload private files (Content API)

Upload the two files using the Content API: request a pre-signed URL and document id with POST /contents/v1/documents, then PUT the file to that URL. Bigdata enriches each document (extraction, structure and annotation of the content) and indexes it, making it available for Search and Research Agent. Use published_ts to set the document date (so we can narrow search to June 2020) and tags to filter by type later. 1. Request upload URL and upload the first file
2. Request upload URL and upload the second file
After each PUT, Bigdata enriches and indexes the document. The POST response includes an id (content ID); use it with Get document metadata to poll status until it is completed. See Upload your own content for full details.

Query bigdata.com

Run a similarity search for “recommend stock” in June 2020. To search only your uploaded files, filter by category my_files. Use POST /v1/search with a query that has text (for similarity) and filters for timestamp and document category. To restrict results to your uploaded files, set category to my_files. Similarity search in June 2020 (all sources):
Search only your uploaded files (my_files):
Narrow to the publication window of your files (2 seconds around 2020-06-10 12:00:00):
You should see your two documents (e.g. data_science_research-2020-06.txt and soup_recipes-2020-06.txt) in the results. Filter by tag (e.g. only “Data Science Research”): Use the tag filter with any_of to restrict to documents that have a specific tag. See Search API: tag filter.

Summary

Congratulations! You have uploaded private files with the Content API and queried them via the Search API.
Related documentation
Click on the playgrounds below, use the source selector and filter by My Files to test and retrieve your uploaded content.

Search Service Playground

Search across your private content and other sources. In the playground, open the source selector and choose My Files to limit results to your uploaded documents.

Research Agent Playground

Run research over your private content and real-time data. In the playground, use the source selector and filter by My Files to ground answers in your documents.