@spyglasshq/sdk 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +248 -66
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/Client.d.ts +4 -4
  4. package/dist/cjs/Client.js +3 -3
  5. package/dist/cjs/api/errors/BadRequestError.d.ts +3 -3
  6. package/dist/cjs/api/errors/ContentTooLargeError.d.ts +3 -3
  7. package/dist/cjs/api/errors/ForbiddenError.d.ts +3 -3
  8. package/dist/cjs/api/errors/InternalServerError.d.ts +3 -3
  9. package/dist/cjs/api/errors/MethodNotAllowedError.d.ts +3 -3
  10. package/dist/cjs/api/errors/NotFoundError.d.ts +3 -3
  11. package/dist/cjs/api/errors/PaymentRequiredError.d.ts +3 -3
  12. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +3 -3
  13. package/dist/cjs/api/errors/UnauthorizedError.d.ts +3 -3
  14. package/dist/cjs/api/resources/account/client/Client.d.ts +9 -9
  15. package/dist/cjs/api/resources/account/client/Client.js +15 -15
  16. package/dist/cjs/api/resources/indexing/client/Client.d.ts +19 -19
  17. package/dist/cjs/api/resources/indexing/client/Client.js +31 -31
  18. package/dist/cjs/api/resources/search/client/Client.d.ts +93 -89
  19. package/dist/cjs/api/resources/search/client/Client.js +153 -149
  20. package/dist/cjs/api/resources/search/client/requests/GetBrandLandingPagesRequest.d.ts +2 -2
  21. package/dist/cjs/api/resources/search/client/requests/GetBrandMediaInsightsRequest.d.ts +2 -2
  22. package/dist/cjs/api/resources/search/client/requests/{GetMediaV2Request.d.ts → GetMediaRequest.d.ts} +13 -13
  23. package/dist/cjs/api/resources/search/client/requests/{GetMediaV2Request.js → GetMediaRequest.js} +14 -14
  24. package/dist/{esm/api/resources/search/client/requests/SearchBrandsV2Request.d.mts → cjs/api/resources/search/client/requests/SearchBrandsRequest.d.ts} +4 -4
  25. package/dist/cjs/api/resources/search/client/requests/{SearchBrandsV2Request.js → SearchBrandsRequest.js} +5 -5
  26. package/dist/cjs/api/resources/search/client/requests/index.d.ts +2 -2
  27. package/dist/cjs/api/resources/search/client/requests/index.js +5 -5
  28. package/dist/cjs/api/resources/search/types/GetAccountResponse.d.ts +2 -2
  29. package/dist/cjs/api/resources/search/types/{GetMediaV2Response.d.ts → GetMediaResponse.d.ts} +3 -3
  30. package/dist/cjs/api/resources/search/types/{GetMediaV2Response.js → GetMediaResponse.js} +5 -5
  31. package/dist/{esm/api/resources/search/types/SearchBrandsV2Response.d.mts → cjs/api/resources/search/types/SearchBrandsResponse.d.ts} +3 -3
  32. package/dist/cjs/api/resources/search/types/{SearchBrandsV2Response.js → SearchBrandsResponse.js} +5 -5
  33. package/dist/cjs/api/resources/search/types/index.d.ts +2 -2
  34. package/dist/cjs/api/resources/search/types/index.js +2 -2
  35. package/dist/cjs/index.d.ts +2 -2
  36. package/dist/cjs/index.js +3 -3
  37. package/dist/cjs/version.d.ts +1 -1
  38. package/dist/cjs/version.js +1 -1
  39. package/dist/esm/BaseClient.mjs +3 -3
  40. package/dist/esm/Client.d.mts +4 -4
  41. package/dist/esm/Client.mjs +1 -1
  42. package/dist/esm/api/errors/BadRequestError.d.mts +3 -3
  43. package/dist/esm/api/errors/ContentTooLargeError.d.mts +3 -3
  44. package/dist/esm/api/errors/ForbiddenError.d.mts +3 -3
  45. package/dist/esm/api/errors/InternalServerError.d.mts +3 -3
  46. package/dist/esm/api/errors/MethodNotAllowedError.d.mts +3 -3
  47. package/dist/esm/api/errors/NotFoundError.d.mts +3 -3
  48. package/dist/esm/api/errors/PaymentRequiredError.d.mts +3 -3
  49. package/dist/esm/api/errors/TooManyRequestsError.d.mts +3 -3
  50. package/dist/esm/api/errors/UnauthorizedError.d.mts +3 -3
  51. package/dist/esm/api/resources/account/client/Client.d.mts +9 -9
  52. package/dist/esm/api/resources/account/client/Client.mjs +15 -15
  53. package/dist/esm/api/resources/indexing/client/Client.d.mts +19 -19
  54. package/dist/esm/api/resources/indexing/client/Client.mjs +31 -31
  55. package/dist/esm/api/resources/search/client/Client.d.mts +93 -89
  56. package/dist/esm/api/resources/search/client/Client.mjs +153 -149
  57. package/dist/esm/api/resources/search/client/requests/GetBrandLandingPagesRequest.d.mts +2 -2
  58. package/dist/esm/api/resources/search/client/requests/GetBrandMediaInsightsRequest.d.mts +2 -2
  59. package/dist/esm/api/resources/search/client/requests/{GetMediaV2Request.d.mts → GetMediaRequest.d.mts} +13 -13
  60. package/dist/esm/api/resources/search/client/requests/{GetMediaV2Request.mjs → GetMediaRequest.mjs} +13 -13
  61. package/dist/{cjs/api/resources/search/client/requests/SearchBrandsV2Request.d.ts → esm/api/resources/search/client/requests/SearchBrandsRequest.d.mts} +4 -4
  62. package/dist/esm/api/resources/search/client/requests/{SearchBrandsV2Request.mjs → SearchBrandsRequest.mjs} +4 -4
  63. package/dist/esm/api/resources/search/client/requests/index.d.mts +2 -2
  64. package/dist/esm/api/resources/search/client/requests/index.mjs +2 -2
  65. package/dist/esm/api/resources/search/types/GetAccountResponse.d.mts +2 -2
  66. package/dist/esm/api/resources/search/types/{GetMediaV2Response.d.mts → GetMediaResponse.d.mts} +3 -3
  67. package/dist/esm/api/resources/search/types/{GetMediaV2Response.mjs → GetMediaResponse.mjs} +4 -4
  68. package/dist/{cjs/api/resources/search/types/SearchBrandsV2Response.d.ts → esm/api/resources/search/types/SearchBrandsResponse.d.mts} +3 -3
  69. package/dist/esm/api/resources/search/types/{SearchBrandsV2Response.mjs → SearchBrandsResponse.mjs} +4 -4
  70. package/dist/esm/api/resources/search/types/index.d.mts +2 -2
  71. package/dist/esm/api/resources/search/types/index.mjs +2 -2
  72. package/dist/esm/index.d.mts +2 -2
  73. package/dist/esm/index.mjs +2 -2
  74. package/dist/esm/version.d.mts +1 -1
  75. package/dist/esm/version.mjs +1 -1
  76. package/package.json +17 -2
  77. package/reference.md +31 -27
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var GetMediaV2Request;
3
- (function (GetMediaV2Request) {
2
+ export var GetMediaRequest;
3
+ (function (GetMediaRequest) {
4
4
  let Channel;
5
5
  (function (Channel) {
6
6
  Channel.Item = {
@@ -8,7 +8,7 @@ export var GetMediaV2Request;
8
8
  Instagram: "INSTAGRAM",
9
9
  Tiktok: "TIKTOK",
10
10
  };
11
- })(Channel = GetMediaV2Request.Channel || (GetMediaV2Request.Channel = {}));
11
+ })(Channel = GetMediaRequest.Channel || (GetMediaRequest.Channel = {}));
12
12
  let Format;
13
13
  (function (Format) {
14
14
  Format.Item = {
@@ -18,7 +18,7 @@ export var GetMediaV2Request;
18
18
  Image: "IMAGE",
19
19
  Dco: "DCO",
20
20
  };
21
- })(Format = GetMediaV2Request.Format || (GetMediaV2Request.Format = {}));
21
+ })(Format = GetMediaRequest.Format || (GetMediaRequest.Format = {}));
22
22
  let Duration;
23
23
  (function (Duration) {
24
24
  Duration.Item = {
@@ -27,8 +27,8 @@ export var GetMediaV2Request;
27
27
  Thirty60: "30-60",
28
28
  Sixty: "60+",
29
29
  };
30
- })(Duration = GetMediaV2Request.Duration || (GetMediaV2Request.Duration = {}));
31
- GetMediaV2Request.Status = {
30
+ })(Duration = GetMediaRequest.Duration || (GetMediaRequest.Duration = {}));
31
+ GetMediaRequest.Status = {
32
32
  Active: "ACTIVE",
33
33
  Inactive: "INACTIVE",
34
34
  All: "ALL",
@@ -64,7 +64,7 @@ export var GetMediaV2Request;
64
64
  TextOverlay: "Text Overlay",
65
65
  Greenscreen: "Greenscreen",
66
66
  };
67
- })(Categories = GetMediaV2Request.Categories || (GetMediaV2Request.Categories = {}));
67
+ })(Categories = GetMediaRequest.Categories || (GetMediaRequest.Categories = {}));
68
68
  let FunnelStage;
69
69
  (function (FunnelStage) {
70
70
  FunnelStage.Item = {
@@ -74,7 +74,7 @@ export var GetMediaV2Request;
74
74
  ProductAware: "PRODUCT_AWARE",
75
75
  MostAware: "MOST_AWARE",
76
76
  };
77
- })(FunnelStage = GetMediaV2Request.FunnelStage || (GetMediaV2Request.FunnelStage = {}));
77
+ })(FunnelStage = GetMediaRequest.FunnelStage || (GetMediaRequest.FunnelStage = {}));
78
78
  let Language;
79
79
  (function (Language) {
80
80
  Language.Item = {
@@ -230,8 +230,8 @@ export var GetMediaV2Request;
230
230
  Xhosa: "Xhosa",
231
231
  Khasi: "Khasi",
232
232
  };
233
- })(Language = GetMediaV2Request.Language || (GetMediaV2Request.Language = {}));
234
- GetMediaV2Request.DatePreset = {
233
+ })(Language = GetMediaRequest.Language || (GetMediaRequest.Language = {}));
234
+ GetMediaRequest.DatePreset = {
235
235
  Today: "today",
236
236
  Yesterday: "yesterday",
237
237
  Last3Days: "last-3-days",
@@ -247,11 +247,11 @@ export var GetMediaV2Request;
247
247
  YearToDate: "year-to-date",
248
248
  LastYear: "last-year",
249
249
  };
250
- GetMediaV2Request.LandingPageMatch = {
250
+ GetMediaRequest.LandingPageMatch = {
251
251
  Contains: "contains",
252
252
  Equals: "equals",
253
253
  };
254
- GetMediaV2Request.SortBy = {
254
+ GetMediaRequest.SortBy = {
255
255
  MostRecent: "MOST_RECENT",
256
256
  Oldest: "OLDEST",
257
257
  LongestRun: "LONGEST_RUN",
@@ -262,4 +262,4 @@ export var GetMediaV2Request;
262
262
  HighestEngagement: "HIGHEST_ENGAGEMENT",
263
263
  HighestOutlier: "HIGHEST_OUTLIER",
264
264
  };
265
- })(GetMediaV2Request || (GetMediaV2Request = {}));
265
+ })(GetMediaRequest || (GetMediaRequest = {}));
@@ -5,8 +5,8 @@
5
5
  * limit: 3
6
6
  * }
7
7
  */
8
- export interface SearchBrandsV2Request {
9
- brandIds?: SearchBrandsV2Request.BrandIds.Item[];
8
+ export interface SearchBrandsRequest {
9
+ brandIds?: SearchBrandsRequest.BrandIds.Item[];
10
10
  names?: string[];
11
11
  igUsername?: string;
12
12
  tiktokUsername?: string;
@@ -14,12 +14,12 @@ export interface SearchBrandsV2Request {
14
14
  location?: string;
15
15
  minFollowers?: number;
16
16
  maxFollowers?: number;
17
- sortBy?: SearchBrandsV2Request.SortBy;
17
+ sortBy?: SearchBrandsRequest.SortBy;
18
18
  offset?: number;
19
19
  limit?: number;
20
20
  taxonomy?: string[];
21
21
  }
22
- export declare namespace SearchBrandsV2Request {
22
+ export declare namespace SearchBrandsRequest {
23
23
  type BrandIds = BrandIds.Item[];
24
24
  namespace BrandIds {
25
25
  /**
@@ -1,7 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var SearchBrandsV2Request;
3
- (function (SearchBrandsV2Request) {
4
- SearchBrandsV2Request.SortBy = {
2
+ export var SearchBrandsRequest;
3
+ (function (SearchBrandsRequest) {
4
+ SearchBrandsRequest.SortBy = {
5
5
  Name: "NAME",
6
6
  MostFollowers: "MOST_FOLLOWERS",
7
7
  LeastFollowers: "LEAST_FOLLOWERS",
@@ -9,4 +9,4 @@ export var SearchBrandsV2Request;
9
9
  HighestEngagement: "HIGHEST_ENGAGEMENT",
10
10
  MostActiveAds: "MOST_ACTIVE_ADS",
11
11
  };
12
- })(SearchBrandsV2Request || (SearchBrandsV2Request = {}));
12
+ })(SearchBrandsRequest || (SearchBrandsRequest = {}));
@@ -2,7 +2,7 @@ export type { GetAccountRequest } from "./GetAccountRequest.mjs";
2
2
  export type { GetBrandLandingPagesRequest } from "./GetBrandLandingPagesRequest.mjs";
3
3
  export type { GetBrandMediaInsightsRequest } from "./GetBrandMediaInsightsRequest.mjs";
4
4
  export type { GetCommentsRequest } from "./GetCommentsRequest.mjs";
5
- export { GetMediaV2Request } from "./GetMediaV2Request.mjs";
6
- export { SearchBrandsV2Request } from "./SearchBrandsV2Request.mjs";
5
+ export { GetMediaRequest } from "./GetMediaRequest.mjs";
6
+ export { SearchBrandsRequest } from "./SearchBrandsRequest.mjs";
7
7
  export { SearchCreatorsRequest } from "./SearchCreatorsRequest.mjs";
8
8
  export type { SearchTaxonomiesRequest } from "./SearchTaxonomiesRequest.mjs";
@@ -1,3 +1,3 @@
1
- export { GetMediaV2Request } from "./GetMediaV2Request.mjs";
2
- export { SearchBrandsV2Request } from "./SearchBrandsV2Request.mjs";
1
+ export { GetMediaRequest } from "./GetMediaRequest.mjs";
2
+ export { SearchBrandsRequest } from "./SearchBrandsRequest.mjs";
3
3
  export { SearchCreatorsRequest } from "./SearchCreatorsRequest.mjs";
@@ -1,5 +1,5 @@
1
- import type * as Spyglass from "../../../index.mjs";
2
- export type GetAccountResponse = Spyglass.GetAccountResponse.Brand | Spyglass.GetAccountResponse.Creator;
1
+ import type * as spyglass from "../../../index.mjs";
2
+ export type GetAccountResponse = spyglass.GetAccountResponse.Brand | spyglass.GetAccountResponse.Creator;
3
3
  export declare namespace GetAccountResponse {
4
4
  interface Brand {
5
5
  type: "BRAND";
@@ -1,8 +1,8 @@
1
- export interface GetMediaV2Response {
1
+ export interface GetMediaResponse {
2
2
  count: number;
3
- media: GetMediaV2Response.Media.Item[];
3
+ media: GetMediaResponse.Media.Item[];
4
4
  }
5
- export declare namespace GetMediaV2Response {
5
+ export declare namespace GetMediaResponse {
6
6
  type Media = Media.Item[];
7
7
  namespace Media {
8
8
  interface Item {
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var GetMediaV2Response;
3
- (function (GetMediaV2Response) {
2
+ export var GetMediaResponse;
3
+ (function (GetMediaResponse) {
4
4
  let Media;
5
5
  (function (Media) {
6
6
  let Item;
@@ -50,5 +50,5 @@ export var GetMediaV2Response;
50
50
  };
51
51
  })(UgcCharacter = Item.UgcCharacter || (Item.UgcCharacter = {}));
52
52
  })(Item = Media.Item || (Media.Item = {}));
53
- })(Media = GetMediaV2Response.Media || (GetMediaV2Response.Media = {}));
54
- })(GetMediaV2Response || (GetMediaV2Response = {}));
53
+ })(Media = GetMediaResponse.Media || (GetMediaResponse.Media = {}));
54
+ })(GetMediaResponse || (GetMediaResponse = {}));
@@ -1,9 +1,9 @@
1
- export interface SearchBrandsV2Response {
1
+ export interface SearchBrandsResponse {
2
2
  count: number;
3
- brands: SearchBrandsV2Response.Brands.Item[];
3
+ brands: SearchBrandsResponse.Brands.Item[];
4
4
  unmatchedIds?: string[] | undefined;
5
5
  }
6
- export declare namespace SearchBrandsV2Response {
6
+ export declare namespace SearchBrandsResponse {
7
7
  type Brands = Brands.Item[];
8
8
  namespace Brands {
9
9
  interface Item {
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var SearchBrandsV2Response;
3
- (function (SearchBrandsV2Response) {
2
+ export var SearchBrandsResponse;
3
+ (function (SearchBrandsResponse) {
4
4
  let Brands;
5
5
  (function (Brands) {
6
6
  let Item;
@@ -9,5 +9,5 @@ export var SearchBrandsV2Response;
9
9
  Brand: "BRAND",
10
10
  };
11
11
  })(Item = Brands.Item || (Brands.Item = {}));
12
- })(Brands = SearchBrandsV2Response.Brands || (SearchBrandsV2Response.Brands = {}));
13
- })(SearchBrandsV2Response || (SearchBrandsV2Response = {}));
12
+ })(Brands = SearchBrandsResponse.Brands || (SearchBrandsResponse.Brands = {}));
13
+ })(SearchBrandsResponse || (SearchBrandsResponse = {}));
@@ -4,7 +4,7 @@ export * from "./GetBrandLandingPagesResponse.mjs";
4
4
  export * from "./GetBrandMediaInsightsRequestType.mjs";
5
5
  export * from "./GetBrandMediaInsightsResponse.mjs";
6
6
  export * from "./GetCommentsResponse.mjs";
7
- export * from "./GetMediaV2Response.mjs";
8
- export * from "./SearchBrandsV2Response.mjs";
7
+ export * from "./GetMediaResponse.mjs";
8
+ export * from "./SearchBrandsResponse.mjs";
9
9
  export * from "./SearchCreatorsResponse.mjs";
10
10
  export * from "./SearchTaxonomiesResponse.mjs";
@@ -4,7 +4,7 @@ export * from "./GetBrandLandingPagesResponse.mjs";
4
4
  export * from "./GetBrandMediaInsightsRequestType.mjs";
5
5
  export * from "./GetBrandMediaInsightsResponse.mjs";
6
6
  export * from "./GetCommentsResponse.mjs";
7
- export * from "./GetMediaV2Response.mjs";
8
- export * from "./SearchBrandsV2Response.mjs";
7
+ export * from "./GetMediaResponse.mjs";
8
+ export * from "./SearchBrandsResponse.mjs";
9
9
  export * from "./SearchCreatorsResponse.mjs";
10
10
  export * from "./SearchTaxonomiesResponse.mjs";
@@ -1,6 +1,6 @@
1
- export * as Spyglass from "./api/index.mjs";
1
+ export * as spyglass from "./api/index.mjs";
2
2
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
3
- export { SpyglassClient } from "./Client.mjs";
3
+ export { Spyglass } from "./Client.mjs";
4
4
  export { SpyglassEnvironment } from "./environments.mjs";
5
5
  export { SpyglassError, SpyglassTimeoutError } from "./errors/index.mjs";
6
6
  export * from "./exports.mjs";
@@ -1,5 +1,5 @@
1
- export * as Spyglass from "./api/index.mjs";
2
- export { SpyglassClient } from "./Client.mjs";
1
+ export * as spyglass from "./api/index.mjs";
2
+ export { Spyglass } from "./Client.mjs";
3
3
  export { SpyglassEnvironment } from "./environments.mjs";
4
4
  export { SpyglassError, SpyglassTimeoutError } from "./errors/index.mjs";
5
5
  export * from "./exports.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0";
1
+ export declare const SDK_VERSION = "0.1.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.0";
1
+ export const SDK_VERSION = "0.1.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglasshq/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -98,5 +98,20 @@
98
98
  "engines": {
99
99
  "node": ">=18.0.0"
100
100
  },
101
- "sideEffects": false
101
+ "sideEffects": false,
102
+ "description": "Official TypeScript & Node.js SDK for the Spyglass API — search brands, creators, and the ads they run.",
103
+ "license": "MIT",
104
+ "homepage": "https://docs.spyglass.so",
105
+ "keywords": [
106
+ "spyglass",
107
+ "ads",
108
+ "ad-intelligence",
109
+ "social-media",
110
+ "creators",
111
+ "brands",
112
+ "marketing",
113
+ "tiktok",
114
+ "instagram",
115
+ "meta-ads"
116
+ ]
102
117
  }
package/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Reference
2
2
  ## Search
3
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchBrandsV2</a>({ ...params }) -> Spyglass.SearchBrandsV2Response</code></summary>
3
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">brands</a>({ ...params }) -> spyglass.SearchBrandsResponse</code></summary>
4
4
  <dl>
5
5
  <dd>
6
6
 
@@ -12,7 +12,10 @@
12
12
  <dl>
13
13
  <dd>
14
14
 
15
- Find brands (advertisers) only.
15
+ Find brands.
16
+ Search semantically with `query`, or look them up by name, id, or
17
+ social handle. Either way, you can also narrow the results with
18
+ filters such as product taxonomy, location, and follower count.
16
19
 
17
20
  Send one search field. Each field is its own mode:
18
21
 
@@ -59,7 +62,7 @@ row even when nothing matches.
59
62
  <dd>
60
63
 
61
64
  ```typescript
62
- await client.search.searchBrandsV2({
65
+ await client.search.brands({
63
66
  names: ["Nike"],
64
67
  limit: 3
65
68
  });
@@ -78,7 +81,7 @@ await client.search.searchBrandsV2({
78
81
  <dl>
79
82
  <dd>
80
83
 
81
- **request:** `Spyglass.SearchBrandsV2Request`
84
+ **request:** `spyglass.SearchBrandsRequest`
82
85
 
83
86
  </dd>
84
87
  </dl>
@@ -98,7 +101,7 @@ await client.search.searchBrandsV2({
98
101
  </dl>
99
102
  </details>
100
103
 
101
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">creators</a>({ ...params }) -> Spyglass.SearchCreatorsResponse</code></summary>
104
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">creators</a>({ ...params }) -> spyglass.SearchCreatorsResponse</code></summary>
102
105
  <dl>
103
106
  <dd>
104
107
 
@@ -110,9 +113,10 @@ await client.search.searchBrandsV2({
110
113
  <dl>
111
114
  <dd>
112
115
 
113
- Find creators only.
114
-
115
- They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
116
+ Find creators.
117
+ Search semantically with `query`, or look them up by name, id, or
118
+ social handle. Either way, you can also narrow the results with
119
+ filters such as audience profile, location, and follower count.
116
120
 
117
121
  Send one search field. Each field is its own mode:
118
122
 
@@ -179,7 +183,7 @@ await client.search.creators({
179
183
  <dl>
180
184
  <dd>
181
185
 
182
- **request:** `Spyglass.SearchCreatorsRequest`
186
+ **request:** `spyglass.SearchCreatorsRequest`
183
187
 
184
188
  </dd>
185
189
  </dl>
@@ -199,7 +203,7 @@ await client.search.creators({
199
203
  </dl>
200
204
  </details>
201
205
 
202
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getAccount</a>({ ...params }) -> Spyglass.GetAccountResponse</code></summary>
206
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getAccount</a>({ ...params }) -> spyglass.GetAccountResponse</code></summary>
203
207
  <dl>
204
208
  <dd>
205
209
 
@@ -250,7 +254,7 @@ await client.search.getAccount({
250
254
  <dl>
251
255
  <dd>
252
256
 
253
- **request:** `Spyglass.GetAccountRequest`
257
+ **request:** `spyglass.GetAccountRequest`
254
258
 
255
259
  </dd>
256
260
  </dl>
@@ -270,7 +274,7 @@ await client.search.getAccount({
270
274
  </dl>
271
275
  </details>
272
276
 
273
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">taxonomies</a>({ ...params }) -> Spyglass.SearchTaxonomiesResponse</code></summary>
277
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">taxonomies</a>({ ...params }) -> spyglass.SearchTaxonomiesResponse</code></summary>
274
278
  <dl>
275
279
  <dd>
276
280
 
@@ -320,7 +324,7 @@ await client.search.taxonomies({
320
324
  <dl>
321
325
  <dd>
322
326
 
323
- **request:** `Spyglass.SearchTaxonomiesRequest`
327
+ **request:** `spyglass.SearchTaxonomiesRequest`
324
328
 
325
329
  </dd>
326
330
  </dl>
@@ -340,7 +344,7 @@ await client.search.taxonomies({
340
344
  </dl>
341
345
  </details>
342
346
 
343
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getMediaV2</a>({ ...params }) -> Spyglass.GetMediaV2Response</code></summary>
347
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getMedia</a>({ ...params }) -> spyglass.GetMediaResponse</code></summary>
344
348
  <dl>
345
349
  <dd>
346
350
 
@@ -374,7 +378,7 @@ case `count` is 0 but you are charged for one row.
374
378
  <dd>
375
379
 
376
380
  ```typescript
377
- await client.search.getMediaV2({
381
+ await client.search.getMedia({
378
382
  query: "comfort-focused video ads",
379
383
  limit: 20
380
384
  });
@@ -393,7 +397,7 @@ await client.search.getMediaV2({
393
397
  <dl>
394
398
  <dd>
395
399
 
396
- **request:** `Spyglass.GetMediaV2Request`
400
+ **request:** `spyglass.GetMediaRequest`
397
401
 
398
402
  </dd>
399
403
  </dl>
@@ -413,7 +417,7 @@ await client.search.getMediaV2({
413
417
  </dl>
414
418
  </details>
415
419
 
416
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandMediaInsights</a>({ ...params }) -> Spyglass.GetBrandMediaInsightsResponse</code></summary>
420
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandMediaInsights</a>({ ...params }) -> spyglass.GetBrandMediaInsightsResponse</code></summary>
417
421
  <dl>
418
422
  <dd>
419
423
 
@@ -467,7 +471,7 @@ await client.search.getBrandMediaInsights({
467
471
  <dl>
468
472
  <dd>
469
473
 
470
- **request:** `Spyglass.GetBrandMediaInsightsRequest`
474
+ **request:** `spyglass.GetBrandMediaInsightsRequest`
471
475
 
472
476
  </dd>
473
477
  </dl>
@@ -487,7 +491,7 @@ await client.search.getBrandMediaInsights({
487
491
  </dl>
488
492
  </details>
489
493
 
490
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandLandingPages</a>({ ...params }) -> Spyglass.GetBrandLandingPagesResponse</code></summary>
494
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandLandingPages</a>({ ...params }) -> spyglass.GetBrandLandingPagesResponse</code></summary>
491
495
  <dl>
492
496
  <dd>
493
497
 
@@ -536,7 +540,7 @@ await client.search.getBrandLandingPages({
536
540
  <dl>
537
541
  <dd>
538
542
 
539
- **request:** `Spyglass.GetBrandLandingPagesRequest`
543
+ **request:** `spyglass.GetBrandLandingPagesRequest`
540
544
 
541
545
  </dd>
542
546
  </dl>
@@ -556,7 +560,7 @@ await client.search.getBrandLandingPages({
556
560
  </dl>
557
561
  </details>
558
562
 
559
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getComments</a>({ ...params }) -> Spyglass.GetCommentsResponse</code></summary>
563
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getComments</a>({ ...params }) -> spyglass.GetCommentsResponse</code></summary>
560
564
  <dl>
561
565
  <dd>
562
566
 
@@ -625,7 +629,7 @@ await client.search.getComments({
625
629
  <dl>
626
630
  <dd>
627
631
 
628
- **request:** `Spyglass.GetCommentsRequest`
632
+ **request:** `spyglass.GetCommentsRequest`
629
633
 
630
634
  </dd>
631
635
  </dl>
@@ -646,7 +650,7 @@ await client.search.getComments({
646
650
  </details>
647
651
 
648
652
  ## Account
649
- <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">getCreditUsage</a>() -> Spyglass.GetCreditUsageResponse</code></summary>
653
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">getCreditUsage</a>() -> spyglass.GetCreditUsageResponse</code></summary>
650
654
  <dl>
651
655
  <dd>
652
656
 
@@ -708,7 +712,7 @@ await client.account.getCreditUsage();
708
712
  </details>
709
713
 
710
714
  ## Indexing
711
- <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrand</a>({ ...params }) -> Spyglass.IndexBrandResponse</code></summary>
715
+ <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrand</a>({ ...params }) -> spyglass.IndexBrandResponse</code></summary>
712
716
  <dl>
713
717
  <dd>
714
718
 
@@ -762,7 +766,7 @@ await client.indexing.indexBrand({
762
766
  <dl>
763
767
  <dd>
764
768
 
765
- **request:** `Spyglass.IndexBrandRequest`
769
+ **request:** `spyglass.IndexBrandRequest`
766
770
 
767
771
  </dd>
768
772
  </dl>
@@ -782,7 +786,7 @@ await client.indexing.indexBrand({
782
786
  </dl>
783
787
  </details>
784
788
 
785
- <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrandStatus</a>({ ...params }) -> Spyglass.IndexBrandStatusResponse</code></summary>
789
+ <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrandStatus</a>({ ...params }) -> spyglass.IndexBrandStatusResponse</code></summary>
786
790
  <dl>
787
791
  <dd>
788
792
 
@@ -830,7 +834,7 @@ await client.indexing.indexBrandStatus({
830
834
  <dl>
831
835
  <dd>
832
836
 
833
- **request:** `Spyglass.IndexBrandStatusRequest`
837
+ **request:** `spyglass.IndexBrandStatusRequest`
834
838
 
835
839
  </dd>
836
840
  </dl>