Response returned by the API at GET /api/search-background

interface PhotoResponse {
    results: {
        finalQuery: string;
        results: {
            photos: Photo[];
        };
    };
    text: string;
}

Properties

Properties

results: {
    finalQuery: string;
    results: {
        photos: Photo[];
    };
}

The results for the query

Type declaration

  • finalQuery: string

    The final query that was actually ran

    NOTE: Probably under some circumstances, their API will modify your query string

  • results: {
        photos: Photo[];
    }

    The results for the actual query

    • photos: Photo[]

      The photos that were returned

text: string

The query that the results are for

Generated using TypeDoc