### Get Catalog Keywords Response Example Source: https://theirstack.com/en/docs/api-reference/catalog/get_catalog_keywords_v0 Example JSON response from the Get Catalog Keywords endpoint. Shows the structure with companies, companies_found_last_week, description, jobs, logo, and logo_thumbnail fields. ```json { "companies": 0, "companies_found_last_week": 0, "description": "string", "jobs": 0, "logo": "string", "logo_thumbnail": "string" } ``` -------------------------------- ### Set up boto3 client with temporary credentials Source: https://theirstack.com/docs/llms-full.txt Python example that fetches credentials from the API and creates a boto3 S3 client using the endpoint_url, access key, secret key, and session token from the response. The endpoint_url is required because files are stored in Cloudflare R2. ```python import boto3 import requests # Get credentials from the API response = requests.post( "https://api.theirstack.com/v1/datasets/credentials", headers={"Authorization": "Bearer "} ) response.raise_for_status() credentials = response.json() # Use the endpoint_url and bucket_name from the response client = boto3.client( "s3", endpoint_url=credentials["storage"]["endpoint_url"], aws_access_key_id=credentials["access_key_id"], aws_secret_access_key=credentials["secret_access_key"], aws_session_token=credentials["session_token"], ) ``` -------------------------------- ### POST app_int/programs/{program}/customers/create Source: https://affiliate.theirstack.com/ Creates a customer from the customers page for a program. ```APIDOC ## POST app_int/programs/{program}/customers/create ### Description Creates a customer from the customers page for a program. ### Method POST ### Endpoint app_int/programs/{program}/customers/create ### Parameters #### Path Parameters - **program** (string) - Required - The program identifier. ### Response #### Success Response (200) No response body documented. ``` -------------------------------- ### Error response example for Get Catalog Keywords Source: https://theirstack.com/en/docs/api-reference/catalog/get_catalog_keywords_v0 Example JSON error response returned by the Get Catalog Keywords endpoint, containing an error object with code E-001 and description 'Not allowed exception'. ```json { "error": { "code": "E-001", "description": "Not allowed exception" }, "request_id": null } ``` -------------------------------- ### Initialize Data Storage Source: https://theirstack.com/docs/llms-full.txt Create an empty list to hold the scraped job information. ```python job_data = [] ``` -------------------------------- ### Get Catalog Industries - C# request Source: https://theirstack.com/en/docs/api-reference/catalog/get_catalog_industries_v0 Example C# code to call the Get Catalog Industries endpoint using HttpClient. ```csharp using System; using System.Net.Http; using System.Threading.Tasks; class Program { static async Task Main() { using var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY"); var response = await client.GetAsync("https://api.theirstack.com/v1/catalog/industries"); Console.WriteLine(await response.Content.ReadAsStringAsync()); } } ``` -------------------------------- ### POST app_int/programs/{program}/partner/{partner}/customers/create Source: https://affiliate.theirstack.com/ Creates a customer for a specific partner within a program. ```APIDOC ## POST app_int/programs/{program}/partner/{partner}/customers/create ### Description Creates a customer for a specific partner within a program. ### Method POST ### Endpoint app_int/programs/{program}/partner/{partner}/customers/create ### Parameters #### Path Parameters - **program** (string) - Required - The program identifier. - **partner** (string) - Required - The partner identifier. ### Response #### Success Response (200) No response body documented. ``` -------------------------------- ### Get Catalog Industries - Java request Source: https://theirstack.com/en/docs/api-reference/catalog/get_catalog_industries_v0 Example Java code to call the Get Catalog Industries endpoint using java.net.http.HttpClient. ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class Main { public static void main(String[] args) throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.theirstack.com/v1/catalog/industries")) .header("Authorization", "Bearer YOUR_API_KEY") .GET() .build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } } ``` -------------------------------- ### Get Catalog Industries - JavaScript request Source: https://theirstack.com/en/docs/api-reference/catalog/get_catalog_industries_v0 Example JavaScript code to call the Get Catalog Industries endpoint using fetch. ```javascript fetch('https://api.theirstack.com/v1/catalog/industries', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }) .then(response => response.json()) .then(data => console.log(data)); ``` -------------------------------- ### List Keyword Categories v1 - Request Examples (cURL, JavaScript, Go, Python, Java, C#) Source: https://theirstack.com/en/docs/api-reference/catalog/list_keyword_categories_v1 Request examples for the List Keyword Categories v1 endpoint in multiple languages. The default language is cURL. These examples show how to call the API. ```bash curl ``` ```js js ``` ```go go ``` ```python python ``` ```java java ``` ```csharp csharp ```